Fixed infinite copper bug
This commit is contained in:
@@ -61,7 +61,7 @@ public class Zones implements ContentList{
|
|||||||
}};
|
}};
|
||||||
|
|
||||||
craters = new Zone("craters", new MapGenerator("craters", 1).dist(0)){{
|
craters = new Zone("craters", new MapGenerator("craters", 1).dist(0)){{
|
||||||
deployCost = ItemStack.with(Items.copper, 300);
|
deployCost = ItemStack.with(Items.copper, 200);
|
||||||
startingItems = ItemStack.with(Items.copper, 200);
|
startingItems = ItemStack.with(Items.copper, 200);
|
||||||
conditionWave = 15;
|
conditionWave = 15;
|
||||||
itemRequirements = ItemStack.with(Items.copper, 2000);
|
itemRequirements = ItemStack.with(Items.copper, 2000);
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ public class GameState{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean isPaused(){
|
public boolean isPaused(){
|
||||||
return is(State.paused) && !Net.active();
|
return (is(State.paused) && !Net.active()) || gameOver;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean is(State astate){
|
public boolean is(State astate){
|
||||||
|
|||||||
@@ -119,8 +119,8 @@ public class GlobalData{
|
|||||||
}
|
}
|
||||||
|
|
||||||
//set up default values
|
//set up default values
|
||||||
if(!Core.settings.has("item-" + Items.copper)){
|
if(!Core.settings.has("item-" + Items.copper.name)){
|
||||||
addItem(Items.copper, 500);
|
addItem(Items.copper, 300);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user