mysterymagination / adventures-of-mooty-wort

An Undum eval tale, short and sweet
MIT License
0 stars 0 forks source link

health potion on molerat scrolls to end of content? #49

Closed mysterymagination closed 3 years ago

mysterymagination commented 3 years ago

for some reason item.useOn is returning true I guess? I'm guessing we've got a stale item object in the hopper somehow

mysterymagination commented 3 years ago

hrm, weird -- I put breakpoints in Item.useOn(), ItemManager.activeItemUseOn(), and UndumStoryViewController.jumpToNewContent(), and found that things are working as expected. The minor health potion doesn't match usage on the molerat and we don't get into jumpToNewContent, so I'm not sure who's scrolling us down. Probably something in Undum I guess.

Happens without jumpToNewContent call in activeItemUseOn, too; guess I never tried using items on unintended targets. EDIT: waitaminute, we jump to new content even without the jumpToNewContent call... OOOH it jumps automatically in desktop view but not at all in mobile view; for mobile view we may need the jumper.

mysterymagination commented 3 years ago

okay, we're about set here. Still a minor related problem where clicking action links doesn't scroll you to the new content in mobile view, but that's an Undum issue... easiest fix would be to add jumpToNewContent calls to our action link handler functions, I guess. EDIT: which I've now done!