- Counters moved from being on Card to on GameEntity allowing Poison + Experience Counters to work the same as other counter types

- Improved some PlayerView updates which weren't re-writing player detail hoverbox often enough
This commit is contained in:
Sol
2015-11-18 20:19:32 +00:00
parent 83cd79e705
commit 5527f6fc6d
16 changed files with 323 additions and 123 deletions

View File

@@ -1485,8 +1485,15 @@ public class AiController {
}
for (Player e : enemies) {
if (e.getPoisonCounters() > 0) {
result.put(e, null); // poison counter type is hardcoded at data consumer's side (this works while players may have no other counters)
// TODO In the future check of enemies can get poison counters and give them some other bad counter type
if (e.getCounters(CounterType.POISON) > 0) {
result.put(e, CounterType.POISON);
}
}
for (Player pl : allies) {
if (pl.getCounters(CounterType.EXPERIENCE) > 0) {
result.put(pl, CounterType.EXPERIENCE);
}
}