News:

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

Main Menu

[SM] How do you edit Phantoon's projectile damage?

Started by jamma, October 27, 2018, 11:59:04 AM

Previous topic - Next topic

jamma

I'm working on a hack and can't figure out how to edit how much damage Phantoon's blue flame projectiles deal to Samus upon contact. In my hack, Phantoon is the first boss so it's essential that I reduce the amount of damage the projectiles deal to Samus because the default 40 damage is too much.

mccad


jamma

Thank you for your reply. I already looked into the explanation on that guide but it's a little vague which numbers I actually need to edit. I searched for the bytes at 9C37 (the starting ring of blue flames) and 9C29 (the additional blue flames during the fight), and I was hoping there would simply be a byte numbered "28" since that is the hex equivalent of the normal decimal number of 40 but didn't see that number in there.

I tried changing the numbers where the "contact flag + damage" section (07 9C) to "2000" since that is what apparently means "disable collision with samus", but it didn't change anything. I don't necessarily want to disable the collision but just change the damage the blue flames deal but there doesn't seem to be a clear explanation of this in the guide...

Has anyone modified the blue flame contact damage before?

Smiley

You forgot to take the bank into account. All enemy projectiles are in bank $86, so the actual locations are $86:9C29 and $86:9C37, or 31C29 and 31C37 as pc addresses.
So the damage and contact flags for the initial ring fireballs are at 31C31 (28 80) and for the rest at 31C3F (28 40).

jamma

Ah yes wonderful!!! It works now.

I'm still a beginner and didn't take into account that I need to convert to PC address to find the right spot. Thank you both for replying!