summaryrefslogtreecommitdiff
path: root/bloodfields.stage
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-02-08 09:47:20 -0700
committerMike Buland <eichlan@xagasoft.com>2012-02-08 09:47:20 -0700
commitb6a33cf4c6c66d364986d7f652c8574953fac4d9 (patch)
treed18e84ec3750ff774239dd73f724a2005889b9b8 /bloodfields.stage
parent33b6c34a20545222088f645bbc3cc5610f7cc782 (diff)
downloadstage-b6a33cf4c6c66d364986d7f652c8574953fac4d9.tar.gz
stage-b6a33cf4c6c66d364986d7f652c8574953fac4d9.tar.bz2
stage-b6a33cf4c6c66d364986d7f652c8574953fac4d9.tar.xz
stage-b6a33cf4c6c66d364986d7f652c8574953fac4d9.zip
Fixed lexer issue on -, precidence of comparisons.
Diffstat (limited to '')
-rw-r--r--bloodfields.stage9
1 files changed, 5 insertions, 4 deletions
diff --git a/bloodfields.stage b/bloodfields.stage
index 38e3370..bfef7ba 100644
--- a/bloodfields.stage
+++ b/bloodfields.stage
@@ -94,14 +94,15 @@ function look()
94 94
95function mkEnemy() 95function mkEnemy()
96{ 96{
97 eid = random( 0, 2 ); 97 eid = random( 0, count(global.enemyTypes) - 1 );
98 global.enemy = global.enemyTypes[eid]; 98 global.enemy = global.enemyTypes[eid];
99 99
100 mod = player.level - 1; 100 mod = player.level;
101 if mod > 2 then 101 if mod > count(global.enemyMods) then
102 { 102 {
103 mod = 2; 103 mod = count(global.enemyMods);
104 } 104 }
105 mod -= 1;
105 global.enemy['name'] = global.enemyMods[mod]['name'] + ' ' + 106 global.enemy['name'] = global.enemyMods[mod]['name'] + ' ' +
106 global.enemy['name']; 107 global.enemy['name'];
107 global.enemy['attack'] += global.enemyMods[mod]['attack']; 108 global.enemy['attack'] += global.enemyMods[mod]['attack'];