Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
This one is basically discontinued, really. I just leave it available in case there are mods out there that would benefit from it (Though I don't know of any).
I oughta update the mod's description here to reflect this.
One way tModLoader provides modders venues to modify weapon damage is through a hook called 'ModifyWeaponDamage'.
The problem is that, due to the way summons/sentries update their damage constantly (Which was done by Re-Logic in 1.4 to prevent damage build exploits used in 1.3), they are not affected by any damage changes made via. ModifyWeaponDamage.
It's very hard to say when this will impact you as a summoner because modders don't just announce 'hey this mod is using ModifyWeaponDamage' (Why would they?), but from my experience it's relatively common to see it used by mods which add ways to level up or otherwise upgrade your weapons. I made this patch because I noticed this problem when making such mods myself.
I also store a reference to the source item in GlobalProjectile.OnSpawn by getting it from the source that created the projectile so that the GlobalItem with the modifier can be accessed in the ModPlayer hook.
This solution doesn't update the actual projectile damage if that's something you need.
I just looked in tModLoader for all references of ContinuouslyUpdateDamageStats and it's related obsolete ContinuouslyUpdateDamage, and it is a tMod property. There aren't any vanilla weapons that use it. I think Last Prism's ai was just made very strangely since it boosts its damage when all beams collide, and doesn't use the damage stat in the calculations.
As for Last Prism, I think it may be covered by this mod already? Any projectiles with 'ContinuouslyUpdateDamageStats' set to true should be covered alongside minions/sentries, so that might catch Last Prism. I'll have to check and make sure some time.
I suggest changing this mod to only affect the damage bonuses from your mods instead of trying to fix it for every mod to prevent conflicts like this or at least adding a config to allow the option.
FWI, Last Prism has the same issue of not updating damage like minions. Please let me know if you decide to add support for it so I can bypass mine when this mod is enabled.
Here's the simplest I can come up with;
Some mods add features that allow weapon damage to scale; a lot of leveling mods do this. However, due to how minions and sentries work, they are unable to receive modifications to their damage in this manner (Though their tooltip will display adjusted damage).
This mod offers a fix to that bug by trying to find those modifications made by mods, and manually adding them unto the minion/sentry's damage.
This isn't perfect because it only gets the adjustment at the point in time when the minion/sentry spawned. If the modification changes afterwards the minion won't update accordingly until you spawn a new one.