diff --git a/game/modules/tome/class/Actor.lua b/game/modules/tome/class/Actor.lua index 7b2a3f436680720fcd08a3223198632116421a26..ba9950a9523c74bbc6c2a7e90a76ab71d21c5749 100644 --- a/game/modules/tome/class/Actor.lua +++ b/game/modules/tome/class/Actor.lua @@ -1536,7 +1536,7 @@ end function _M:on_projectile_target(x, y, p) if self:attr("slow_projectiles") then print("Projectile slowing down from", p.energy.mod) - p.energy.mod = p.energy.mod * self.slow_projectiles / 100 + p.energy.mod = p.energy.mod * (100 - self.slow_projectiles) / 100 print("Projectile slowing down to", p.energy.mod) end end diff --git a/game/modules/tome/data/zones/tutorial/npcs.lua b/game/modules/tome/data/zones/tutorial/npcs.lua index 26199f222139f70444b3b031d3a568c171c5b6d5..9b6593b296f1a354411901f72fd95a0246f2c6ee 100644 --- a/game/modules/tome/data/zones/tutorial/npcs.lua +++ b/game/modules/tome/data/zones/tutorial/npcs.lua @@ -21,7 +21,7 @@ load("/data/general/npcs/all.lua", rarity(0)) local Talents = require("engine.interface.ActorTalents") -newEntity{ base = "BASE_NPC_SKELETON", define_as = "TUTORIAL_NPC_MAGE", +newEntity{ base = "BASE_NPC_SKELETON", define_as = "TUTORIAL_NPC_MAGE", image="npc/skeleton_mage.png", name = "skeleton mage", color=colors.LIGHT_RED, level_range = {1, nil}, exp_worth = 1, max_life = resolvers.rngavg(50,60), diff --git a/game/modules/tome/dialogs/LevelupTalentsDialog.lua b/game/modules/tome/dialogs/LevelupTalentsDialog.lua index ef3702c263ece8bdc6849b1541166cdbd6e0ae16..dd9a4f10585309dce2ab62e0f940c1e764a95613 100644 --- a/game/modules/tome/dialogs/LevelupTalentsDialog.lua +++ b/game/modules/tome/dialogs/LevelupTalentsDialog.lua @@ -108,7 +108,7 @@ function _M:computeDeps(t) -- Check prerequisites if rawget(t, "require") then local req = t.require - if type(req) == "function" then req = req(self, t) end + if type(req) == "function" then req = req(self.actor, t) end if req.talent then for _, tid in ipairs(req.talent) do