Minor fixes

This commit is contained in:
Starstreak 2025-08-12 15:36:53 +00:00
parent 96673da1f5
commit 88a006407e

12
main.go
View file

@ -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" {