mirror of
https://github.com/badvision/lawless-legends.git
synced 2025-01-23 05:29:50 +00:00
Added fight/run logic.
This commit is contained in:
parent
87cd0c3fd0
commit
6b38c49ffd
@ -1566,10 +1566,23 @@ def combat()
|
||||
p = p=>p_nextObj
|
||||
loop
|
||||
|
||||
// You mean the monsters? That will be first seen when combat starts. The player will be walking around minding their own business when all of the sudden...the disk
|
||||
// drive lights up then the portrait pops up and text says "Uh Oh, it's gunna' be one of THOSE days! 6 Shitkickers draw their weapons on you!
|
||||
// Do you: F) Fight R)Run
|
||||
// YEah after each round...if you kill one, the next round says you face 5 shitkickers fight or run
|
||||
displayStr("Do you: F)ight or R)un?")
|
||||
while TRUE
|
||||
n = getUpperKey()
|
||||
if n == 'F'
|
||||
clearWindow()
|
||||
displayStr("Fight!")
|
||||
break
|
||||
elsif n == 'R'
|
||||
clearWindow()
|
||||
displayStr("Coward.")
|
||||
textDrawn = TRUE
|
||||
needRender = TRUE
|
||||
break
|
||||
fin
|
||||
beep()
|
||||
loop
|
||||
|
||||
end
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user