Skip to content

Commit 95b6ac3

Browse files
committed
was looking over this and apparently I had added a really random line to only generate creatures of a very specific type, so I removed that. I’m sure I had a good reason…
1 parent 73dd20e commit 95b6ac3

2 files changed

Lines changed: 5 additions & 9 deletions

File tree

collectiongame/src/gameutils/Constants.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ public final class Constants {
88
/**
99
* set to true to print out debug information
1010
*/
11-
public final static boolean DEBUG = false;
11+
public final static boolean DEBUG = true;
1212
/**
1313
* Set to true to print board, even if DEBUG is false
1414
*/
1515
public final static boolean PRINT_BOARD = false;
1616
/**
1717
* Change duplicate percentage to 100% and make Creature spawn automatically and rapidly
1818
*/
19-
public final static boolean RAPID_SPAWN = true;
19+
public final static boolean RAPID_SPAWN = false;
2020
/**
2121
* starts game with large amount of money/popularity
2222
*/
23-
public final static boolean CHEAT_MODE = true;
23+
public final static boolean CHEAT_MODE = false;
2424
/**
2525
* The amount of money/popularity to start the game with when in cheat mode
2626
*/

collectiongame/src/model/defaultimplementation/Board.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
import javax.swing.SwingUtilities;
1717

18-
import attributes.AttributeName;
1918
import effects.EventManager;
2019
import effects.Eventful;
2120
import effects.GlobalModifierOption;
@@ -30,7 +29,6 @@
3029
import modifiers.Modifier;
3130
import modifiers.ModifierManager;
3231
import thingFramework.Creature;
33-
import thingFramework.CreatureType;
3432
import thingFramework.Item;
3533
import thingFramework.Thing;
3634
/**
@@ -197,10 +195,8 @@ private void addToFoundCreatures(final String name) {
197195
if (foundCreatures.size() >= MAX_CREATURES_IN_QUEUE)
198196
return;
199197
final Creature creature = ThingFactory.getInstance().generateNewCreature(name);
200-
if (creature.containsAttribute(AttributeName.TYPE) && creature.getAttributeValue(AttributeName.TYPE).containsValue(CreatureType.BUG)) {
201-
foundCreatures.addLast(creature);
202-
addToUniqueCreaturesLookup(creature);
203-
}
198+
foundCreatures.addLast(creature);
199+
addToUniqueCreaturesLookup(creature);
204200

205201
}
206202
/**

0 commit comments

Comments
 (0)