Adding a system where clocking out switches to the next day
This commit is contained in:
parent
8e843d4e6c
commit
8d4801e8fd
1 changed files with 99 additions and 67 deletions
128
main.go
128
main.go
|
|
@ -46,7 +46,7 @@ var doctorsRoom string
|
||||||
|
|
||||||
// Game Variables - Core Gameplay
|
// Game Variables - Core Gameplay
|
||||||
var stats string // variable for stats generation output
|
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 PlayerName string // player's name...
|
||||||
var condoms = 0 // its better to have them and not need them
|
var condoms = 0 // its better to have them and not need them
|
||||||
var std = false // what happens if you have connies
|
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 cocaines = 0 // cocaine in 1/gram units
|
||||||
var fentanyl = 0 // fentanyl in 500 miligram units
|
var fentanyl = 0 // fentanyl in 500 miligram units
|
||||||
var LSD = 0 // LSD in pills
|
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
|
// Lipgloss - Props to
|
||||||
var border = lipgloss.NewStyle().
|
var border = lipgloss.NewStyle().
|
||||||
|
|
@ -79,6 +80,14 @@ var storyStyle = lipgloss.NewStyle().
|
||||||
Foreground(lipgloss.Color("#ffffffff ")).
|
Foreground(lipgloss.Color("#ffffffff ")).
|
||||||
Background(lipgloss.Color("#0000FF"))
|
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().
|
var statsStyle = lipgloss.NewStyle().
|
||||||
BorderStyle(lipgloss.NormalBorder()).
|
BorderStyle(lipgloss.NormalBorder()).
|
||||||
Foreground(lipgloss.Color("#ffffffff ")).
|
Foreground(lipgloss.Color("#ffffffff ")).
|
||||||
|
|
@ -87,9 +96,6 @@ var statsStyle = lipgloss.NewStyle().
|
||||||
var red = lipgloss.NewStyle().
|
var red = lipgloss.NewStyle().
|
||||||
Foreground(lipgloss.Color("#f20b0bff"))
|
Foreground(lipgloss.Color("#f20b0bff"))
|
||||||
|
|
||||||
var pink = lipgloss.NewStyle().
|
|
||||||
Foreground(lipgloss.Color("#ee00e2ff "))
|
|
||||||
|
|
||||||
var green = lipgloss.NewStyle().
|
var green = lipgloss.NewStyle().
|
||||||
Foreground(lipgloss.Color("#18e60aff "))
|
Foreground(lipgloss.Color("#18e60aff "))
|
||||||
|
|
||||||
|
|
@ -115,7 +121,9 @@ func HitTheStreets() {
|
||||||
choice := ""
|
choice := ""
|
||||||
for i < 1 {
|
for i < 1 {
|
||||||
ClearScreen()
|
ClearScreen()
|
||||||
|
CombatStats()
|
||||||
fmt.Println(storyStyle.Render(hitTheStreets))
|
fmt.Println(storyStyle.Render(hitTheStreets))
|
||||||
|
fmt.Println(statsStyle.Render(statsCombat))
|
||||||
fmt.Println("Your choice,")
|
fmt.Println("Your choice,")
|
||||||
fmt.Print(green.Render(PlayerName), ">")
|
fmt.Print(green.Render(PlayerName), ">")
|
||||||
fmt.Scan(&choice)
|
fmt.Scan(&choice)
|
||||||
|
|
@ -137,11 +145,11 @@ func HitTheStreets() {
|
||||||
chance := rand.IntN(100)
|
chance := rand.IntN(100)
|
||||||
if chance > 40 {
|
if chance > 40 {
|
||||||
ClearScreen()
|
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.")
|
fmt.Println("You sprinkle some crack on him and move along.")
|
||||||
MashEnterKey()
|
MashEnterKey()
|
||||||
experience = experience + 100
|
experience = experience + 250
|
||||||
money = money + 50
|
money = money + 20
|
||||||
bumfights = bumfights - 1
|
bumfights = bumfights - 1
|
||||||
i = 0
|
i = 0
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -171,14 +179,14 @@ func RedRoom() {
|
||||||
i := 0
|
i := 0
|
||||||
choice := ""
|
choice := ""
|
||||||
for i < 1 {
|
for i < 1 {
|
||||||
fmt.Println(storyStyle.Render(redRoom))
|
fmt.Println(slutStyle.Render(redRoom))
|
||||||
fmt.Println("Your choice,")
|
fmt.Println("Your choice,")
|
||||||
fmt.Print(green.Render(PlayerName), ">")
|
fmt.Print(green.Render(PlayerName), ">")
|
||||||
fmt.Scan(&choice)
|
fmt.Scan(&choice)
|
||||||
// buy whore
|
// buy whore
|
||||||
if strings.ToUpper(choice) == "B" {
|
if strings.ToUpper(choice) == "B" {
|
||||||
ClearScreen()
|
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("Price: ", red.Render("$5000 per whore."))
|
||||||
fmt.Println("Your cash: $", strconv.Itoa(money))
|
fmt.Println("Your cash: $", strconv.Itoa(money))
|
||||||
fmt.Println("")
|
fmt.Println("")
|
||||||
|
|
@ -190,21 +198,51 @@ func RedRoom() {
|
||||||
whores = whores + 1
|
whores = whores + 1
|
||||||
money = money - 5000
|
money = money - 5000
|
||||||
ClearScreen()
|
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()
|
MashEnterKey()
|
||||||
i = 0
|
i = 0
|
||||||
} else {
|
} else {
|
||||||
ClearScreen()
|
ClearScreen()
|
||||||
fmt.Println(red.Render("Get some money, broke-ass!"))
|
fmt.Println(slutStyle.Render("Get some money, broke-ass!"))
|
||||||
MashEnterKey()
|
MashEnterKey()
|
||||||
i = 0
|
i = 0
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
i = 0
|
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" {
|
} else if strings.ToUpper(choice) == "L" {
|
||||||
ClearScreen()
|
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("Price: ", red.Render("$20 for a 3 minute song."))
|
||||||
fmt.Println("Your cash: $", strconv.Itoa(money))
|
fmt.Println("Your cash: $", strconv.Itoa(money))
|
||||||
fmt.Println("")
|
fmt.Println("")
|
||||||
|
|
@ -215,14 +253,14 @@ func RedRoom() {
|
||||||
if money > 20 {
|
if money > 20 {
|
||||||
money = money - 20
|
money = money - 20
|
||||||
ClearScreen()
|
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()
|
||||||
fmt.Println("That shit was so hot, you came in your pants.")
|
fmt.Println("That shit was so hot, you came in your pants.")
|
||||||
MashEnterKey()
|
MashEnterKey()
|
||||||
i = 0
|
i = 0
|
||||||
} else {
|
} else {
|
||||||
ClearScreen()
|
ClearScreen()
|
||||||
fmt.Println(red.Render("Get some money, broke-ass!"))
|
fmt.Println(slutStyle.Render("Get some money, broke-ass!"))
|
||||||
MashEnterKey()
|
MashEnterKey()
|
||||||
i = 0
|
i = 0
|
||||||
}
|
}
|
||||||
|
|
@ -230,6 +268,7 @@ func RedRoom() {
|
||||||
i = 0
|
i = 0
|
||||||
}
|
}
|
||||||
// Fuck Whore
|
// Fuck Whore
|
||||||
|
|
||||||
} else if strings.ToUpper(choice) == "F" {
|
} else if strings.ToUpper(choice) == "F" {
|
||||||
ClearScreen()
|
ClearScreen()
|
||||||
fmt.Println(border.Render("Get your Dick Wet at OPP McDick's"))
|
fmt.Println(border.Render("Get your Dick Wet at OPP McDick's"))
|
||||||
|
|
@ -242,44 +281,22 @@ func RedRoom() {
|
||||||
if strings.ToUpper(fuckPurchase) == "Y" {
|
if strings.ToUpper(fuckPurchase) == "Y" {
|
||||||
if money > 100 {
|
if money > 100 {
|
||||||
money = money - 100
|
money = money - 100
|
||||||
condoms = condoms - 1
|
|
||||||
if condoms == 0 {
|
if condoms == 0 {
|
||||||
std = true
|
std = true
|
||||||
} else {
|
} else {
|
||||||
fmt.Println()
|
condoms = condoms - 1
|
||||||
}
|
}
|
||||||
ClearScreen()
|
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!")
|
fmt.Println("You just fucked a dirty whore! Oh... shit, it's your cousin!")
|
||||||
MashEnterKey()
|
MashEnterKey()
|
||||||
|
ClearScreen()
|
||||||
i = 0
|
i = 0
|
||||||
} else {
|
} else {
|
||||||
ClearScreen()
|
ClearScreen()
|
||||||
fmt.Println(red.Render("Get some money, broke-ass!"))
|
fmt.Println(red.Render("Get some money, broke-ass!"))
|
||||||
MashEnterKey()
|
MashEnterKey()
|
||||||
i = 0
|
|
||||||
}
|
|
||||||
} else if strings.ToUpper(choice) == "P" {
|
|
||||||
ClearScreen()
|
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
|
i = 0
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -293,7 +310,6 @@ func RedRoom() {
|
||||||
i = 0
|
i = 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func DoctorsOffice() {
|
func DoctorsOffice() {
|
||||||
|
|
@ -468,19 +484,21 @@ func ClockOut() {
|
||||||
chance := rand.IntN(100)
|
chance := rand.IntN(100)
|
||||||
if chance < 50 {
|
if chance < 50 {
|
||||||
ClearScreen()
|
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"))
|
fmt.Println(red.Render("You pull out 1kg of cocaine and smash it open all over your face"))
|
||||||
cocaines = cocaines - 1
|
cocaines = cocaines - 1
|
||||||
fmt.Println(red.Render("You shout 'COKE SLAM!'"))
|
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("You bust your wife right in the fucking face!"))
|
||||||
fmt.Println(red.Render("YARRRRR! (You don't know why you're a pirate now)"))
|
fmt.Println(red.Render("YARRRRR! (You don't know why you're a pirate now)"))
|
||||||
MashEnterKey()
|
MashEnterKey()
|
||||||
|
ClearScreen()
|
||||||
} else {
|
} else {
|
||||||
fmt.Println(red.Render("You bust your wife right in the fucking face!"))
|
fmt.Println(red.Render("You bust your wife right in the fucking face!"))
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ClearScreen()
|
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?"))
|
fmt.Println(red.Render("Oh well.. who is she gonna call bro?"))
|
||||||
MashEnterKey()
|
MashEnterKey()
|
||||||
}
|
}
|
||||||
|
|
@ -503,15 +521,29 @@ func ClockOut() {
|
||||||
if days == 0 {
|
if days == 0 {
|
||||||
fmt.Println("You have run out of days...")
|
fmt.Println("You have run out of days...")
|
||||||
MashEnterKey()
|
MashEnterKey()
|
||||||
|
GameOver()
|
||||||
}
|
} else {
|
||||||
days = days - 1
|
days = days - 1
|
||||||
|
if std {
|
||||||
|
bumfights = bumfightsTotal - 15
|
||||||
|
} else {
|
||||||
|
bumfights = bumfightsTotal
|
||||||
|
}
|
||||||
|
MainMachine()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func GameOver() {
|
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() {
|
func CheckStats() {
|
||||||
|
|
@ -540,7 +572,7 @@ func CombatStats() {
|
||||||
} else {
|
} else {
|
||||||
fmt.Println()
|
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() {
|
func MainMachine() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue