16 users online:  AmperSam, crocodileman94, DashGamer,  E-man38, Gasterus155, Golden Yoshi, kaizo4life, Kimota, lean4, leeseongjae620, Murphmario, OrangeBronzeDaisy, songa, UltraZelda64, WalrusLife, WONIU - Guests: 66 - Bots: 214
Users: 65,876 (2,185 active)
Latest user: songa

P-Switch Duplication with Yoshi Fix

SMW Patches → P-Switch Duplication with Yoshi Fix

Submission Details

Name: P-Switch Duplication with Yoshi Fix
Author: Kevin
Tool: Asar
Requires Free Space: Yes
Bug Fix: Yes
Featured: No
Description: This patch prevents Yoshi from eating a P-Switch in the "pressed" state, after which you could spit it with Yoshi and get a new P-Switch (and sometimes this also makes a fish spawn if it's spit at the right time).

(the gifs show before and after the patch is applied)
Tags: lorom p-switch sa-1 yoshi
Comments: 1 (jump to comments)
Download 1.10 KiB | 274 downloads


View all

Comments (1)

 Maarfy Link
Yet another item for the "surprised this patch didn't exist already" pile. Simple and effective, and prevents setup-breaking switch duplication and weird fish/Podoboo spawning.

The code could be marginally optimized by hijacking $01AB0C instead of $01A202 so that the "inedible" flag only gets set once when the switch is pressed (which could also turn the "P-switch remains smushed before disappearing" time into a define for user convenience), but this is a nitpick of the most minor degree.

Tested with Asar 1.71, Lunar Magic 3.11, SA-1 1.32, Snes9x 1.59.2.