This commit is contained in:
Anuken
2022-10-26 15:52:51 -04:00
parent 4a7231fb5a
commit 6566bf9dd5
6 changed files with 18 additions and 3 deletions

View File

@@ -2016,5 +2016,11 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
out.setCentered(x, y, block.size * tilesize, block.size * tilesize);
}
@Override
@Replace
public String toString(){
return "Building#" + id() + "[" + tileX() + "," + tileY() + "]:" + block;
}
//endregion
}

View File

@@ -688,4 +688,10 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
//deaths are synced; this calls killed()
Call.unitDeath(id);
}
@Override
@Replace
public String toString(){
return "Unit#" + id() + ":" + type;
}
}

View File

@@ -17,6 +17,7 @@ import mindustry.world.meta.*;
import static mindustry.Vars.*;
//TODO visuals!
/** Do not use this class! */
public class PayloadAmmoTurret extends Turret{
public ObjectMap<UnlockableContent, BulletType> ammoTypes = new ObjectMap<>();