public void setHardness(HealthType healthType, Integer hardness) { if (hardness == null) { hardnessByHealthType.remove(healthType.name()); } else { hardnessByHealthType.put(healthType.name(), hardness); } }
public void setSoak(HealthType healthType, Integer soak) { if (soak == null) { soakByHealthType.remove(healthType.name()); } else { soakByHealthType.put(healthType.name(), soak); } }
@Override public Integer getSoak(HealthType type) { return soakByHealthType.get(type.name()); }
@Override public Integer getHardness(HealthType type) { return hardnessByHealthType.get(type.name()); }