fixed last potion val logic in janet/fennel ports
This commit is contained in:
@@ -128,7 +128,7 @@
|
||||
(if (state :drank)
|
||||
(print "Already drank a potion here! Discarding...")
|
||||
(do
|
||||
(if (and (= (length room) 1) (= (length deck) 0))
|
||||
(if (and (= (length room) 0) (= (length deck) 0))
|
||||
(set last-potion-val val))
|
||||
(+= (state :hp) val)
|
||||
(if (> (state :hp) 20) (put state :hp 20))
|
||||
|
||||
Reference in New Issue
Block a user