use of main.data.XLinkedMap in project Eidolons by IDemiurge.
the class DC_RequirementsManager method generateClassRankRequirements.
public Requirements generateClassRankRequirements(Entity type) {
Requirements reqs = getRequirements(type, 0);
Map<String, Condition> reqMap = new XLinkedMap<>();
Requirements rankedReqs = new Requirements(reqMap);
for (String string : reqs.getReqMap().keySet()) {
Condition req = reqs.getReqMap().get(string);
String tip = new MapMaster<String, Condition>().getKeyForValue(reqs.getReqMap(), req);
modifyRankReq(type, reqs, tip, reqMap, req, type.getIntParam(PARAMS.RANK));
}
rankedReqs = new Requirements(reqMap);
return rankedReqs;
}
Aggregations