Adds abilityModifierForScore and tests.

This commit is contained in:
2020-09-13 02:47:58 -07:00
parent 2aaca29741
commit 52a7ba871a
2 changed files with 26 additions and 1 deletions

View File

@@ -44,7 +44,7 @@
@synthesize wisdomScore;
+(int)abilityModifierForScore: (int)score {
@throw [[NSException alloc] initWithName:@"unimplemented" reason:@"Method not implemented." userInfo:nil];
return (int)floor((score - 10) / 2.0);
}
+(int)hitDieForSize: (NSString*)size{