aedenthorn / ValheimMods

Other
147 stars 104 forks source link

fix(BuildingDamageMod): zdoid matches attack again for user damage to their buildings #99

Closed zolantris closed 10 months ago

zolantris commented 10 months ago

m_piece changed from ZDOID to a long int version so there was a mismatch making this section always false.

We now have to do a user check with ZDOID comparison to the attacker (for server reasons) and check if the long int matches the users PlayerID long int value.

zolantris commented 10 months ago

I'm going to fork and publish an iteration off of this with a few tweaks such as damage cap.

Also for future proofing things, are you open to merging a CI/CD PR that automates all deploys after a PR?

aedenthorn commented 10 months ago

idk what you mean, but I can publish this update