News:

Don't forget to visit the main site! There's lots of helpful docs, patches, and more!

Main Menu

[ZM] Vulnerability property doesn't work on Vine Fruit

Started by EHX, December 18, 2022, 09:49:13 AM

Previous topic - Next topic

EHX

Here's something that's been stumping me for a while on my Vanilla+ Zero Mission mod. I double-checked that the Vine Fruit is set to be vulnerable to Speed Booster/Shinespark, that it's the same version of the sprite that's used in the room (sprite 6A) and that I'm using the ROM version where I've already set the vulnerability property. And yet, when I load up the ROM and test it with the Infinispark cheat (never observed any inconsistencies compared to normal Shinespark), the Vine Fruit remains invulnerable to both Speed Booster and Shinespark.

Seen in action here:
here

Any ideas?

biospark

When a Geron spawns, it basically creates a solid wall using clipdata:
https://github.com/YohannDR/mzm/blob/96f010562ea5aaaf6e06c520a5d4e598cda67dd9/src/sprites_AI/geron_norfair.c#L47

So you'd have to modify the code to skip over that part, as long as it doesn't need the solid clipdata to properly function. A hex tweak to skip over the code should work, I can look into it later if no one else does.

EHX

Ah, so it's basically hardcoded to be invulnerable? Weird that they have an entire vulnerabilities system in place and then hardcode it anyway... Thanks so far!

Also, if you do make an ASM patch, could you please make it compatible with the sideways spark launcher clipdata patch? Just realized, it should be compatible automatically, as it's probably just a JMP in the existing code.