mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
Added Tundra Kavu (Also added StackDescription to Pump and GenericChoice to allow correct stack description)
This commit is contained in:
@@ -1869,19 +1869,24 @@ public final class AbilityFactoryChoose {
|
|||||||
sb.append(" ");
|
sb.append(" ");
|
||||||
}
|
}
|
||||||
|
|
||||||
ArrayList<Player> tgtPlayers;
|
if (params.containsKey("StackDescription")) {
|
||||||
|
sb.append(params.get("StackDescription"));
|
||||||
final Target tgt = sa.getTarget();
|
|
||||||
if (tgt != null) {
|
|
||||||
tgtPlayers = tgt.getTargetPlayers();
|
|
||||||
} else {
|
|
||||||
tgtPlayers = AbilityFactory.getDefinedPlayers(sa.getSourceCard(), params.get("Defined"), sa);
|
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
ArrayList<Player> tgtPlayers;
|
||||||
|
|
||||||
for (final Player p : tgtPlayers) {
|
final Target tgt = sa.getTarget();
|
||||||
sb.append(p).append(" ");
|
if (tgt != null) {
|
||||||
|
tgtPlayers = tgt.getTargetPlayers();
|
||||||
|
} else {
|
||||||
|
tgtPlayers = AbilityFactory.getDefinedPlayers(sa.getSourceCard(), params.get("Defined"), sa);
|
||||||
|
}
|
||||||
|
|
||||||
|
for (final Player p : tgtPlayers) {
|
||||||
|
sb.append(p).append(" ");
|
||||||
|
}
|
||||||
|
sb.append("chooses from a list.");
|
||||||
}
|
}
|
||||||
sb.append("chooses from a list.");
|
|
||||||
|
|
||||||
final AbilitySub abSub = sa.getSubAbility();
|
final AbilitySub abSub = sa.getSubAbility();
|
||||||
if (abSub != null) {
|
if (abSub != null) {
|
||||||
|
|||||||
@@ -857,45 +857,50 @@ public class AbilityFactoryPump {
|
|||||||
sb.append(name).append(" - ");
|
sb.append(name).append(" - ");
|
||||||
}
|
}
|
||||||
|
|
||||||
for (final GameEntity c : tgts) {
|
if (params.containsKey("StackDescription")) {
|
||||||
sb.append(c.getName()).append(" ");
|
sb.append(params.get("StackDescription"));
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
if (af.getMapParams().containsKey("Radiance")) {
|
for (final GameEntity c : tgts) {
|
||||||
sb.append(" and each other ").append(af.getMapParams().get("ValidTgts"))
|
sb.append(c.getName()).append(" ");
|
||||||
.append(" that shares a color with ");
|
|
||||||
if (tgts.size() > 1) {
|
|
||||||
sb.append("them ");
|
|
||||||
} else {
|
|
||||||
sb.append("it ");
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
final int atk = this.getNumAttack(sa);
|
if (af.getMapParams().containsKey("Radiance")) {
|
||||||
final int def = this.getNumDefense(sa);
|
sb.append(" and each other ").append(af.getMapParams().get("ValidTgts"))
|
||||||
|
.append(" that shares a color with ");
|
||||||
sb.append("gains ");
|
if (tgts.size() > 1) {
|
||||||
if ((atk != 0) || (def != 0)) {
|
sb.append("them ");
|
||||||
if (atk >= 0) {
|
} else {
|
||||||
sb.append("+");
|
sb.append("it ");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
sb.append(atk);
|
|
||||||
sb.append("/");
|
|
||||||
if (def >= 0) {
|
|
||||||
sb.append("+");
|
|
||||||
}
|
|
||||||
sb.append(def);
|
|
||||||
sb.append(" ");
|
|
||||||
}
|
|
||||||
|
|
||||||
for (int i = 0; i < this.keywords.size(); i++) {
|
final int atk = this.getNumAttack(sa);
|
||||||
if (!this.keywords.get(i).equals("none")) {
|
final int def = this.getNumDefense(sa);
|
||||||
sb.append(this.keywords.get(i)).append(" ");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!this.params.containsKey("Permanent")) {
|
sb.append("gains ");
|
||||||
sb.append("until end of turn.");
|
if ((atk != 0) || (def != 0)) {
|
||||||
|
if (atk >= 0) {
|
||||||
|
sb.append("+");
|
||||||
|
}
|
||||||
|
sb.append(atk);
|
||||||
|
sb.append("/");
|
||||||
|
if (def >= 0) {
|
||||||
|
sb.append("+");
|
||||||
|
}
|
||||||
|
sb.append(def);
|
||||||
|
sb.append(" ");
|
||||||
|
}
|
||||||
|
|
||||||
|
for (int i = 0; i < this.keywords.size(); i++) {
|
||||||
|
if (!this.keywords.get(i).equals("none")) {
|
||||||
|
sb.append(this.keywords.get(i)).append(" ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!this.params.containsKey("Permanent")) {
|
||||||
|
sb.append("until end of turn.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user