mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-10 14:26:45 +00:00
Added basic Cubot.toString() and fixed account page debug info
This commit is contained in:
parent
ed1c4cff0b
commit
b6a206f3c7
@ -664,4 +664,15 @@ public class Cubot extends GameObject implements Updatable, ControllableUnit, Me
|
||||
//Overwrite item at current position
|
||||
((CubotInventory) getHardware(CubotInventory.class)).putItem(item);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder str = new StringBuilder(super.toString());
|
||||
|
||||
str.append("\nHardware: \n");
|
||||
for (Integer i : hardwareAddresses.keySet()) {
|
||||
str.append(String.format("%04X", i)).append(":").append(hardwareAddresses.get(i)).append("\n");
|
||||
}
|
||||
return str.toString();
|
||||
}
|
||||
}
|
||||
|
@ -71,9 +71,10 @@
|
||||
<p>Moderator: $user.isModerator()</p>
|
||||
|
||||
<h5>CPU</h5>
|
||||
<pre>$user.getCpu()</pre>
|
||||
<pre>$user.getControlledUnit().getCpu()</pre>
|
||||
|
||||
<h5>Controlled unit</h5>
|
||||
<p>$user.getControlledUnit()</p>
|
||||
<p>id: $user.getControlledUnit().getObjectId()</p>
|
||||
<p>energy: $user.getControlledUnit().getEnergy()</p>
|
||||
<p>x: $user.getControlledUnit().getX()</p>
|
||||
|
Loading…
x
Reference in New Issue
Block a user