Adds HP to monster card.

This commit is contained in:
2020-09-25 03:52:44 -07:00
parent 16aa24150e
commit 5a2e98d35b
4 changed files with 19 additions and 1 deletions

View File

@@ -52,6 +52,14 @@
self.monsterArmorClass.attributedText = [HTMLHelper attributedStringFromHTML:[NSString stringWithFormat:@"<span style=\"font-family: helvetica; font-size: 12pt; color: #9B2818;\"><b>Armor Class</b> %@</span>", armorClassDescription]];
}
}
if (self.monsterHitPoints != nil) {
NSString *hitPointsDescription = self.monster.hitPointsDescription;
if (hitPointsDescription == nil) {
self.monsterHitPoints.text = @"";
} else {
self.monsterHitPoints.attributedText = [HTMLHelper attributedStringFromHTML:[NSString stringWithFormat:@"<span style=\"font-family: helvetica; font-size: 12pt; color: #9B2818;\"><b>Hit Points</b> %@</span>", hitPointsDescription]];
}
}
}
- (IBAction)unwindWithSegue:(UIStoryboardSegue *)unwindSegue {