refactor into smaller units

This commit is contained in:
Rory Hinnen
2026-09-12 11:25:34 -05:00
parent 4eb7494d08
commit 1507f8b8c6
14 changed files with 637 additions and 415 deletions
+2 -2
View File
@@ -186,7 +186,7 @@ class Roll: ObservableObject {
case .wound:
return wound
case .armour:
return save
return save + mortalWoundsTotal
}
}
}
@@ -381,7 +381,7 @@ class Roll: ObservableObject {
saveHasRerolled = false
preRerollDice = nil
case .armour:
self.total = save
self.total = save + mortalWoundsTotal
self.state = .hit
hitHasRerolled = false
preRerollDice = nil