From 93f4ca090a6b1e237f2fbe0e80d0b80b01c3a1fc Mon Sep 17 00:00:00 2001 From: Phillip Thelen Date: Fri, 29 Sep 2017 11:28:51 +0200 Subject: [PATCH] fix quest detail display --- HabitRPG/Views/QuestGoalView.swift | 2 +- HabitRPG/Views/QuestGoalView.xib | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/HabitRPG/Views/QuestGoalView.swift b/HabitRPG/Views/QuestGoalView.swift index efcafb9cc..ab0843a68 100644 --- a/HabitRPG/Views/QuestGoalView.swift +++ b/HabitRPG/Views/QuestGoalView.swift @@ -52,7 +52,7 @@ class QuestGoalView: UIView { healthIcon.isHidden = false typeLabel.text = NSLocalizedString("Health", comment: "") goalDetailLabel.text = "\(bossHealth)" - rageMeterView.isHidden = bossHealth == 0 + rageMeterView.isHidden = (quest.bossRage?.intValue ?? 0) != 0 typeBackgroundView.backgroundColor = .red100() difficultyImageView.image = HabiticaIcons.imageOfDifficultyStars(difficulty: CGFloat(quest.bossStr?.floatValue ?? 0)) } else { diff --git a/HabitRPG/Views/QuestGoalView.xib b/HabitRPG/Views/QuestGoalView.xib index 22a795d25..df0343ebf 100644 --- a/HabitRPG/Views/QuestGoalView.xib +++ b/HabitRPG/Views/QuestGoalView.xib @@ -1,11 +1,11 @@ - + - + @@ -80,13 +80,13 @@