mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-17 07:02:54 -04:00
Fixed several object structures and drastically sped up object creation
This commit is contained in:
@@ -39,6 +39,10 @@ public class SkillMod implements Encodable, Serializable {
|
||||
|
||||
private int base, modifier;
|
||||
|
||||
public SkillMod() {
|
||||
this(0, 0);
|
||||
}
|
||||
|
||||
public SkillMod(int base, int modifier) {
|
||||
this.base = base;
|
||||
this.modifier = modifier;
|
||||
@@ -71,5 +75,9 @@ public class SkillMod implements Encodable, Serializable {
|
||||
public int getValue() {
|
||||
return base + modifier;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "SkillMod[Base="+base+", Modifier="+modifier+"]";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user