From 31c5ef2dc5f615d320204e571583d42b6f325675 Mon Sep 17 00:00:00 2001 From: Anuken Date: Mon, 9 May 2022 17:41:42 -0400 Subject: [PATCH] Some world processor documentation --- core/assets/bundles/bundle.properties | 8 ++++++++ core/src/mindustry/entities/comp/TankComp.java | 1 - 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/core/assets/bundles/bundle.properties b/core/assets/bundles/bundle.properties index 247472ef2a..0291f0948a 100644 --- a/core/assets/bundles/bundle.properties +++ b/core/assets/bundles/bundle.properties @@ -1740,9 +1740,17 @@ lst.unitlocate = Locate a specific type of position/building anywhere on the map lst.getblock = Get tile data at any location. lst.setblock = Set tile data at any location. lst.spawnunit = Spawn unit at a location. +lst.applystatus = Apply or clear a status effect from a uniut. +lst.spawnwave = Simulate a wave being spawned at a arbitrary location.\nWill not increment the wave counter. +lst.explosion = Create an explosion at a location. +lst.setrate = Set processor execution speed in instructions/tick. +lst.fetch = Lookup units, cores, players or buildings by index.\nIndices start at 0 and end at their returned count. lst.packcolor = Pack [0, 1] RGBA components into a single number for drawing or rule-setting. lst.setrule = Set a game rule. lst.flushmessage = Display a message on the screen from the text buffer.\nWill wait until the previous message finishes. +lst.cutscene = Manipulate the player camera. +lst.setflag = Set a global flag that can be read by all processors. +lst.getflag = Check if a global flag is set. logic.nounitbuild = [red]Unit building logic is not allowed here. diff --git a/core/src/mindustry/entities/comp/TankComp.java b/core/src/mindustry/entities/comp/TankComp.java index c1f1a90fd4..58eaac2d04 100644 --- a/core/src/mindustry/entities/comp/TankComp.java +++ b/core/src/mindustry/entities/comp/TankComp.java @@ -33,7 +33,6 @@ abstract class TankComp implements Posc, Flyingc, Hitboxc, Unitc, ElevationMovec if(walked && !headless && !inFogTo(player.team())){ treadEffectTime += Time.delta; if(treadEffectTime >= 6f && type.treadRects.length > 0){ - var treadRegion = type.treadRegion; //first rect should always be at the back var treadRect = type.treadRects[0];