Advertisement
NRFB

spells.json

May 1st, 2023 (edited)
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.83 KB | None | 0 0
  1. "spell_ID":
  2. String
  3. Required
  4. A unique identifier for this spell.
  5. "display_name":
  6. String
  7. REQUIRED
  8. What the name of this spell should look like in game.
  9. "description":
  10. String
  11. REQUIRED
  12. Description of the spell displayed by the UI. Supports BBCode. Should be enclosed with [center][/center] for formatting.
  13. "icon_path":
  14. String file location of an image file
  15. REQUIRED
  16. The icon that represents this spell effect. The expected image size is 36x36 pixels.
  17. "cast_particle":
  18. String
  19. "passive_spell":
  20. bool
  21. REQUIRED
  22. If this spell is passive (can be set while in camp and remains on until unset) or active (can be casted while in camp before going on cooldown)
  23. "target_type": "LOCATION",
  24. String, one of "LOCATION", "ALLY", "SELF", "ALLALLIES"
  25. REQUIRED (if passive_spell is false)
  26. Determines how this spell is targeted when it is cast. After the initial CAMP_PLAYER_CAST_SPELL check is raised...
  27. "LOCATION": Raises a CAMP_PLAYER_CAST_SPELL_ON_LOCATION check for the chosen camp location and a CAMP_PLAYER_CAST_SPELL_ON_ALLY on every ally inside that camp location. If the spell is SP_Scry, also raises a CAMP_PLAYER_SCRY_LOCATION check for the chosen location.
  28. "ALLY": Raises a CAMP_PLAYER_CAST_SPELL_ON_ALLY check for the chosen ally.
  29. "SELF": Does nothing further (logic for self target spells should be triggered off the initial CAMP_PLAYER_CAST_SPELL).
  30. "ALLALLIES": Raises a CAMP_PLAYER_CAST_SPELL_ON_ALLY for each ally.
  31. "mana_cost":
  32. int
  33. REQUIRED (Spells with passive_spell set to false should have a mana cost of 0)
  34. How much mana is required for this passive spell to be activated during spell preparation in camp.
  35. "checks":
  36. Array of Dictionaries
  37. Not Required
  38. List of checks this spell can generate and what triggers those checks to be raised. See the explanation of the checks field.
  39. "allow_starting_spell":
  40. bool
  41. Not Required. Will default to false.
  42. If this spell should be added to the pool of possible spells that the game randomly picks from to give for free at the start of a run.
  43. "allow_witch_sell":
  44. bool
  45. Not Required. Will default to false.
  46. If this spell can show up in the inventory of a Witch's Den.
  47. "sell_requirements":
  48. Requirements Dictionary
  49. Not Required. If not present, the spell will not be sold in the Witch's Den.
  50. The set of requirements that must be met before this spell can appear in the inventory of a Witch's Den.
  51. "spawn_as_scroll":
  52. bool
  53. Not Required. Will default to false.
  54. If this spell can be found in spell scroll form in the dungeon.
  55. "tags":
  56. Array of Strings
  57. Not Required. Will default to no tags.
  58. A list of categorizations for this spell. Currently (ALMOST) entirely unused. Probably shouldn't be.
  59.  
  60. Note that currently spells do not have trackers. There's no great reason for this other than me not having implemented them yet. They'll probably be a thing eventually.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement