Commit Graph

95 Commits

Author SHA1 Message Date
8be1479357 Convertes to Swift and SwiftUI 2021-01-18 00:30:45 -08:00
b79cb36335 Fixes a bug editing a new monster. 2020-10-09 22:04:28 -07:00
65afc41197 Updates storyboard to fix display on iPad.
Disables dark mode until we can come up with a dark mode color scheme that looks good
2020-10-04 01:12:25 -07:00
ec921aa705 Fixes how we check which saving throws to show. 2020-10-04 00:46:12 -07:00
e057f6f12e Adds advantage/disadvantage to saving throw display. 2020-10-04 00:37:11 -07:00
9ced8e3407 Adds saving throws to monster card display.
Adds proficiencyBonus implementation to Monster. The proficiency bonus relies on CR and defaults to 0 until the CR fields are implemented
2020-10-04 00:19:04 -07:00
757f75657f Adds Saving Throws to the data model and monster editor. 2020-10-03 22:44:15 -07:00
fae10b17ed Disables row selection in the edit form table. 2020-10-03 22:22:12 -07:00
15f012a65a Fixes JSON initializer and tests. 2020-09-26 23:10:24 -07:00
308cb755fe Adds ability scores to monster cards. 2020-09-26 23:06:03 -07:00
b2c21e0542 Adds select field with picker as TextField inputView. 2020-09-26 22:18:04 -07:00
828d65ad44 Renames armorName to armorType.
Sets default values for core data fields.
Moves hit dice and hp related fields into the basic info section of the editor.
2020-09-26 17:15:43 -07:00
b8eb935d9a Fixes initial state of integer fields. 2020-09-26 16:37:01 -07:00
533677baff Cleans up code that generates HTML labels.
Adds Label for speed.
Makes the Monster Card refresh the monster from CoreData when the view is shown.
2020-09-26 15:09:46 -07:00
7bbe86c901 Adds speed properties to Core Data and monster editor. 2020-09-26 01:22:11 -07:00
f23fe12e7b Adds Hit Dice and Custom HP to monster edit form. 2020-09-25 04:47:23 -07:00
6341081fde Adds boolean field to MCFormFields. 2020-09-25 04:46:50 -07:00
5a2e98d35b Adds HP to monster card. 2020-09-25 03:52:44 -07:00
16aa24150e Adds HP related fields to core data.
Implements hitDieForSize and hitPointsDescription in Monster.
Adds tests.
2020-09-20 03:21:34 -07:00
44354f7c8f Exposes constants used by Monster internally for values. 2020-09-20 03:19:24 -07:00
f94c7863b7 Fixes EditMonsterViewController tests to use the new cell reuse identifier. 2020-09-20 03:17:28 -07:00
93399a8bda Adds ability scores (strength, dexterity, constitution, intelligence, wisdom, and charisma) to the edit monster form. 2020-09-18 01:00:30 -07:00
1ecd4a4327 Adds a label to the integer form field.
Makes the string value and both string and integer label update the underlying controls when set.
2020-09-18 00:47:48 -07:00
800e7ef6f1 Partial fixes to tests to run with Xcode 12. 2020-09-18 00:27:31 -07:00
84b0d246b5 Refactors form field cell creation into separate reusable methods. 2020-09-18 00:16:38 -07:00
e21c755e62 Renames old form field class and delegate.
Adds new form field for integers.
2020-09-17 23:45:05 -07:00
da6a03144a Updates to Xcode 12.
Drops the iOS version in both projects to 13 from 13.0 and 13.7.
2020-09-17 20:24:12 -07:00
b41b138f93 Updates comment explaining the format of the monster meta string. 2020-09-17 13:04:28 -07:00
c58f0909bb Makes Monster initializer use new JSONHelper methods to make parsing more expressive. 2020-09-17 13:03:48 -07:00
c224c51f84 Adds JSONHelper methods to make parsing json from strings and NSData objects easier. 2020-09-17 12:58:59 -07:00
8f52940d98 Adds JSONHelper methods to read arrays. 2020-09-17 12:37:03 -07:00
555efac0c4 Adds JSONHelper methods to read dictionaries. 2020-09-17 01:32:52 -07:00
9bf1595f29 Adds methods to JSONHelper to read boolean values. 2020-09-17 00:50:27 -07:00
4a1145fd28 Adds JSONHelper methods to read numbers as ints. 2020-09-17 00:30:22 -07:00
82625d4548 Adds JSONHelper methods to read numbers as NSNumber objects. 2020-09-17 00:27:40 -07:00
bc23b55429 Adds JSONHelper methods to read strings. (+1 squashed commit)
Squashed commits:
[30b0a71] Adds JSONHelper methods to read strings.
2020-09-17 00:23:28 -07:00
42baec2a38 Adds armor class to monster cards. 2020-09-15 20:26:39 -07:00
8029fb7540 Adds HTMLHelper to convert from HTML in an NSString to a properly attributed NSAttributedString. 2020-09-15 20:18:08 -07:00
4ff6a28c67 Adds armorClassDescription to Monster. 2020-09-15 20:00:15 -07:00
3e93aa59b4 Adds shieldBonus to Monster entity.
Adds tests for shieldBonus.
2020-09-15 20:00:15 -07:00
bead4f8ee5 Adds otherArmorDescription to Monster entity.
Adds tests for otherArmorDescription.
2020-09-15 20:00:15 -07:00
5aa88932f7 Adds armorName to Monster entity.
Adds tests for armorName.
2020-09-15 20:00:15 -07:00
a6f048cc2d Moves ability scores to Core Data entity. 2020-09-15 20:00:15 -07:00
e541fdcae3 Adds charismaScore and charismaModifier to Monster.
Adds tests for charismaScore and charismaModifier.
2020-09-15 20:00:15 -07:00
a26031a04f Adds wisdomScore and wisdomModifier to Monster.
Adds tests for wisdomScore and wisdomModifier.
2020-09-15 20:00:15 -07:00
05b3ad1280 Adds intelligenceScore and intelligenceModifier to Monster.
Adds tests for intelligenceScore and intelligenceModifier.
2020-09-15 20:00:15 -07:00
26f92e43f6 Adds constitutionScore and constitutionModifier to Monster.
Adds tests for constitutionScore and constitutionModifier.
2020-09-15 20:00:15 -07:00
d3dd60fb2c Adds dexterityScore and dexterityModifier to Monster.
Adds tests for dexterityScore and dexterityModifier.
2020-09-15 20:00:14 -07:00
91a99a5df3 Adds strengthScore and strengthModifier to Monster.
Adds tests for strengthScore and strengthModifier.
2020-09-15 20:00:14 -07:00
2fd50a9f68 Adds abilityModifierForScore and tests. 2020-09-15 19:58:58 -07:00