Talk:Vermilion Gym: Difference between revisions

(→‎Trash Cans: Wrong.)
(→‎Which Trash Cans: new section)
Line 10: Line 10:
I'm not sure if this is correct, but as far as I can remember this is the only place in any game that has ever had anything in any trash can. Nice bit of trivia if true, so can someone who has an eidetic memory please confirm & put it in the page? Thanks. {{u|Totovyle}} 06:45, 5 December 2013 (UTC)
I'm not sure if this is correct, but as far as I can remember this is the only place in any game that has ever had anything in any trash can. Nice bit of trivia if true, so can someone who has an eidetic memory please confirm & put it in the page? Thanks. {{u|Totovyle}} 06:45, 5 December 2013 (UTC)
:That's false.  There are various items hidden in the trash cans on the [[S.S. Anne]] in both RBY and FRLG, there are Leftovers in a trash can in the [[Celadon City]] restaurant in GSC, and in XY Pokémon can be found in trash cans in [[Lost Hotel]] and [[Pokémon Village]].  —[[User:Minimiscience|Minimiscience]] ([[User talk:Minimiscience|talk]]) 00:22, 6 December 2013 (UTC)
:That's false.  There are various items hidden in the trash cans on the [[S.S. Anne]] in both RBY and FRLG, there are Leftovers in a trash can in the [[Celadon City]] restaurant in GSC, and in XY Pokémon can be found in trash cans in [[Lost Hotel]] and [[Pokémon Village]].  —[[User:Minimiscience|Minimiscience]] ([[User talk:Minimiscience|talk]]) 00:22, 6 December 2013 (UTC)
== Which Trash Cans ==
It's pretty hilarious.
As far as I can tell, Crystal_ explains everything for RB correctly [https://www.youtube.com/watch?v=dyFA3gZMxrs here] ([https://github.com/pret/pokered/blob/7a9a1b1e55f4a7f6c339a86d8cdb7fbf1bee7838/engine/hidden_object_functions17.asm#L315 this] is the most relevant corresponding code).
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)