fix: Fixes weapons not serializing lesser poison (#2194)

### Summary

Fixes weapons not serializing lesser poison.

> [!NOTE]
> Dev Note: After applying this fix, fix weapons already in-game using the following command
> `[global set poison lesser where baseweapon poison = null poisoncharges > 0`
This commit is contained in:
Kamron Batman 2025-05-23 15:54:17 -07:00 committed by GitHub
parent 5de42d94fc
commit f3bcf89015
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -88,7 +88,7 @@ public abstract partial class BaseWeapon
[SerializableFieldSaveFlag(7)]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private bool ShouldSerializePoison() => _poison?.Level > 0;
private bool ShouldSerializePoison() => _poison != null;
[InvalidateProperties]
[SerializableField(8)]