Fix cave bug; fix open/get commands
This commit is contained in:
parent
97675ed9ec
commit
ef12efb01f
10
main.go
10
main.go
@ -50,8 +50,8 @@ func main() {
|
||||
"There is an empty field to the (w)est.\n",
|
||||
chestItems,
|
||||
"none", "none", "entry", "none"},
|
||||
"cave": {"Cave", "\n A beast of inconevialable horror dwells in this" +
|
||||
" cave and proceds to tear you apart.",
|
||||
"cave": {"Cave", "\nA beast of inconevialable horror dwells in this" +
|
||||
" cave and proceds to tear you apart.\n",
|
||||
caveItems,
|
||||
"none", "none", "none", "entry"},
|
||||
}
|
||||
@ -112,6 +112,7 @@ func main() {
|
||||
|
||||
"(l)ook\n" +
|
||||
"(g)et\n" +
|
||||
"(o)pen\n" +
|
||||
"(u)se\n" +
|
||||
"(i)nventory\n\n")
|
||||
|
||||
@ -156,7 +157,7 @@ func main() {
|
||||
}
|
||||
println("")
|
||||
|
||||
case "get":
|
||||
case "g", "get":
|
||||
if command[1] == "" {
|
||||
println("")
|
||||
println("Get what? ")
|
||||
@ -184,7 +185,7 @@ func main() {
|
||||
}
|
||||
}
|
||||
println("\nI don't see any", command[1], "to get!")
|
||||
case "open":
|
||||
case "o", "open":
|
||||
if command[1] == "" {
|
||||
println("")
|
||||
println("Open what? ")
|
||||
@ -237,6 +238,7 @@ func main() {
|
||||
delete(player.items, "steak")
|
||||
}
|
||||
if steak_happened == false {
|
||||
println(player.loc.description)
|
||||
println("Well, it looks like you died! Good luck next time!")
|
||||
quit = true
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user