Fixed several object structures and drastically sped up object creation

This commit is contained in:
Obique PSWG
2016-03-25 23:21:16 -05:00
parent 210d6182ac
commit 0fedef77a3
14 changed files with 550 additions and 115 deletions
+8
View File
@@ -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+"]";
}
}