forked from MagicBane/Server
Project reformat.
This commit is contained in:
@@ -4572,31 +4572,31 @@ public class PlayerCharacter extends AbstractCharacter {
|
||||
this.setBounds(playerBounds);
|
||||
|
||||
//assign enum values for restrictions
|
||||
String race = this.getRace().getName().replace("-","").replace(", Male","").replace(", Female","");
|
||||
String race = this.getRace().getName().replace("-", "").replace(", Male", "").replace(", Female", "");
|
||||
this.absRace = Enum.MonsterType.valueOf(race);
|
||||
|
||||
if(this.baseClass != null)
|
||||
if (this.baseClass != null)
|
||||
this.absBaseClass = ClassType.valueOf(this.getBaseClass().getName());
|
||||
|
||||
if(this.promotionClass != null)
|
||||
if (this.promotionClass != null)
|
||||
this.absPromotionClass = ClassType.valueOf(this.getPromotionClass().getName());
|
||||
|
||||
if(this.isMale())
|
||||
if (this.isMale())
|
||||
this.absGender = SexType.MALE;
|
||||
else
|
||||
this.absGender = SexType.FEMALE;
|
||||
|
||||
|
||||
for(CharacterRune rune : this.runes){
|
||||
for (CharacterRune rune : this.runes) {
|
||||
try {
|
||||
DisciplineType disc = DisciplineType.valueOf(RuneBase.getRuneBase(rune.getRuneBaseID()).getName().replace("-", "").replace(" ", ""));
|
||||
if (disc != null) {
|
||||
if(this.absDisciplines == null)
|
||||
if (this.absDisciplines == null)
|
||||
this.absDisciplines = EnumSet.of(disc);
|
||||
else
|
||||
this.absDisciplines.add(disc);
|
||||
}
|
||||
} catch(Exception e){
|
||||
} catch (Exception e) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user