New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing mana potion in stonehenge crypt chest #226
Conversation
changed to
|
This is an interesting issue. Typically this is just a VOB property assignment (as already mentioned), but I want to check what happens once the chest content is initialized. The thing to check: Once the chest content is initialized (i.e. chest opened), is the content stored as inventory list or is the "contains" string property updated on archiving (saving the game). If the latter, we would have to watch out to not create an exploit, where the player can take the potion only, close the chest, save, load, and the potion is recreated. |
Unfortunately, the
Since a chest cannot be locked again after it was opened once, this will serve as an indicator to prevent the exploit. Reverting the fix will work analogously, but only under the condition that the G1CP fix was applied previously. |
The test is manual: The key is placed in the PC's inventory and the potion should be in the chest. What may be worth checking is, whether the fix is correctly reverted when removing the patch if and only if the chest was not opened yet. |
Finding VOBs by their exact position can now be further narrowed down by their class. Like before only the first matching VOB will be found. The function can now also detect light VOBs which where previously ignored. For details, see the header commment of ent of 'G1CP_FindVobByPosPtr'. Common class definitions are defined as constants in constants.d. All affected fixes are updated. Refs #46 #51 #52 #127 #212 #213 #226
Instead of specifying a class to narrow down the search (see previous commit), the option is now more versatile: Now the last parameter is a callback function. It can either be one of the existing class check functions or a custom function to narrow down the search more flexibly and potentially based on more or more complex checks. Refs #46 #51 #52 #127 #212 #213 #226
Describe the bug
Due to a typo, there's a mana potion missing in one of the chests in the crypt under the stonehenge.
Expected behavior
A mana potion is now correctly inserted in one of the chests in the crypt under the stonehenge.
Additional context
Bug and fix provided by N1kX94.