epfly6 / RepentanceAPIIssueTracker

An unofficial issue tracker for issues with The Binding of Isaac: Repentance's API.
19 stars 1 forks source link

More Options style effects should be easier to work with #479

Open Xalum opened 2 years ago

Xalum commented 2 years ago

OptionsPickupIndex allows us to link pickups together, but no other part of the effect is handled, and a few more functions would be ideal for making these effects work nicely, and easily, with custom pickups.

table - EntityPickup:GetOptionsPartners() -- Returns a list of EntityPickups with matching non-zero OptionsPickupIndexes
void  - EntityPickup:RemoveOptionsPartners() -- Removes all EntityPickups with matching non-zero OptionsPickupIndexes and spawns a small appear-poof at each of their locations
bool  - EntityPickup:WasOptionsParterCollected() -- Returns true if any EntityPickups with matching non-zero OptionsPickupIndexes have been collected, or if chests have been opened
void  - EntityPickup:SetCollected(bool collected = true) -- Sets the collected status of an EntityPickup, a method to add custom chest-like pickups and have them correctly count towards :WasOptionsPartnerCollected without having to play a "Collect" animation