mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
Refactoring of CreatureType select sorting
This commit is contained in:
@@ -651,13 +651,11 @@ public class ComputerUtilCard {
|
||||
}
|
||||
}
|
||||
}
|
||||
for(String k: c.getCurrentState().getIntrinsicKeywords()){
|
||||
if(k.split(":")[0].equals(Keyword.FABRICATE.toString())){
|
||||
if (!map.containsKey("Servo")) {
|
||||
map.put("Servo", 1);
|
||||
} else {
|
||||
map.put("Servo", map.get("Servo") + 1);
|
||||
}
|
||||
if(c.hasStartOfKeyword(Keyword.FABRICATE.toString())){
|
||||
if (!map.containsKey("Servo")) {
|
||||
map.put("Servo", 1);
|
||||
} else {
|
||||
map.put("Servo", map.get("Servo") + 1);
|
||||
}
|
||||
}
|
||||
} // for
|
||||
|
||||
@@ -867,13 +867,11 @@ public class PlayerControllerHuman
|
||||
}
|
||||
}
|
||||
}
|
||||
for(String k: c.getCurrentState().getIntrinsicKeywords()){
|
||||
if(k.split(":")[0].equals(Keyword.FABRICATE.toString())){
|
||||
if (!typesInDeck.containsKey("Servo")) {
|
||||
typesInDeck.put("Servo", 1);
|
||||
} else {
|
||||
typesInDeck.put("Servo", typesInDeck.get("Servo") + 1);
|
||||
}
|
||||
if(c.hasStartOfKeyword(Keyword.FABRICATE.toString())){
|
||||
if (!typesInDeck.containsKey("Servo")) {
|
||||
typesInDeck.put("Servo", 1);
|
||||
} else {
|
||||
typesInDeck.put("Servo", typesInDeck.get("Servo") + 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user