diff --git a/game/engines/default/engine/Zone.lua b/game/engines/default/engine/Zone.lua index 349380cac5279ad123f39b2e99c608e131b9cbb1..69bab51bc0ce5453d5a4985ec44564b346add6d1 100644 --- a/game/engines/default/engine/Zone.lua +++ b/game/engines/default/engine/Zone.lua @@ -94,7 +94,12 @@ function _M:computeRarities(type, list, level, filter, add_level, rarity_field) for i, e in ipairs(list) do if e[rarity_field] and e.level_range and (not filter or filter(e)) then -- print("computing rarity of", e.name) - local lev = self.base_level + (level.level - 1) + (add_level or 0) + local lev + if self.level_adjust_level then + lev = self:level_adjust_level(level) + else + lev = self.base_level + (level.level - 1) + (add_level or 0) + end local max = 10000 if lev < e.level_range[1] then max = 10000 / (3 * (e.level_range[1] - lev)) diff --git a/game/modules/tome/data/talents/techniques/combat-techniques.lua b/game/modules/tome/data/talents/techniques/combat-techniques.lua index 2228a5360ae82d6547518cd65df8bd1b740d1738..9f1b105b72d988341be5822993809e9bba73219f 100644 --- a/game/modules/tome/data/talents/techniques/combat-techniques.lua +++ b/game/modules/tome/data/talents/techniques/combat-techniques.lua @@ -87,7 +87,8 @@ newTalent{ return true end, info = function(self, t) - return ([[Rushes toward your target with incredible speed. If the target is reached you get a free attack doing 120% weapon damage.]]) + return ([[Rushes toward your target with incredible speed. If the target is reached you get a free attack doing 120% weapon damage. + You must rush from at least 2 tiles away.]]) end, } diff --git a/game/modules/tome/data/zones/paths-of-the-dead/zone.lua b/game/modules/tome/data/zones/paths-of-the-dead/zone.lua index 6d8331ba3be70e5079a982ed8679bbd19d757fae..7f9e393cb3d2a5f4b23fff526c9822b942ec119b 100644 --- a/game/modules/tome/data/zones/paths-of-the-dead/zone.lua +++ b/game/modules/tome/data/zones/paths-of-the-dead/zone.lua @@ -24,6 +24,7 @@ return { max_level = 8, decay = {300, 800}, actor_adjust_level = function(zone, level, e) return 1 + zone.max_level - (zone.base_level + e:getRankLevelAdjust() + level.level-1 + rng.range(-1,2)) end, + level_adjust_level = function(zone, level) print("=============", zone.base_level + (zone.max_level - level.level)) return zone.base_level + (zone.max_level - level.level) end, width = 50, height = 50, -- all_remembered = true, -- all_lited = true,