server side race/cass restrictions

This commit is contained in:
2024-02-07 19:20:29 -06:00
parent 250e3407fa
commit 726d68df31
6 changed files with 186 additions and 1 deletions
+11
View File
@@ -4559,6 +4559,17 @@ public class PlayerCharacter extends AbstractCharacter {
Bounds playerBounds = Bounds.borrow();
playerBounds.setBounds(this.getLoc());
this.setBounds(playerBounds);
//assign enum values for restrictions
this.absRace = Enum.MonsterType.valueOf(this.getRace().getName().replace("-",""));
if(this.promotionClass != null)
this.absClass = Enum.PromoteType.valueOf(this.getPromotionClass().getName());
if(this.isMale())
this.absGender = SexType.MALE;
else
this.absGender = SexType.FEMALE;
}
@Override