diff options
author | elioat <hi@eli.li> | 2023-12-09 23:10:09 -0500 |
---|---|---|
committer | elioat <hi@eli.li> | 2023-12-09 23:10:09 -0500 |
commit | 88200a266195373320a649a55b882ca594ef81fd (patch) | |
tree | 2834b291a2bd3d391604e959ebb6a0401fc625b4 /decker | |
parent | 7f9b1b1fb4fce5d35bfe811d51804d47be90f123 (diff) | |
download | december-2023-88200a266195373320a649a55b882ca594ef81fd.tar.gz |
maybe I do not understand truthiness in lil
Diffstat (limited to 'decker')
-rw-r--r-- | decker/game.deck | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/decker/game.deck b/decker/game.deck index b244556..613f3a2 100644 --- a/decker/game.deck +++ b/decker/game.deck @@ -1,6 +1,6 @@ {deck} version:1 -card:1 +card:0 size:[512,342] name:"game.deck" @@ -36,7 +36,7 @@ end script:"combat.0" {widgets} stats:{"type":"grid","size":[154,28],"pos":[30,287],"locked":1,"script":"combat.1","scrollbar":0,"lines":0,"format":"iii","value":{"health":["23"],"attack":["2"],"defense":["10"]},"row":0} -enemy:{"type":"grid","size":[154,28],"pos":[327,39],"locked":1,"script":"combat.1","scrollbar":0,"lines":0,"format":"iii","value":{"health":[10],"attack":[5],"defense":[4]},"row":0} +enemy:{"type":"grid","size":[154,28],"pos":[327,39],"locked":1,"script":"combat.1","scrollbar":0,"lines":0,"format":"iii","value":{"health":[[15]],"attack":[[4]],"defense":[[5]]},"row":0} rest:{"type":"button","size":[60,20],"pos":[421,295],"script":"combat.2","text":"Rest"} attack:{"type":"button","size":[60,20],"pos":[351,295],"script":"combat.3","text":"Attack"} defend:{"type":"button","size":[60,20],"pos":[421,267],"script":"combat.4","text":"Defend"} @@ -60,7 +60,11 @@ on check do print["start of encounter"] print["ph->",ph," eh->",eh] + print["eh<1->",eh<1] + print["ph<1->",ph<1] + # FIXME! even when eh is > than 1 this is evaluated like it is less than 1 + # This *should* only fire if the enemy's health is 0 or lower if eh<1 print["enemy dead ",eh] go["player"] |