blowup now locks out subsequent rolls, unit tests added
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user