mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +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) {
|
||||
existingMana.setToMana(moreValuable);
|
||||
replaces++;
|
||||
// logger.info("mana replaced " + newMana.toString() + " <=> " + existingMana.toString() + " from " + ability.getRule());
|
||||
continue CombineWithExisting;
|
||||
}
|
||||
}
|
||||
|
@ -205,9 +204,9 @@ public class ManaOptions extends ArrayList<Mana> {
|
|||
}
|
||||
}
|
||||
}
|
||||
if (this.size() > 5 || replaces > 5) {
|
||||
logger.info("ManaOptionsCosts " + this.size() + " Ign:" + replaces + " => " + this.toString());
|
||||
logger.info("Abilities: " + abilities.toString());
|
||||
if (this.size() > 30 || replaces > 30) {
|
||||
logger.trace("ManaOptionsCosts " + this.size() + " Ign:" + replaces + " => " + this.toString());
|
||||
logger.trace("Abilities: " + abilities.toString());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue