Moves ability scores to Core Data entity.
This commit is contained in:
@@ -39,12 +39,6 @@ NS_ASSUME_NONNULL_BEGIN
|
|||||||
@property NSString *truesightDistance;
|
@property NSString *truesightDistance;
|
||||||
@property NSString *understandsBut;
|
@property NSString *understandsBut;
|
||||||
|
|
||||||
@property int strengthScore;
|
|
||||||
@property int dexterityScore;
|
|
||||||
@property int constitutionScore;
|
|
||||||
@property int intelligenceScore;
|
|
||||||
@property int wisdomScore;
|
|
||||||
@property int charismaScore;
|
|
||||||
@property int shieldBonus;
|
@property int shieldBonus;
|
||||||
@property int naturalArmorBonus;
|
@property int naturalArmorBonus;
|
||||||
@property int hitDice;
|
@property int hitDice;
|
||||||
|
|||||||
@@ -15,33 +15,27 @@
|
|||||||
@synthesize blindsightDistance;
|
@synthesize blindsightDistance;
|
||||||
@synthesize burrowSpeed;
|
@synthesize burrowSpeed;
|
||||||
@synthesize challengeRating;
|
@synthesize challengeRating;
|
||||||
@synthesize charismaScore;
|
|
||||||
@synthesize climbSpeed;
|
@synthesize climbSpeed;
|
||||||
@synthesize constitutionScore;
|
|
||||||
@synthesize customChallengeRating;
|
@synthesize customChallengeRating;
|
||||||
@synthesize customHP;
|
@synthesize customHP;
|
||||||
@synthesize customProficiencyBonus;
|
@synthesize customProficiencyBonus;
|
||||||
@synthesize customSpeed;
|
@synthesize customSpeed;
|
||||||
@synthesize customSpeedDescription;
|
@synthesize customSpeedDescription;
|
||||||
@synthesize darkvisionDistance;
|
@synthesize darkvisionDistance;
|
||||||
@synthesize dexterityScore;
|
|
||||||
@synthesize flySpeed;
|
@synthesize flySpeed;
|
||||||
@synthesize hitDice;
|
@synthesize hitDice;
|
||||||
@synthesize hover;
|
@synthesize hover;
|
||||||
@synthesize hpText;
|
@synthesize hpText;
|
||||||
@synthesize intelligenceScore;
|
|
||||||
@synthesize isBlind;
|
@synthesize isBlind;
|
||||||
@synthesize naturalArmorBonus;
|
@synthesize naturalArmorBonus;
|
||||||
@synthesize otherArmorDescription;
|
@synthesize otherArmorDescription;
|
||||||
@synthesize shieldBonus;
|
@synthesize shieldBonus;
|
||||||
@synthesize speed;
|
@synthesize speed;
|
||||||
@synthesize strengthScore;
|
|
||||||
@synthesize swimSpeed;
|
@synthesize swimSpeed;
|
||||||
@synthesize telepathy;
|
@synthesize telepathy;
|
||||||
@synthesize tremorsenseDistance;
|
@synthesize tremorsenseDistance;
|
||||||
@synthesize truesightDistance;
|
@synthesize truesightDistance;
|
||||||
@synthesize understandsBut;
|
@synthesize understandsBut;
|
||||||
@synthesize wisdomScore;
|
|
||||||
|
|
||||||
+(int)abilityModifierForScore: (int)score {
|
+(int)abilityModifierForScore: (int)score {
|
||||||
return (int)floor((score - 10) / 2.0);
|
return (int)floor((score - 10) / 2.0);
|
||||||
|
|||||||
@@ -2,12 +2,18 @@
|
|||||||
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="16119" systemVersion="19G2021" minimumToolsVersion="Automatic" sourceLanguage="Objective-C" usedWithCloudKit="YES" userDefinedModelVersionIdentifier="">
|
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="16119" systemVersion="19G2021" minimumToolsVersion="Automatic" sourceLanguage="Objective-C" usedWithCloudKit="YES" userDefinedModelVersionIdentifier="">
|
||||||
<entity name="Monster" representedClassName="Monster" syncable="YES" codeGenerationType="category">
|
<entity name="Monster" representedClassName="Monster" syncable="YES" codeGenerationType="category">
|
||||||
<attribute name="alignment" attributeType="String" defaultValueString=""/>
|
<attribute name="alignment" attributeType="String" defaultValueString=""/>
|
||||||
|
<attribute name="charismaScore" optional="YES" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES"/>
|
||||||
|
<attribute name="constitutionScore" optional="YES" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES"/>
|
||||||
|
<attribute name="dexterityScore" optional="YES" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES"/>
|
||||||
|
<attribute name="intelligenceScore" optional="YES" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES"/>
|
||||||
<attribute name="name" attributeType="String" defaultValueString=""/>
|
<attribute name="name" attributeType="String" defaultValueString=""/>
|
||||||
<attribute name="size" attributeType="String" defaultValueString=""/>
|
<attribute name="size" attributeType="String" defaultValueString=""/>
|
||||||
|
<attribute name="strengthScore" optional="YES" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES"/>
|
||||||
<attribute name="subtype" attributeType="String" defaultValueString=""/>
|
<attribute name="subtype" attributeType="String" defaultValueString=""/>
|
||||||
<attribute name="type" attributeType="String" defaultValueString=""/>
|
<attribute name="type" attributeType="String" defaultValueString=""/>
|
||||||
|
<attribute name="wisdomScore" optional="YES" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES"/>
|
||||||
</entity>
|
</entity>
|
||||||
<elements>
|
<elements>
|
||||||
<element name="Monster" positionX="-63" positionY="-18" width="128" height="118"/>
|
<element name="Monster" positionX="-63" positionY="-18" width="128" height="208"/>
|
||||||
</elements>
|
</elements>
|
||||||
</model>
|
</model>
|
||||||
Reference in New Issue
Block a user