mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 12:02:01 -08:00
Refactor: moved flavor word from effects list to ability/mode;
This commit is contained in:
parent
2d1e11dfa9
commit
6dafb3ad81
13 changed files with 52 additions and 40 deletions
|
|
@ -16,6 +16,7 @@ public class Mode implements Serializable {
|
|||
protected UUID id;
|
||||
protected final Targets targets;
|
||||
protected final Effects effects;
|
||||
protected String flavorWord;
|
||||
|
||||
public Mode() {
|
||||
this((Effect) null);
|
||||
|
|
@ -34,6 +35,7 @@ public class Mode implements Serializable {
|
|||
this.id = mode.id;
|
||||
this.targets = mode.targets.copy();
|
||||
this.effects = mode.effects.copy();
|
||||
this.flavorWord = mode.flavorWord;
|
||||
}
|
||||
|
||||
public UUID setRandomId() {
|
||||
|
|
@ -71,8 +73,18 @@ public class Mode implements Serializable {
|
|||
effects.add(effect);
|
||||
}
|
||||
|
||||
public Mode setFlavorWord(String flavorWord) {
|
||||
effects.setFlavorWord(flavorWord);
|
||||
public String getFlavorWord() {
|
||||
return flavorWord;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set Flavor word to the mode (same as ability/ancher words, but uses for lore/info and represents a possible choices)
|
||||
*
|
||||
* @param flavorWord
|
||||
* @return
|
||||
*/
|
||||
public Mode withFlavorWord(String flavorWord) {
|
||||
this.flavorWord = flavorWord;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue