From 88a006407e2cdac886aeee54a59e90b9443e61de Mon Sep 17 00:00:00 2001 From: Starstreak Date: Tue, 12 Aug 2025 15:36:53 +0000 Subject: [PATCH] Minor fixes --- main.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/main.go b/main.go index d3bde50..7b7df86 100644 --- a/main.go +++ b/main.go @@ -59,9 +59,9 @@ var cocaines = 0 // cocaine in 1/gram units var fentanyl = 0 // fentanyl in 500 miligram units var LSD = 0 // LSD in pills var bumfights = 25 // default number of homeless bum fights per day -const bumfightsTotal = 25 // total bumfights +const bumfightsTotal = 25 // total bumfights used to reset bum fights per day const taxes = 500 // skimming off the top -var childsupport = 0 // if you get a hoe preggers +var childsupport = 0 // default 0 but changes if you get a hoe preggers // Lipgloss - Props to var border = lipgloss.NewStyle(). @@ -103,7 +103,7 @@ var green = lipgloss.NewStyle(). // why the fuck does golang not do this - should work on win10/11 (yes it does support ansi escape codes *now*) func ClearScreen() { - fmt.Print("\033[H\033[2J") + fmt.Print("\033[H\033[2J") // this does appear to work on windows pe liveiso from win11 (tested in qemu) } // Cool stylized Enter key masher @@ -141,6 +141,8 @@ func HitTheStreets() { fmt.Println(border.Render(statsCombat)) fmt.Println("(A)ttack") fmt.Println("(E)scape") + fmt.Println("Your choice,") + fmt.Print(green.Render(PlayerName), ">") homelessPunch := "" fmt.Scan(&homelessPunch) if strings.ToUpper(homelessPunch) == "A" { @@ -285,14 +287,14 @@ func RedRoom() { if condoms == 0 { stdChance := rand.IntN(100) preggoChance := rand.IntN(100) - if stdChance > 25 { + if stdChance < 25 { std = true } else { } if preggoChance > 15 { fmt.Println(border.Render("You got the whore pregnant! Do you want to sell the kid to")) - fmt.Println(border.Render("Pakistan for $500 up front to sew soccer balls?")) + fmt.Println(border.Render("Pakistan for $500 to sew soccer balls?")) soccerBalls := "" fmt.Scan(&soccerBalls) if strings.ToUpper(soccerBalls) == "Y" {