next step
This commit is contained in:
@@ -9,29 +9,29 @@ struct InfoAreaView: View {
|
||||
@EnvironmentObject var current: Roll
|
||||
|
||||
var body: some View {
|
||||
VStack(alignment: .leading, spacing: 6) {
|
||||
HStack() {
|
||||
switch current.state {
|
||||
case .hit:
|
||||
if current.lethalHits || current.sustainedHits {
|
||||
Text("Crits (6s): \(current.critHitCount)")
|
||||
.fontWeight(.semibold)
|
||||
.foregroundColor(.orange)
|
||||
.foregroundColor(.red)
|
||||
}
|
||||
if current.antiX {
|
||||
Text("Anti-X (\(current.antiXThreshold)+): \(current.antiXCount)")
|
||||
.fontWeight(.semibold)
|
||||
.foregroundColor(.orange)
|
||||
.foregroundColor(.red)
|
||||
}
|
||||
case .wound:
|
||||
if current.autoWoundsCarried > 0 {
|
||||
Text("Auto-wounds carried: \(current.autoWoundsCarried) (skip wound roll)")
|
||||
.fontWeight(.semibold)
|
||||
.foregroundColor(.orange)
|
||||
.foregroundColor(.red)
|
||||
}
|
||||
if current.devastatingWounds {
|
||||
Text("Mortals (6s): \(current.critWoundCount)")
|
||||
Text("Mortal wounds: \(current.critWoundCount)")
|
||||
.fontWeight(.semibold)
|
||||
.foregroundColor(.orange)
|
||||
.foregroundColor(.red)
|
||||
}
|
||||
case .armour:
|
||||
EmptyView()
|
||||
|
||||
Reference in New Issue
Block a user