use of main.elements.conditions.PrinciplesCondition in project Eidolons by IDemiurge.
the class PartyHelper method getPrincipleConditions.
public static Conditions getPrincipleConditions(Party party) {
Conditions principlesConditions = new Conditions();
for (Unit m : party.getMembers()) {
String principles = m.getProperty(G_PROPS.PRINCIPLES);
Condition principlesCondition = new PrinciplesCondition(principles, "{MATCH_" + G_PROPS.PRINCIPLES + "}", true);
principlesConditions.add(principlesCondition);
}
return principlesConditions;
}
Aggregations