mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
* Some rework/fixes/optimizations of calculation of available mana.
This commit is contained in:
parent
fdddbbbbe6
commit
da92cd745e
1 changed files with 3 additions and 4 deletions
|
@ -189,7 +189,6 @@ public class ManaOptions extends ArrayList<Mana> {
|
||||||
if (moreValuable != null) {
|
if (moreValuable != null) {
|
||||||
existingMana.setToMana(moreValuable);
|
existingMana.setToMana(moreValuable);
|
||||||
replaces++;
|
replaces++;
|
||||||
// logger.info("mana replaced " + newMana.toString() + " <=> " + existingMana.toString() + " from " + ability.getRule());
|
|
||||||
continue CombineWithExisting;
|
continue CombineWithExisting;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -205,9 +204,9 @@ public class ManaOptions extends ArrayList<Mana> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.size() > 5 || replaces > 5) {
|
if (this.size() > 30 || replaces > 30) {
|
||||||
logger.info("ManaOptionsCosts " + this.size() + " Ign:" + replaces + " => " + this.toString());
|
logger.trace("ManaOptionsCosts " + this.size() + " Ign:" + replaces + " => " + this.toString());
|
||||||
logger.info("Abilities: " + abilities.toString());
|
logger.trace("Abilities: " + abilities.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue