forked from MagicBane/Server
server side race/cass restrictions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user