mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-04 05:16:21 -04:00
@@ -576,6 +576,9 @@ public class CreatureObject extends TangibleObject implements IPersistent {
|
||||
}
|
||||
|
||||
public void addSkillMod(String name, int base) {
|
||||
|
||||
if(name == "movement") setSpeedMultiplierMod(getSpeedMultiplierMod() + ((float)base / 10));
|
||||
|
||||
if(getSkillMod(name) == null) {
|
||||
// TODO: Send skill mods delta in sendListDelta
|
||||
SkillMod skillMod = new SkillMod();
|
||||
@@ -601,6 +604,8 @@ public class CreatureObject extends TangibleObject implements IPersistent {
|
||||
if(getSkillMod(name) == null)
|
||||
return;
|
||||
|
||||
if(name == "movement") this.setSpeedMultiplierMod(getSpeedMultiplierMod() - ((float)base / 10));
|
||||
|
||||
SkillMod mod = getSkillMod(name);
|
||||
mod.setBase(mod.getBase() - base);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user