This commit is contained in:
Anuken
2023-08-04 10:59:33 -04:00
parent 5e18e08bdf
commit bc42b5a91e
3 changed files with 13 additions and 7 deletions

View File

@@ -2259,7 +2259,7 @@ lst.setflag = Set a global flag that can be read by all processors.
lst.getflag = Check if a global flag is set. lst.getflag = Check if a global flag is set.
lst.setprop = Sets a property of a unit or building. lst.setprop = Sets a property of a unit or building.
lst.effect = Create a particle effect. lst.effect = Create a particle effect.
lst.sync = Sync a variable across the network.\nOnly invoked 10 times a second at most. lst.sync = Sync a variable across the network.\nLimited to 20 times a second per variable.
logic.nounitbuild = [red]Unit building logic is not allowed here. logic.nounitbuild = [red]Unit building logic is not allowed here.

View File

@@ -1672,8 +1672,8 @@ public class LExecutor{
} }
public static class SyncI implements LInstruction{ public static class SyncI implements LInstruction{
//10 syncs per second //20 syncs per second
static final long syncInterval = 1000 / 10; public static long syncInterval = 1000 / 20;
public int variable; public int variable;

View File

@@ -1207,7 +1207,7 @@ public class LStatements{
fields(table, result, str -> result = str); fields(table, result, str -> result = str);
table.add(" = spawn "); table.add(" = spawn ");
field(table, type, str -> type = str); field(table, type, str -> type = str).colspan(!LCanvas.useRows() ? 1 : 2);
row(table); row(table);
@@ -1219,7 +1219,9 @@ public class LStatements{
table.row(); table.row();
if(!LCanvas.useRows()){
table.add(); table.add();
}
table.add("team "); table.add("team ");
field(table, team, str -> team = str); field(table, team, str -> team = str);
@@ -1869,13 +1871,17 @@ public class LStatements{
})); }));
}, Styles.logict, () -> {}).size(40f).padLeft(-1).color(table.color); }, Styles.logict, () -> {}).size(40f).padLeft(-1).color(table.color);
row(table);
table.add(" of ").self(this::param); table.add(" of ").self(this::param);
field(table, of, str -> of = str); field(table, of, str -> of = str).colspan(2);
row(table);
table.add(" to "); table.add(" to ");
field(table, value, str -> value = str); field(table, value, str -> value = str).colspan(2);
} }
private void stype(String text){ private void stype(String text){