-
Notifications
You must be signed in to change notification settings - Fork 3
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
TAKE ALL Crashes with Container Limits #34
Comments
Add test adventure and solution for the bug affecting Container Limits: if TAKE ALL attempts to take items in excess of a container's Limits Count, ARun crashes at the second exceeding item. (See: alan-if/alan#34)
Live TestsI've created a dedicated test for this: https://github.com/alan-if/alan-bugs-testbed/tree/master/container-limits I'm also going to do some further tests, because there's some fishy about how container count limits actually work when the player is carrying a container (e.g. a bag). I think I've noticed some inconsistencies that it's worth testing and pointing out. |
Related BugPossibly this is a related bug, since it concerns using ALL when a parameter fails and then there are more, which leads to crashing:
Which produces:
|
Now that the bugs and inconsistent behaviors of Contain Limits mentioned in alan-if/alan#34 have been all fixed in build 2241, update the bug status to 'solved' in main README (we'll keep the old tests, just in case).
Attempting
TAKE ALL
will crash the adventure is the picked items exceed the Hero'sContainer Limits Count
by at least two more items than maximum allowed.E.g. here the Hero has a limit of max two objects, when picking the third one it will print the warning, but on the fourth it crashes:
The above transcript was generated from the following adventure:
The text was updated successfully, but these errors were encountered: