mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
Update code
This commit is contained in:
@@ -5463,17 +5463,12 @@ public class Card extends GameEntity implements Comparable<Card> {
|
|||||||
public String getKeywordKey() {
|
public String getKeywordKey() {
|
||||||
String sorted = "";
|
String sorted = "";
|
||||||
List<String> ability = new ArrayList<>();
|
List<String> ability = new ArrayList<>();
|
||||||
ability.clear();
|
|
||||||
for (final KeywordInterface inst : getKeywords()) {
|
for (final KeywordInterface inst : getKeywords()) {
|
||||||
String kw = inst.getOriginal();
|
String kw = inst.getOriginal();
|
||||||
ability.add(kw);
|
ability.add(kw);
|
||||||
}
|
}
|
||||||
if (ability != null) {
|
Collections.sort(ability);
|
||||||
Collections.sort(ability);
|
sorted = String.join(",", ability);
|
||||||
for (final String s : ability){
|
|
||||||
sorted += s + ",";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return sorted;
|
return sorted;
|
||||||
}
|
}
|
||||||
public Zone getZone() {
|
public Zone getZone() {
|
||||||
|
|||||||
Reference in New Issue
Block a user