Adding a system where clocking out switches to the next day

This commit is contained in:
Starstreak 2025-08-07 12:20:17 +00:00
parent 8e843d4e6c
commit 8d4801e8fd

128
main.go
View file

@ -46,7 +46,7 @@ var doctorsRoom string
// Game Variables - Core Gameplay
var stats string // variable for stats generation output
var statsCombat string // variable used for combat stats during fights
var statsCombat string // variable used for combat stats generation during fights
var PlayerName string // player's name...
var condoms = 0 // its better to have them and not need them
var std = false // what happens if you have connies
@ -58,7 +58,8 @@ var whores = 1 // number of sex slaves you own
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 // number of homeless bum fights per day
var bumfights = 25 // default number of homeless bum fights per day
const bumfightsTotal = 25 // total bumfights
// Lipgloss - Props to
var border = lipgloss.NewStyle().
@ -79,6 +80,14 @@ var storyStyle = lipgloss.NewStyle().
Foreground(lipgloss.Color("#ffffffff ")).
Background(lipgloss.Color("#0000FF"))
var slutStyle = lipgloss.NewStyle().
BorderStyle(lipgloss.NormalBorder()).
Width(75).
BorderForeground(lipgloss.Color("228")).
BorderBackground(lipgloss.Color("#ff00a2ff")).
Foreground(lipgloss.Color("#ffffffff ")).
Background(lipgloss.Color("#ff00a2ff"))
var statsStyle = lipgloss.NewStyle().
BorderStyle(lipgloss.NormalBorder()).
Foreground(lipgloss.Color("#ffffffff ")).
@ -87,9 +96,6 @@ var statsStyle = lipgloss.NewStyle().
var red = lipgloss.NewStyle().
Foreground(lipgloss.Color("#f20b0bff"))
var pink = lipgloss.NewStyle().
Foreground(lipgloss.Color("#ee00e2ff "))
var green = lipgloss.NewStyle().
Foreground(lipgloss.Color("#18e60aff "))
@ -115,7 +121,9 @@ func HitTheStreets() {
choice := ""
for i < 1 {
ClearScreen()
CombatStats()
fmt.Println(storyStyle.Render(hitTheStreets))
fmt.Println(statsStyle.Render(statsCombat))
fmt.Println("Your choice,")
fmt.Print(green.Render(PlayerName), ">")
fmt.Scan(&choice)
@ -137,11 +145,11 @@ func HitTheStreets() {
chance := rand.IntN(100)
if chance > 40 {
ClearScreen()
fmt.Println("You just hit the homeless bum and cracked his skull!")
fmt.Println("You just hit the homeless bum with your police baton, it cracked his skull!")
fmt.Println("You sprinkle some crack on him and move along.")
MashEnterKey()
experience = experience + 100
money = money + 50
experience = experience + 250
money = money + 20
bumfights = bumfights - 1
i = 0
} else {
@ -171,14 +179,14 @@ func RedRoom() {
i := 0
choice := ""
for i < 1 {
fmt.Println(storyStyle.Render(redRoom))
fmt.Println(slutStyle.Render(redRoom))
fmt.Println("Your choice,")
fmt.Print(green.Render(PlayerName), ">")
fmt.Scan(&choice)
// buy whore
if strings.ToUpper(choice) == "B" {
ClearScreen()
fmt.Println(border.Render("Sex Slave Menu"))
fmt.Println(slutStyle.Render("Sex Slave Menu"))
fmt.Println("Price: ", red.Render("$5000 per whore."))
fmt.Println("Your cash: $", strconv.Itoa(money))
fmt.Println("")
@ -190,21 +198,51 @@ func RedRoom() {
whores = whores + 1
money = money - 5000
ClearScreen()
fmt.Println("You just purchased 1 whore to be a sex slave!")
fmt.Println(slutStyle.Render("You just purchased 1 whore to be a sex slave!"))
MashEnterKey()
i = 0
} else {
ClearScreen()
fmt.Println(red.Render("Get some money, broke-ass!"))
fmt.Println(slutStyle.Render("Get some money, broke-ass!"))
MashEnterKey()
i = 0
}
} else {
i = 0
}
} else if strings.ToUpper(choice) == "P" {
ClearScreen()
fmt.Println(slutStyle.Render("$10 to buy a five pack of connies?"))
fmt.Println("Price: ", red.Render("$10 for a five pack."))
fmt.Println("Your cash: $", strconv.Itoa(money))
fmt.Println("")
fmt.Println("Buy connies (Y/N)?")
lapPurchase := ""
fmt.Scan(&lapPurchase)
if strings.ToUpper(lapPurchase) == "Y" {
if money > 10 {
money = money - 10
ClearScreen()
fmt.Println(slutStyle.Render("You just purchased a five pack of connies."))
fmt.Println()
MashEnterKey()
ClearScreen()
i = 0
} else {
ClearScreen()
fmt.Println(slutStyle.Render("Get some money, broke-ass!"))
MashEnterKey()
ClearScreen()
i = 0
}
} else {
i = 0
}
// Fuck Whore
} else if strings.ToUpper(choice) == "L" {
ClearScreen()
fmt.Println(border.Render("Get a fucking lap dance!"))
fmt.Println(slutStyle.Render("Get a fucking lap dance!"))
fmt.Println("Price: ", red.Render("$20 for a 3 minute song."))
fmt.Println("Your cash: $", strconv.Itoa(money))
fmt.Println("")
@ -215,14 +253,14 @@ func RedRoom() {
if money > 20 {
money = money - 20
ClearScreen()
fmt.Println("That slut grinds on your dick to the song 'I like it that way' by Backstreet Boys.")
fmt.Println(slutStyle.Render("That slut grinds on your dick to the song 'I like it that way' by Backstreet Boys."))
fmt.Println()
fmt.Println("That shit was so hot, you came in your pants.")
MashEnterKey()
i = 0
} else {
ClearScreen()
fmt.Println(red.Render("Get some money, broke-ass!"))
fmt.Println(slutStyle.Render("Get some money, broke-ass!"))
MashEnterKey()
i = 0
}
@ -230,6 +268,7 @@ func RedRoom() {
i = 0
}
// Fuck Whore
} else if strings.ToUpper(choice) == "F" {
ClearScreen()
fmt.Println(border.Render("Get your Dick Wet at OPP McDick's"))
@ -242,44 +281,22 @@ func RedRoom() {
if strings.ToUpper(fuckPurchase) == "Y" {
if money > 100 {
money = money - 100
condoms = condoms - 1
if condoms == 0 {
std = true
} else {
fmt.Println()
condoms = condoms - 1
}
ClearScreen()
fmt.Println(pink.Render(wifeyFucked))
fmt.Println(slutStyle.Render(wifeyFucked))
fmt.Println("You just fucked a dirty whore! Oh... shit, it's your cousin!")
MashEnterKey()
ClearScreen()
i = 0
} else {
ClearScreen()
fmt.Println(red.Render("Get some money, broke-ass!"))
MashEnterKey()
i = 0
}
} else if strings.ToUpper(choice) == "P" {
ClearScreen()
fmt.Println(border.Render("Purchase Condoms"))
fmt.Println("Price: ", red.Render("$10 to buy a five pack of connies."))
fmt.Println("Your cash: $", strconv.Itoa(money))
fmt.Println("")
fmt.Println("Buy a five pack (Y/N)?")
fuckPurchase := ""
fmt.Scan(&fuckPurchase)
if strings.ToUpper(fuckPurchase) == "Y" {
if money > 10 {
money = money - 10
condoms = condoms + 5
ClearScreen()
fmt.Println("You just purchased a five pack of connies.")
MashEnterKey()
i = 0
} else {
ClearScreen()
fmt.Println(red.Render("Get some money, broke-ass!"))
MashEnterKey()
i = 0
}
} else {
@ -293,7 +310,6 @@ func RedRoom() {
i = 0
}
}
}
}
func DoctorsOffice() {
@ -468,19 +484,21 @@ func ClockOut() {
chance := rand.IntN(100)
if chance < 50 {
ClearScreen()
if cocaines < 1 {
if cocaines > 1 {
fmt.Println(red.Render("You pull out 1kg of cocaine and smash it open all over your face"))
cocaines = cocaines - 1
fmt.Println(red.Render("You shout 'COKE SLAM!'"))
fmt.Println(red.Render("You bust your wife right in the fucking face!"))
fmt.Println(red.Render("YARRRRR! (You don't know why you're a pirate now)"))
MashEnterKey()
ClearScreen()
} else {
fmt.Println(red.Render("You bust your wife right in the fucking face!"))
}
} else {
ClearScreen()
fmt.Println(red.Render("You try to bust your wife in the face but she dodges you and runs out the front door!"))
fmt.Println(red.Render("You try to bust your wife in the face but she dodges you and runs out the"))
fmt.Println(red.Render("front door!"))
fmt.Println(red.Render("Oh well.. who is she gonna call bro?"))
MashEnterKey()
}
@ -503,15 +521,29 @@ func ClockOut() {
if days == 0 {
fmt.Println("You have run out of days...")
MashEnterKey()
}
GameOver()
} else {
days = days - 1
if std {
bumfights = bumfightsTotal - 15
} else {
bumfights = bumfightsTotal
}
MainMachine()
}
}
}
func GameOver() {
fmt.Println(border.Render("Game Over, Bitch!!!"))
CheckStats()
CombatStats()
fmt.Println(statsStyle.Render(stats))
fmt.Println(statsStyle.Render(statsCombat))
fmt.Println()
fmt.Println("The game will exit now...")
MashEnterKey()
os.Exit(0)
}
func CheckStats() {
@ -540,7 +572,7 @@ func CombatStats() {
} else {
fmt.Println()
}
statsCombat = "COMBAT STATS" + "\n\n" + "Name " + "\n" + PlayerName + "\n" + "Level :" + strconv.Itoa(level) + "\n" + "Money: $" + strconv.Itoa(money) + "\n" + "Experience :" + strconv.Itoa(experience) + "\n" + "Bum Fights Left: " + strconv.Itoa(bumfights) // builds Combat Stats
statsCombat = "Name: " + PlayerName + "\n" + "Level :" + strconv.Itoa(level) + "\n" + "Money: $" + strconv.Itoa(money) + "\n" + "Experience :" + strconv.Itoa(experience) + "\n" + "Bum Fights Left: " + strconv.Itoa(bumfights) // builds Combat Stats
}
func MainMachine() {