Adds otherArmorDescription to Monster entity.

Adds tests for otherArmorDescription.
This commit is contained in:
2020-09-13 04:25:08 -07:00
parent e309e15af4
commit 700724ce5b
3 changed files with 4 additions and 3 deletions

View File

@@ -27,7 +27,6 @@
@synthesize hpText;
@synthesize isBlind;
@synthesize naturalArmorBonus;
@synthesize otherArmorDescription;
@synthesize shieldBonus;
@synthesize speed;
@synthesize swimSpeed;
@@ -71,6 +70,7 @@
self.subtype = [jsonRoot objectForKey:@"tag"] ?: @"";
self.alignment = [jsonRoot objectForKey:@"alignment"] ?: @"";
self.armorName = [jsonRoot objectForKey:@"armorName"] ?: @"";
self.otherArmorDescription = [jsonRoot objectForKey:@"otherArmorDesc"] ?: @"";
tempNumber = [jsonRoot objectForKey:@"strPoints"];
if (tempNumber != nil && [tempNumber isKindOfClass:[NSNumber class]]) {
self.strengthScore = tempNumber.intValue;
@@ -367,6 +367,7 @@
self.wisdomScore = monster.wisdomScore;
self.charismaScore = monster.charismaScore;
self.armorName = monster.armorName;
self.otherArmorDescription = monster.otherArmorDescription;
}
@end