Changing final result for noncrits to Cyan for visibility (on MY screen)

This commit is contained in:
🐙PiperYxzzy
2024-03-10 10:31:43 +02:00
parent 1c30be467d
commit f70c713c5f

View File

@@ -95,14 +95,14 @@ func simulate(dieFunc func() int, bouncesMin int, bouncesMax int, critNeut []int
for b := 0; b < bounces; b++ { for b := 0; b < bounces; b++ {
preroll := dieFunc() preroll := dieFunc()
fmt.Printf("\r>\033[34m%3d\033[0m", preroll) // purple while rolling fmt.Printf("\r>\033[34m%3d\033[0m", preroll) // blue while rolling
rwait := globalRand(50) + 25 rwait := globalRand(50) + 25
time.Sleep(time.Millisecond * time.Duration(rwait)) time.Sleep(time.Millisecond * time.Duration(rwait))
} }
actualRoll := dieFunc() actualRoll := dieFunc()
colour := "\033[34m" // Blue colour := "\033[36m" // Blue
if isIn(critNeut, actualRoll) { if isIn(critNeut, actualRoll) {
colour += "\033[1m\033[35m" // Purple colour += "\033[1m\033[35m" // Purple
} else if isIn(critBad, actualRoll) { } else if isIn(critBad, actualRoll) {