Regeneration Rework:

- Regenerate or RegenerateAll does create an Effect
in Command which does replace Destroy if possible
- Trigger Regenerated will be added to the Effect
if something does care about "regenerated that way"
- new Regeneration Api is the internal effect
that does handle the actual regeneration
- ReplaceDestroy has Section to handle if Regeneration is possible
- CardShields are removed with the option in PlayerController
This commit is contained in:
Hanmac
2018-02-06 12:56:02 +01:00
parent 8b26deb477
commit ff7a0f1ae6
23 changed files with 319 additions and 229 deletions

View File

@@ -1569,18 +1569,6 @@ public class PlayerControllerHuman extends PlayerController implements IGameCont
}
}
@Override
public CardShields chooseRegenerationShield(final Card c) {
if (c.getShieldCount() < 2) {
return Iterables.getFirst(c.getShields(), null);
}
final List<CardShields> shields = Lists.newArrayList();
for (final CardShields shield : c.getShields()) {
shields.add(shield);
}
return getGui().one("Choose a regeneration shield:", shields);
}
@Override
public List<PaperCard> chooseCardsYouWonToAddToDeck(final List<PaperCard> losses) {
return getGui().many("Select cards to add to your deck", "Add these to my deck", 0, losses.size(), losses,