Wow. That is insane. Will take me a little time to understand, but I get the jist of it.
foreach i in $items[Ol' Scratch's salad fork, Munchies Pill, Extra-Greasy Slider, Jar of Fermented Pickle Juice]]
Is the double ] at the end supposed to be like that? If yes, what does having two in that...