tModLoader

tModLoader

Calamity Overhaul
Trying to edit .cs files to make Spear of Longinus scale like Murasama/Halibut
I downloaded a copy of your mod off github and have been trying to edit the SpearOfLonginus.cs file to scale its damage throughout the game like Murasama does. I've been using the MurasamaEcType.cs file as a reference.

So far I've copied over the damage dictionary, 'GetStartDamage', 'GetOnDamage' (For now just piggybacking off of InWorldBossPhase.Instance.Mura_Level, so it will scale at the same points as Murasama), and have set the Longinus' Item.damage to GetStartDamage.

Where I encountered a problem was changing the damage through ModifyWeaponDamage versus Murasama's ModifyLegendWeaponDamageFunc. I could not figure out how to multiply the damage value by '*= (ChargeGrade + 1)', the charge state of the Longinus Spear.

The errors I was getting said that the thing I was multiplying by (ChargeGrade + 1) were either not modifiable, or not a number themselves.

I really want to do a full playthrough with the Longinus weapon and am willing to tinker around a lot with proper damage values based on the different InWorldBossPhases.

Let me know if you can provide some pointers as to how I can modify Longinus' damage properly.

Thanks
Last edited by EHaynes; 8 Jan @ 10:41pm