mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
- CheckStyle.
This commit is contained in:
@@ -210,7 +210,7 @@ public class Deck extends DeckBase implements Serializable {
|
||||
final Iterator<String> lineIterator = lines.iterator();
|
||||
while (lineIterator.hasNext()) {
|
||||
final String line = lineIterator.next();
|
||||
if (line.startsWith(";")) { continue; } // that is a comment or not-yet-supported card
|
||||
if (line.startsWith(";")) { continue; } // that is a comment or not-yet-supported card
|
||||
if (line.startsWith("[")) { break; } // there comes another section
|
||||
|
||||
final Matcher m = p.matcher(line.trim());
|
||||
|
||||
@@ -74,7 +74,7 @@ public class QuestController {
|
||||
private QuestEventManager challengesManager = null;
|
||||
|
||||
private QuestBazaarManager bazaar = null;
|
||||
|
||||
|
||||
private QuestPetStorage pets = null;
|
||||
|
||||
// This is used by shop. Had no idea where else to place this
|
||||
@@ -100,12 +100,11 @@ public class QuestController {
|
||||
public void selectPet(Integer slot, String name) {
|
||||
selectedPets.put(slot, name);
|
||||
}
|
||||
|
||||
|
||||
public String getSelectedPet(Integer slot) {
|
||||
return selectedPets.get(slot);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
// Cards - class uses data from here
|
||||
/**
|
||||
* Gets the cards.
|
||||
@@ -332,13 +331,12 @@ public class QuestController {
|
||||
}
|
||||
return this.challengesManager;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public QuestPetStorage getPetsStorage() {
|
||||
if ( this.pets == null ) {
|
||||
if (this.pets == null) {
|
||||
this.pets = new QuestPetStorage(ForgeProps.getFile(NewConstants.Quest.BAZAAR));
|
||||
}
|
||||
|
||||
|
||||
return this.pets;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user