|
|
|
@ -2585,7 +2585,14 @@ public class mbEnums {
@@ -2585,7 +2585,14 @@ public class mbEnums {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public boolean canJoin(AbstractCharacter character) { |
|
|
|
|
return this.requiredRaces.contains(character.absRace) && this.requiredClasses.contains(character.absPromotionClass) && this.sexRequired.contains(character.absGender); |
|
|
|
|
if(this.requiredRaces.contains(character.absRace) == false) |
|
|
|
|
return false; |
|
|
|
|
if(this.requiredClasses.contains(character.absPromotionClass)) |
|
|
|
|
return false; |
|
|
|
|
if(this.sexRequired.contains(character.absGender)) |
|
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|