Skip to content
Snippets Groups Projects
Commit 7b812bfb authored by dg's avatar dg
Browse files

Fixed slow motion

git-svn-id: http://svn.net-core.org/repos/t-engine4@1379 51575b47-30f0-44d4-a5cc-537603b46e54
parent 67259295
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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),
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment