Skip to content

Commit

Permalink
Added Enraged and Windfury effects to the GUI.
Browse files Browse the repository at this point in the history
  • Loading branch information
skiwi2 committed Feb 25, 2015
1 parent 818143f commit 757607a
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ private static String getSpecialEffects(final Entity entity) {
int charge = ResourceRetriever.forResource(HearthStoneResource.CHARGE).getOrDefault(entity, 0);
int frozen = ResourceRetriever.forResource(HearthStoneResource.FROZEN).getOrDefault(entity, 0);
int stealth = ResourceRetriever.forResource(HearthStoneResource.STEALTH).getOrDefault(entity, 0);
int enraged = ResourceRetriever.forResource(HearthStoneResource.ENRAGED).getOrDefault(entity, 0);
int windfury = ResourceRetriever.forResource(HearthStoneResource.WINDFURY).getOrDefault(entity, 0);

List<String> effects = new ArrayList<>();
if (justPlayed == 1) {
Expand All @@ -251,6 +253,12 @@ private static String getSpecialEffects(final Entity entity) {
if (stealth == 1) {
effects.add("Stealth");
}
if (enraged == 1) {
effects.add("Enraged");
}
if (windfury == 1) {
effects.add("Windfury");
}

return effects.stream().collect(Collectors.joining(", "));
}
Expand Down

0 comments on commit 757607a

Please sign in to comment.