ToME: the Tales of Maj'Eyal

Everything about ToME
It is currently Wed May 27, 2020 11:23 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sat Apr 26, 2014 4:29 pm 
Offline
Cornac

Joined: Sat Jan 14, 2012 12:53 am
Posts: 32
I'm not sure how to get deflection to work correctly, but this fixes a couple of things that make skirmisher unplayable.
Specifically offsetTarget is not defined anywhere:

Code:
diff --git a/game/modules/tome/class/Actor.lua b/game/modules/tome/class/Actor.lua
index d19b193..6c6409a 100644
--- a/game/modules/tome/class/Actor.lua
+++ b/game/modules/tome/class/Actor.lua
@@ -276,7 +276,7 @@ function _M:projectDoStop(typ, tg, damtype, dam, particles, lx, ly, tmp, rx, ry,
        if target and target.getTalentFromId and target ~= projectile.src then
                if target:knowTalent(target.T_SKIRMISHER_BUCKLER_MASTERY) then
                        local t = target:getTalentFromId(target.T_SKIRMISHER_BUCKLER_MASTERY)
-                       lx, ly = t.offsetTarget(target, t, lx, ly, projectile) 
+--                     lx, ly = t.offsetTarget(target, t, lx, ly, projectile) 
                        print("[SKIRMISHER] Deflected a projectile")
                end
        end
diff --git a/game/modules/tome/class/Object.lua b/game/modules/tome/class/Object.lua
index f76b235..ed32980 100644
--- a/game/modules/tome/class/Object.lua
+++ b/game/modules/tome/class/Object.lua
@@ -1742,7 +1742,7 @@ function _M:on_prepickup(who, idx)
        end
        if who.player and self.lore then
                game.level.map:removeObject(who.x, who.y, idx)
-               game.party:learnLore(sselflf.lore)
+               game.party:learnLore(self.lore)
                return true
        end
        if who.player and self.force_lore_artifact then


Top
 Profile  
 
PostPosted: Sat Apr 26, 2014 6:42 pm 
Offline
Master of Eyal

Joined: Wed Jul 24, 2002 9:26 pm
Posts: 10478
Location: Angolwen
Well spotted thanks :)

_________________
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group