Vermilion Gym: Difference between revisions

m
(every other row is read misaligned because the bytes get read in pairs but there are 9 bytes per row. So the first 10 pairs for the top can are (3,7)(7,9)(9,3)(-1,-1)(4,4)(8,6)(10,8)(4,10)(6,3)(5,7) etc.)
Line 69: Line 69:
** There is a 50% chance that the west and north neighbors both contain the second switch, and a 50% chance that the south and east neighbors both contain the second switch.
** There is a 50% chance that the west and north neighbors both contain the second switch, and a 50% chance that the south and east neighbors both contain the second switch.
* If the first can was the top can of the middle column:
* If the first can was the top can of the middle column:
** Due to yet another glitch, the game attempts to randomly pick from 256 possible pairs of cans for the second switch, most of which correspond to blank neighbor data or partially-invalid data about the neighbors of other cans<ref>https://github.com/pret/pokeyellow/blob/793c715ba253e08d2807d04d128765ca305d6b15/engine/vermilion_gym_trash_cans.asm#L70</ref>. As a result, there is a 216/256 (~84%) chance that only the top-left can has the second switch, a 2/256 (~0.8%) chance that no can has the second switch at all, and a 38/256 (~15%) chance that either one or two unrelated cans in the four rightmost rows have the second switch (with uneven probability).
** Due to yet another glitch, the game attempts to randomly pick from 256 possible pairs of cans for the second switch, most of which correspond to blank neighbor data or partially-invalid data about the neighbors of other cans<ref>https://github.com/pret/pokeyellow/blob/793c715ba253e08d2807d04d128765ca305d6b15/engine/vermilion_gym_trash_cans.asm#L70</ref>. As a result, there is a 216/256 (~84%) chance that only the top-left can has the second switch, a 2/256 (~0.8%) chance that no can has the second switch at all, and a 38/256 (~15%) chance that either one or two unrelated cans in the four rightmost columns have the second switch (with uneven probability).
* If the first can was the bottom can of the middle column:
* If the first can was the bottom can of the middle column:
** The above glitch applies but with slightly different data, resulting in a 225/256 (~88%) chance that only the top-left can has the second switch, a 1/256 (~0.4%) chance that no can has the second switch at all, and a 30/256 (~12%) chance that either one or two unrelated cans in the four rightmost rows have the second switch.
** The above glitch applies but with slightly different data, resulting in a 225/256 (~88%) chance that only the top-left can has the second switch, a 1/256 (~0.4%) chance that no can has the second switch at all, and a 30/256 (~12%) chance that either one or two unrelated cans in the four rightmost columns have the second switch.


====[[Generation II]]====
====[[Generation II]]====
2,613

edits