tModLoader GetWeaponDamage not working

ZanderMeister

Skeletron Prime
So, my GlobalItem has GetWeaponDamage method in it, that modifies damage based on ItemInfo property level.On first look, it works, damage property in tooltip changes and everyone is happy, but weapon still strikes with original damage.

If you (person, who wants to help, I hope.) need my code, i will post it.
 

Attachments

  • 20161006095118_1.jpg
    20161006095118_1.jpg
    193.7 KB · Views: 158
  • 20161006095127_1.jpg
    20161006095127_1.jpg
    171.8 KB · Views: 165
I knew that things weren't that easy.Thank you!

BTW, description of hook says "melee weapon"...so, it doesn't work on ranged/magic/summoning weapons?
That's because it accounts for melee hits. If you have a projectile, you need to do it for the ModProjectile (or GlobalProjectile)
Summons (minions), thrown, ranged are also projectiles.
 
That's because it accounts for melee hits. If you have a projectile, you need to do it for the ModProjectile (or GlobalProjectile)
Summons (minions), thrown, ranged are also projectiles.

Ok, I will look for a solution.Thank you for helping!
 
Back
Top Bottom