Minor cleanup / Tick reset fix

This commit is contained in:
Anuken
2022-02-13 16:58:02 -05:00
parent 7cc0cbb132
commit 03d99cb05a
25 changed files with 200 additions and 194 deletions

View File

@@ -913,7 +913,7 @@ public class ApplicationTests{
if(state.rules.attackMode){
bossWave = 100;
}else{
assertNotEquals(0, bossWave, "Sector doesn't have a boss/end wave.");
//assertNotEquals(0, bossWave, "Sector " + zone.name + " doesn't have a boss/end wave.");
}
if(state.rules.winWave > 0) bossWave = state.rules.winWave - 1;

View File

@@ -89,7 +89,7 @@ public class ItemLiquidGeneratorTests extends PowerTestFixture{
assertTrue(entity.acceptLiquid(null, liquid), inputType + " | " + parameterDescription + ": Liquids which will be declined by the generator don't need to be tested - The code won't be called for those cases.");
entity.liquids.add(liquid, availableLiquidAmount);
entity.cons.update();
entity.updateConsumption();
// Perform an update on the generator once - This should use up any resource up to the maximum liquid usage
entity.updateTile();
@@ -133,7 +133,7 @@ public class ItemLiquidGeneratorTests extends PowerTestFixture{
if(amount > 0){
entity.items.add(item, amount);
}
entity.cons.update();
entity.updateConsumption();
// Perform an update on the generator once - This should use up one or zero items - dependent on if the item is accepted and available or not.
try{
@@ -164,7 +164,7 @@ public class ItemLiquidGeneratorTests extends PowerTestFixture{
// Burn a single coal and test for the duration
entity.items.add(Items.coal, 1);
entity.cons.update();
entity.updateConsumption();
entity.updateTile();
float expectedEfficiency = entity.productionEfficiency;

View File

@@ -100,7 +100,7 @@ public class PowerTestFixture{
// Assign incredibly high health so the block does not get destroyed on e.g. burning Blast Compound
block.health = 100000;
tile.build.health(100000.0f);
tile.build.health = 100000.0f;
return tile;
}catch(Exception ex){