diff --git a/core/src/mindustry/content/UnitTypes.java b/core/src/mindustry/content/UnitTypes.java index 03f118dc36..1a8435c424 100644 --- a/core/src/mindustry/content/UnitTypes.java +++ b/core/src/mindustry/content/UnitTypes.java @@ -2561,6 +2561,7 @@ public class UnitTypes{ lifetime = 60f; buildingDamageMultiplier = 0.01f; + homingPower = 0.02f; }}; }}); }}; @@ -2611,6 +2612,7 @@ public class UnitTypes{ lifetime = 60f; buildingDamageMultiplier = 0.01f; + homingPower = 0.03f; }}; }}); }}; diff --git a/core/src/mindustry/world/blocks/logic/LogicBlock.java b/core/src/mindustry/world/blocks/logic/LogicBlock.java index 7c047ce93d..0f879b7a03 100644 --- a/core/src/mindustry/world/blocks/logic/LogicBlock.java +++ b/core/src/mindustry/world/blocks/logic/LogicBlock.java @@ -764,6 +764,8 @@ public class LogicBlock extends Block{ write.s(waitIndices.get(i)); write.f(waitValues.get(i)); } + + write.f(accumulator); } @Override @@ -823,6 +825,8 @@ public class LogicBlock extends Block{ waitIndices.add(index); waitValues.add(value); } + + accumulator = read.f(); } loadBlock = () -> updateCode(code, false, asm -> { @@ -843,7 +847,7 @@ public class LogicBlock extends Block{ } } - //wait times can only be applied once the instructions are loaded an exist + //wait times can only be applied once the instructions are loaded and exist for(int i = 0; i < waitIndices.size; i++){ int waitIndex = waitIndices.get(i); if(waitIndex >= 0 && waitIndex < asm.instructions.length && asm.instructions[waitIndex] instanceof WaitI wait){