mirror of
https://github.com/badvision/lawless-legends.git
synced 2025-02-03 00:29:59 +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
|
p = p=>p_nextObj
|
||||||
loop
|
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
|
displayStr("Do you: F)ight or R)un?")
|
||||||
// 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!
|
while TRUE
|
||||||
// Do you: F) Fight R)Run
|
n = getUpperKey()
|
||||||
// YEah after each round...if you kill one, the next round says you face 5 shitkickers fight or run
|
if n == 'F'
|
||||||
|
clearWindow()
|
||||||
|
displayStr("Fight!")
|
||||||
|
break
|
||||||
|
elsif n == 'R'
|
||||||
|
clearWindow()
|
||||||
|
displayStr("Coward.")
|
||||||
|
textDrawn = TRUE
|
||||||
|
needRender = TRUE
|
||||||
|
break
|
||||||
|
fin
|
||||||
|
beep()
|
||||||
|
loop
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
x
Reference in New Issue
Block a user