blowup now locks out subsequent rolls, unit tests added

This commit is contained in:
Rory Hinnen
2026-09-07 10:27:56 -05:00
parent a4d1634df7
commit 025b006194
5 changed files with 381 additions and 39 deletions
+6 -4
View File
@@ -226,14 +226,16 @@ struct MainView: View {
VStack {
Text("Blow Up")
VStack {
Button(action: {current.dice.blowup(dice: .six)})
{Image(systemName: "die.face.6")
Button(action: { current.applyBlowup(face: .six) }) {
Image(systemName: "die.face.6")
.foregroundColor(.primary)
}
Button(action: {current.dice.blowup(dice: .five)})
{Image(systemName: "die.face.5")
.disabled(current.blowupUsed)
Button(action: { current.applyBlowup(face: .five) }) {
Image(systemName: "die.face.5")
.foregroundColor(.primary)
}
.disabled(current.blowupUsed)
}
.padding()
.font(.system(size: controlSize))