epfly6 / RepentanceAPIIssueTracker

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

`GetCollectibleNum(BOOK_OF_VIRTUES)` counts the number of BoVs you have incorrectly #554

Open OpenSauce04 opened 1 year ago

OpenSauce04 commented 1 year ago

Book of Virtues appears to treat the book in the active item slot as its own item, rather than an extension of the passive item Because of this, if you start as Bethany and run player:GetCollectibleNum(CollectibleType.COLLECTIBLE_BOOK_OF_VIRTUES), the returned value will be 2: 20230212102242_1

This continues if you get a second Book of Virtues: 20230212102531_1

However, if you have another active item on top of BoV, the function counts correctly: 20230212120226_1

The expected behaviour would be that the returned item count for Book of Virtues should match the number of passive Books of Virtues that you have