Adds meta string to monster cards.

Implements meta method in Monster to return a formatted meta string.
Adds size to edit monster.
Moves monster copy logic to copyFromMonster in the Monster class.
Fixes JSON parsing to set strings to an empty string if they're missing from the json blob.
Makes Monster.size default to an empty string instead of null.
Cleans up some raw strings to use NSLocalizedString instead.
This commit is contained in:
2020-09-12 03:08:10 -07:00
parent dd05b39ea9
commit ee9994c2c8
9 changed files with 91 additions and 10 deletions

View File

@@ -35,6 +35,12 @@
self.navigationItem.title = self.monster.name;
}
}
NSString *metaText = self.monster.meta;
if (metaText == nil) {
self.monsterMeta.text = @"";
} else {
self.monsterMeta.text = metaText;
}
}
- (IBAction)unwindWithSegue:(UIStoryboardSegue *)unwindSegue {