fix: spellbooks can have charges ≠ 3 (#38769)

* fix: spellbooks can have charges ≠ 3

* refactor: just make setting MaxCharges an api thing

* refactor: don't auto-add LimitedCharges

* Small stuff

---------

Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
This commit is contained in:
Perry Fraser
2025-08-20 18:47:31 -04:00
committed by GitHub
parent dd74bfc083
commit 9b8fa1af6f
3 changed files with 63 additions and 10 deletions

View File

@@ -16,7 +16,7 @@ public sealed partial class LimitedChargesComponent : Component
/// <summary>
/// The max charges this action has.
/// </summary>
[DataField, AutoNetworkedField, Access(Other = AccessPermissions.Read)]
[DataField, AutoNetworkedField]
public int MaxCharges = 3;
/// <summary>