Removed shield breaker block

This commit is contained in:
Anuken
2022-09-04 16:32:13 -04:00
parent 19d26a0593
commit 08d5ca1912
11 changed files with 32 additions and 66 deletions

View File

@@ -19,7 +19,7 @@ public class LCategory implements Comparable<LCategory>{
operation = new LCategory("operation", Pal.logicOperations, Icon.settingsSmall),
control = new LCategory("control", Pal.logicControl, Icon.rotateSmall),
unit = new LCategory("unit", Pal.logicUnits, Icon.unitsSmall),
world = new LCategory("world", Pal.logicWorld, Icon.terminalSmall);
world = new LCategory("world", Pal.logicWorld, Icon.terrainSmall);
public final String name;
public final int id;

View File

@@ -1084,7 +1084,6 @@ public class LExecutor{
public int value;
public float curTime;
public double wait;
public long frameId;
public WaitI(int value){
@@ -1110,6 +1109,15 @@ public class LExecutor{
}
}
public static class StopI implements LInstruction{
@Override
public void run(LExecutor exec){
//skip back to self.
exec.var(varCounter).numval --;
}
}
//TODO inverse lookup
public static class LookupI implements LInstruction{
public int dest;

View File

@@ -675,7 +675,25 @@ public class LStatements{
@Override
public LCategory category(){
return LCategory.operation;
return LCategory.control;
}
}
@RegisterStatement("stop")
public static class StopStatement extends LStatement{
@Override
public void build(Table table){
}
@Override
public LInstruction build(LAssembler builder){
return new StopI();
}
@Override
public LCategory category(){
return LCategory.control;
}
}