mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-08 23:13:25 -04:00
HAM methods in CreatureObject now implement range checks and return the difference
This commit is contained in:
@@ -695,8 +695,8 @@ public class CreatureObject extends TangibleObject {
|
||||
creo6.setHealth(health, this);
|
||||
}
|
||||
|
||||
public void modifyHealth(int mod) {
|
||||
creo6.modifyHealth(mod, this);
|
||||
public int modifyHealth(int mod) {
|
||||
return creo6.modifyHealth(mod, this);
|
||||
}
|
||||
|
||||
public void setMaxHealth(int maxHealth) {
|
||||
@@ -714,8 +714,8 @@ public class CreatureObject extends TangibleObject {
|
||||
creo6.setAction(action, this);
|
||||
}
|
||||
|
||||
public void modifyAction(int mod) {
|
||||
creo6.modifyAction(mod, this);
|
||||
public int modifyAction(int mod) {
|
||||
return creo6.modifyAction(mod, this);
|
||||
}
|
||||
|
||||
public void setMaxAction(int maxAction) {
|
||||
@@ -726,8 +726,8 @@ public class CreatureObject extends TangibleObject {
|
||||
creo6.setMind(mind, this);
|
||||
}
|
||||
|
||||
public void modifyMind(int mod) {
|
||||
creo6.modifyMind(mod, this);
|
||||
public int modifyMind(int mod) {
|
||||
return creo6.modifyMind(mod, this);
|
||||
}
|
||||
|
||||
public void setMaxMind(int maxMind) {
|
||||
|
||||
Reference in New Issue
Block a user