about summary refs log tree commit diff stats
path: root/decker
diff options
context:
space:
mode:
Diffstat (limited to 'decker')
-rw-r--r--decker/game.deck8
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"]