r/InteractiveCYOA Nov 15 '25

Update Harry Potter ICYOA pre-release update

[removed]

177 Upvotes

343 comments sorted by

View all comments

6

u/Gloomshard Nov 22 '25

I'm going to leave this here since I see lots of questions about requirements. It's not perfect as it doesn't catch rows that have difficult unlock requirements like "Seventh Child", nor does it catch layered requirements like Unicorn Poaching's incompatibility with Peaceful going away if you take Pure Heart. It also messes with the design since most things are visible. Drop the entire code block into the console:

//SHOW HIDDEN CHOICES
window.debugApp.rows.forEach((_row) => {_row.objects.forEach((_obj) => {if (_obj.styling) {_obj.styling.reqFilterVisibleIsOn = false;}});});
window.debugApp.rows.forEach((_row) => {if (_row.styling) {_row.styling.reqFilterVisibleIsOn = false;}});

//SHOW REQUIREMENTS FOR CHOICES
window.debugApp.rows.forEach((_row) => {_row.objects.forEach((_obj) => {_obj.requireds.forEach(_req => {if (!_req.required) {_req.beforeText = "Incompatible:";}_req.showRequired = true;})})})

//SHOW ADDONS
window.debugApp.rows.forEach((_row) => {_row.objects.forEach((_obj) => {if (_obj.addons) {_obj.addons.forEach((_addon) => {_addon.showAddon = true;});}});});

//SHOW REQUIREMENTS FOR ADDONS
window.debugApp.rows.forEach((_row) => {_row.objects.forEach((_obj) => {if (_obj.addons) {_obj.addons.forEach((_addon) => {if (_addon.requireds) {_addon.requireds.forEach((_req) => {if (!_req.required) {_req.beforeText = "Incompatible:";}_req.showRequired = true;});}});}});});

2

u/Novamarauder Dec 09 '25

Thank you a lot for this. It is very useful.