Adds armorName to Monster entity.

Adds tests for armorName.
This commit is contained in:
2020-09-13 04:15:17 -07:00
parent f8d3a893ca
commit e309e15af4
4 changed files with 15 additions and 4 deletions

View File

@@ -11,7 +11,6 @@
@implementation Monster
@synthesize armorName;
@synthesize blindsightDistance;
@synthesize burrowSpeed;
@synthesize challengeRating;
@@ -71,6 +70,7 @@
self.type = [jsonRoot objectForKey:@"type"] ?: @"";
self.subtype = [jsonRoot objectForKey:@"tag"] ?: @"";
self.alignment = [jsonRoot objectForKey:@"alignment"] ?: @"";
self.armorName = [jsonRoot objectForKey:@"armorName"] ?: @"";
tempNumber = [jsonRoot objectForKey:@"strPoints"];
if (tempNumber != nil && [tempNumber isKindOfClass:[NSNumber class]]) {
self.strengthScore = tempNumber.intValue;
@@ -366,6 +366,7 @@
self.intelligenceScore = monster.intelligenceScore;
self.wisdomScore = monster.wisdomScore;
self.charismaScore = monster.charismaScore;
self.armorName = monster.armorName;
}
@end