Authored by dg
1 parent c8e621a5

### Random elites do not appear in Easy mode

git-svn-id: http://svn.net-core.org/repos/t-engine4@5139 51575b47-30f0-44d4-a5cc-537603b46e54
Showing with 2 additions and 2 deletions
 ... ... @@ -31,7 +31,7 @@ end 31 31 function _M:generateOne() 32 32 local f = nil 33 33 if self.filters then f = self.filters[rng.range(1, #self.filters)] end 34 - if self.randelite > 0 and rng.chance(self.randelite) and self.zone:level_adjust_level(self.level, "actor") > 3 then 34 + if self.randelite > 0 and rng.chance(self.randelite) and self.zone:level_adjust_level(self.level, "actor") > 3 and game.difficulty ~= game.DIFFICULTY_EASY then 35 35 print("Random elite generating") 36 36 if not f then f = {} else f = table.clone(f, true) end 37 37 f.random_elite = f.random_elite or true ... ...
 ... ... @@ -31,7 +31,7 @@ end 31 31 function _M:generateOne() 32 32 local f = nil 33 33 if self.filters then f = self.filters[rng.range(1, #self.filters)] end 34 - if self.randelite > 0 and rng.chance(self.randelite) and self.zone:level_adjust_level(self.level, "actor") > 3 then 34 + if self.randelite > 0 and rng.chance(self.randelite) and self.zone:level_adjust_level(self.level, "actor") > 3 and game.difficulty ~= game.DIFFICULTY_EASY then 35 35 print("Random elite generating") 36 36 if not f then f = {} else f = table.clone(f, true) end 37 37 f.random_elite = f.random_elite or true ... ...