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 String hologramString = "";
|
||||||
private HologramMode hologramMode = HologramMode.CLEARED;
|
private HologramMode hologramMode = HologramMode.CLEARED;
|
||||||
|
|
||||||
private char lastHologram = 0;
|
private HologramMode lastHologramMode = HologramMode.CLEARED;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Hit points
|
* Hit points
|
||||||
@ -73,8 +73,8 @@ public class Cubot extends GameObject implements Updatable, ControllableUnit {
|
|||||||
currentAction = Action.IDLE;
|
currentAction = Action.IDLE;
|
||||||
|
|
||||||
//Same principle for hologram
|
//Same principle for hologram
|
||||||
lastHologram = hologram;
|
lastHologramMode = hologramMode;
|
||||||
hologram = 0;
|
hologramMode = HologramMode.CLEARED;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -88,9 +88,9 @@ public class Cubot extends GameObject implements Updatable, ControllableUnit {
|
|||||||
json.put("heldItem", heldItem);
|
json.put("heldItem", heldItem);
|
||||||
json.put("hp", hp);
|
json.put("hp", hp);
|
||||||
json.put("action", lastAction.ordinal());
|
json.put("action", lastAction.ordinal());
|
||||||
json.put("holo", (int) lastHologram);
|
json.put("holo", (int) hologram);
|
||||||
json.put("holoStr", hologramString);
|
json.put("holoStr", hologramString);
|
||||||
json.put("holoMode", hologramMode.ordinal());
|
json.put("holoMode", lastHologramMode.ordinal());
|
||||||
json.put("energy", energy);
|
json.put("energy", energy);
|
||||||
|
|
||||||
if (parent != null) {
|
if (parent != null) {
|
||||||
@ -162,9 +162,6 @@ public class Cubot extends GameObject implements Updatable, ControllableUnit {
|
|||||||
this.hologram = hologram;
|
this.hologram = hologram;
|
||||||
}
|
}
|
||||||
|
|
||||||
public char getHologram() {
|
|
||||||
return lastHologram;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setHologramString(String hologramString) {
|
public void setHologramString(String hologramString) {
|
||||||
this.hologramString = hologramString;
|
this.hologramString = hologramString;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user