Skip to content
Snippets Groups Projects
Commit 1875baf9 authored by DarkGod's avatar DarkGod
Browse files

new force_melee_damtype property

parent 35e29006
No related branches found
No related tags found
No related merge requests found
......@@ -91,6 +91,7 @@ _M.temporary_values_conf.force_use_resist = "last"
_M.temporary_values_conf.force_use_resist_percent = "last"
_M.temporary_values_conf.all_damage_convert = "last"
_M.temporary_values_conf.all_damage_convert_percent = "last"
_M.temporary_values_conf.force_melee_damtype = "last"
-- AI
_M.temporary_values_conf.ai_move = "last"
......
......@@ -350,6 +350,10 @@ function _M:attackTargetWith(target, weapon, damtype, mult, force_dam)
damtype = damtype or (weapon and weapon.damtype) or DamageType.PHYSICAL
mult = mult or 1
if self:attr("force_melee_damtype") then
damtype = self.force_melee_damtype
end
--Life Steal
if weapon and weapon.lifesteal then
self:attr("lifesteal", weapon.lifesteal)
......
game/modules/tome/data/gfx/particles_images/bone_shield.png

16.1 KiB | W: | H:

game/modules/tome/data/gfx/particles_images/bone_shield.png

16.1 KiB | W: | H:

game/modules/tome/data/gfx/particles_images/bone_shield.png
game/modules/tome/data/gfx/particles_images/bone_shield.png
game/modules/tome/data/gfx/particles_images/bone_shield.png
game/modules/tome/data/gfx/particles_images/bone_shield.png
  • 2-up
  • Swipe
  • Onion skin
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