mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
Add TODO
This commit is contained in:
@@ -393,9 +393,13 @@ public class ComputerUtilAbility {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
public static List<SpellAbility> sortCreatureSpells(List<SpellAbility> all) {
|
public static List<SpellAbility> sortCreatureSpells(final List<SpellAbility> all) {
|
||||||
// try to smoothen power creeping by making CMC less of a factor
|
// try to smoothen power creep by making CMC less of a factor
|
||||||
List<SpellAbility> creatures = AiController.filterListByApi(Lists.newArrayList(all), ApiType.PermanentCreature);
|
final List<SpellAbility> creatures = AiController.filterListByApi(Lists.newArrayList(all), ApiType.PermanentCreature);
|
||||||
|
if (creatures.size() <= 1) {
|
||||||
|
return all;
|
||||||
|
}
|
||||||
|
// TODO this doesn't account for nearly identical creatures where one is a newer but more cost efficient variant
|
||||||
Collections.sort(creatures, ComputerUtilCard.EvaluateCreatureSpellComparator);
|
Collections.sort(creatures, ComputerUtilCard.EvaluateCreatureSpellComparator);
|
||||||
int idx = 0;
|
int idx = 0;
|
||||||
for (int i = 0; i < all.size(); i++) {
|
for (int i = 0; i < all.size(); i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user