Fixes toggling a shield in the editor not affecting the displayed AC.

This commit is contained in:
2021-04-04 03:13:19 -07:00
parent 2e6b8bb377
commit f9647eaf97

View File

@@ -19,7 +19,9 @@ class MonsterViewModel: ObservableObject {
@Published var hasCustomHP: Bool @Published var hasCustomHP: Bool
@Published var customHP: String @Published var customHP: String
@Published var armorType: ArmorType @Published var armorType: ArmorType
@Published var hasShield: Bool @Published var hasShield: Bool {
didSet { shieldBonus = hasShield ? 2 : 0 }
}
@Published var naturalArmorBonus: Int64 @Published var naturalArmorBonus: Int64
@Published var customArmor: String @Published var customArmor: String
@Published var baseSpeed: Int64 @Published var baseSpeed: Int64