summaryrefslogtreecommitdiff
path: root/bloodfields.stage
diff options
context:
space:
mode:
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'];