#ADVR.spawnRequirement

1 messages · Page 1 of 1 (latest)

dense coral
#

Basically, a function that will return a boolean
In addition to the normal relic spawning system, if a relic with an ADVR.spawnRequirement is set to spawn, it also need to return true in the ADVR.spawnRequirement
This could allow you to make relics that require you have a set condition met in order to spawn
For example, you could make a relic that only spawns if you have a certain other relic (like upgrades to something like glass cannon or vial of blue blood), or really anything, but i don't have enough time to give more examples

#

this is already a thing in Balatro modding, and it works really well imo

#

this could also make weapon specific relics actually viable to make (although they're still not the greatest idea)

digital orchid
#

it should be noted that curses have something like this already, yet they do nothing with it

dense coral
#

yea, just something like that for every relic

#

nice thing is that this should be incredibly easy to add as well

#

also, if a relic doesnt have an ADVR.spawnRequirement function at all, it should just always act as if it returned true

#

prevents breaking mods, and also makes you not have to remember to put one every time