fix: spellbooks can have infinite charges (#38376)

* fix: spellbooks can have infinite charges

* refactor: indicate infinite spellbook charges with null

Not sure if I like this much better...
This commit is contained in:
Perry Fraser
2025-07-05 02:28:56 -04:00
committed by GitHub
parent 78e8d98137
commit 6cefc412a3
3 changed files with 20 additions and 15 deletions

View File

@@ -69,7 +69,7 @@
components:
- type: Spellbook
spellActions:
ActionSpawnMagicarpSpell: -1
ActionSpawnMagicarpSpell: null
- type: entity
id: ForceWallSpellbook
@@ -92,7 +92,7 @@
color: gold
- type: Spellbook
spellActions:
ActionForceWall: -1
ActionForceWall: null
- type: entity
id: BlinkBook
@@ -113,7 +113,7 @@
color: gold
- type: Spellbook
spellActions:
ActionBlink: -1
ActionBlink: null
- type: entity
id: SmiteBook
@@ -136,7 +136,7 @@
- state: overlay_blood
- type: Spellbook
spellActions:
ActionSmiteNoReq: -1
ActionSmiteNoReq: null
- type: entity
id: KnockSpellbook
@@ -158,7 +158,7 @@
color: "#98c495"
- type: Spellbook
spellActions:
ActionKnock: -1
ActionKnock: null
- type: entity
id: FireballSpellbook
@@ -182,7 +182,7 @@
shader: unshaded
- type: Spellbook
spellActions:
ActionFireball: -1
ActionFireball: null
- type: entity
id: ScrollRunes
@@ -197,7 +197,7 @@
- state: spell_default
- type: Spellbook
spellActions:
ActionFlashRune: -1
ActionExplosionRune: -1
ActionIgniteRune: -1
ActionStunRune: -1
ActionFlashRune: null
ActionExplosionRune: null
ActionIgniteRune: null
ActionStunRune: null