mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-09-08 16:16:57 +00:00
Fixes #62
This commit is contained in:
parent
017b89f97f
commit
0c06d0bf09
@ -17,7 +17,7 @@ public class Cubot extends GameObject implements Updatable, ControllableUnit {
|
||||
private String hologramString = "";
|
||||
private HologramMode hologramMode = HologramMode.CLEARED;
|
||||
|
||||
private char lastHologram = 0;
|
||||
private HologramMode lastHologramMode = HologramMode.CLEARED;
|
||||
|
||||
/**
|
||||
* Hit points
|
||||
@ -73,8 +73,8 @@ public class Cubot extends GameObject implements Updatable, ControllableUnit {
|
||||
currentAction = Action.IDLE;
|
||||
|
||||
//Same principle for hologram
|
||||
lastHologram = hologram;
|
||||
hologram = 0;
|
||||
lastHologramMode = hologramMode;
|
||||
hologramMode = HologramMode.CLEARED;
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -88,9 +88,9 @@ public class Cubot extends GameObject implements Updatable, ControllableUnit {
|
||||
json.put("heldItem", heldItem);
|
||||
json.put("hp", hp);
|
||||
json.put("action", lastAction.ordinal());
|
||||
json.put("holo", (int) lastHologram);
|
||||
json.put("holo", (int) hologram);
|
||||
json.put("holoStr", hologramString);
|
||||
json.put("holoMode", hologramMode.ordinal());
|
||||
json.put("holoMode", lastHologramMode.ordinal());
|
||||
json.put("energy", energy);
|
||||
|
||||
if (parent != null) {
|
||||
@ -162,9 +162,6 @@ public class Cubot extends GameObject implements Updatable, ControllableUnit {
|
||||
this.hologram = hologram;
|
||||
}
|
||||
|
||||
public char getHologram() {
|
||||
return lastHologram;
|
||||
}
|
||||
|
||||
public void setHologramString(String hologramString) {
|
||||
this.hologramString = hologramString;
|
||||
|
Loading…
x
Reference in New Issue
Block a user