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

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@2403 51575b47-30f0-44d4-a5cc-537603b46e54
parent e06b2b55
No related branches found
No related tags found
No related merge requests found
Showing
with 14 additions and 1 deletion
......@@ -93,7 +93,9 @@ end
--- Returns a tooltip for the object
function _M:tooltip()
return self:getDesc{do_color=true}
local str = self:getDesc{do_color=true}
if config.settings.cheat then str:add(true, "UID: "..self.uid, true, self.image) end
return str
end
--- Describes an attribute, to expand object name
......
......@@ -341,6 +341,12 @@ function _M:attackTargetWith(target, weapon, damtype, mult)
t.do_terror(self, t, target, dam)
end
-- Conduit (Psi)
if hitted and not target.dead and self:knowTalent(self.T_CONDUIT) and self:isTalentActive(self.T_CONDUIT) then
local t = self:getTalentFromId(self.T_CONDUIT)
t.do_combat(self, t, target)
end
-- Special effect
if hitted and not target.dead and weapon.special_on_hit and weapon.special_on_hit.fct then
weapon.special_on_hit.fct(weapon, self, target)
......@@ -655,6 +661,11 @@ function _M:combatTalentStatDamage(t, stat, base, max)
return ((base + (self:getStat(stat))) * ((math.sqrt(self:getTalentLevel(t)) - 1) * 0.8 + 1) * mod) * 0.75
end
--- Gets damage based on talent, stat, and interval
function _M:combatTalentIntervalDamage(t, stat, min, max)
return (min + (1 + (self:getStat(stat) / 100) * (max / 6.5 - 1)) * self:getTalentLevel(t)) * 0.75
end
--- Computes physical resistance
function _M:combatPhysicalResist()
return self.combat_physresist + (self:getCon() + self:getStr() + (self:getLck() - 50) * 0.5) * 0.35
......
game/modules/tome/data/gfx/shockbolt/object/2hflail_woodsteel.png

5.9 KiB

game/modules/tome/data/gfx/shockbolt/object/amber.png

2.5 KiB

game/modules/tome/data/gfx/shockbolt/object/ballnchain_iron.png

7.08 KiB

game/modules/tome/data/gfx/shockbolt/object/beakedaxe_steel.png

4.88 KiB

game/modules/tome/data/gfx/shockbolt/object/bloodstone.png

3.6 KiB

game/modules/tome/data/gfx/shockbolt/object/broadaxe_steel.png

5.82 KiB

game/modules/tome/data/gfx/shockbolt/object/bucket_shovel_papagelos.png

3.59 KiB

game/modules/tome/data/gfx/shockbolt/object/cap_steel.png

5.75 KiB

game/modules/tome/data/gfx/shockbolt/object/dagger_maingauche_steel.png

6 KiB

game/modules/tome/data/gfx/shockbolt/object/dagger_steel.png

4.24 KiB

game/modules/tome/data/gfx/shockbolt/object/diamond.png

4.69 KiB

game/modules/tome/data/gfx/shockbolt/object/elvish_waybread.png

6.24 KiB

game/modules/tome/data/gfx/shockbolt/object/emerald.png

3.78 KiB

game/modules/tome/data/gfx/shockbolt/object/fireopal.png

3.42 KiB

game/modules/tome/data/gfx/shockbolt/object/flail_woodsteel.png

5.59 KiB

game/modules/tome/data/gfx/shockbolt/object/flask_oil.png

4.61 KiB

game/modules/tome/data/gfx/shockbolt/object/food_ration.png

5.62 KiB

game/modules/tome/data/gfx/shockbolt/object/garnet.png

4.04 KiB

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