BecomesCreatureAllEffect text adjust / simplify

This commit is contained in:
xenohedron 2023-11-23 00:17:23 -05:00
parent 1c6c68e1a4
commit a7de73723f
3 changed files with 13 additions and 21 deletions

View file

@ -21,20 +21,15 @@ public class BecomesCreatureAllEffect extends ContinuousEffectImpl {
protected Token token;
protected String theyAreStillType;
private final FilterPermanent filter;
private boolean loseColor = true;
private boolean loseTypes = false;
protected boolean loseName = false;
private final boolean loseColor;
private final boolean loseTypes;
private final boolean loseName;
public BecomesCreatureAllEffect(Token token, String theyAreStillType,
FilterPermanent filter, Duration duration, boolean loseColor) {
this(token, theyAreStillType, filter, duration, loseColor, false, false);
}
public BecomesCreatureAllEffect(Token token, String theyAreStillType,
FilterPermanent filter, Duration duration, boolean loseColor, boolean loseName) {
this(token, theyAreStillType, filter, duration, loseColor, loseName, false);
}
public BecomesCreatureAllEffect(Token token, String theyAreStillType,
FilterPermanent filter, Duration duration, boolean loseColor, boolean loseName, boolean loseTypes) {
super(duration, Outcome.BecomeCreature);
@ -179,7 +174,7 @@ public class BecomesCreatureAllEffect extends ContinuousEffectImpl {
}
sb.append(token.getDescription());
if (theyAreStillType != null && !theyAreStillType.isEmpty()) {
sb.append(". They're still ").append(theyAreStillType);
sb.append(" that are still ").append(theyAreStillType);
}
return sb.toString();
}