Changing final result for noncrits to Cyan for visibility (on MY screen)
This commit is contained in:
4
roll.go
4
roll.go
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user