Talk:Vermilion Gym: Difference between revisions

(→‎Which Trash Cans: new section)
Line 18: Line 18:


For Yellow, [https://github.com/pret/pokeyellow/blob/793c715ba253e08d2807d04d128765ca305d6b15/engine/vermilion_gym_trash_cans.asm they started from scratch] for the second switch, so that most often there are actually 2 possibilities at a time. However, they seem to have screwed up again: First, they [https://github.com/pret/pokeyellow/blob/793c715ba253e08d2807d04d128765ca305d6b15/engine/hidden_object_functions17.asm#L386 didn't fix] half of the cans being unable to contain the first switch (assuming that's a bug). And then, for cans with three neighbors (the only possibilities are the outermost cans of the middle row), they don't look up with an offset corresponding to one out of the three intended pairs of second switches, but instead with a random offset [0,255]. In other words, the offset isn't what corresponds to the intended pair of cans, but to something random within the rest of the table, or most likely to something that's outside the table (results in trash can 0, top-left, be chosen twice); if you're very unlucky, you get nothing at all (-1 and -1). [[User:Nescientist|Nescientist]] ([[User talk:Nescientist|talk]]) 01:20, 4 July 2017 (UTC)
For Yellow, [https://github.com/pret/pokeyellow/blob/793c715ba253e08d2807d04d128765ca305d6b15/engine/vermilion_gym_trash_cans.asm they started from scratch] for the second switch, so that most often there are actually 2 possibilities at a time. However, they seem to have screwed up again: First, they [https://github.com/pret/pokeyellow/blob/793c715ba253e08d2807d04d128765ca305d6b15/engine/hidden_object_functions17.asm#L386 didn't fix] half of the cans being unable to contain the first switch (assuming that's a bug). And then, for cans with three neighbors (the only possibilities are the outermost cans of the middle row), they don't look up with an offset corresponding to one out of the three intended pairs of second switches, but instead with a random offset [0,255]. In other words, the offset isn't what corresponds to the intended pair of cans, but to something random within the rest of the table, or most likely to something that's outside the table (results in trash can 0, top-left, be chosen twice); if you're very unlucky, you get nothing at all (-1 and -1). [[User:Nescientist|Nescientist]] ([[User talk:Nescientist|talk]]) 01:20, 4 July 2017 (UTC)
:Fascinating. Thanks! [[User:Blueapple128|Blueapple128]] ([[User talk:Blueapple128|talk]]) 20:46, 1 June 2019 (UTC)
2,613

edits