StardewModders / mod-ideas

Submit ideas for mods to create, or find your next mod project!
93 stars 5 forks source link

Napalm Mummies #1017

Closed Bartholomue closed 1 year ago

Bartholomue commented 1 year ago

I keep expecting that if I wear a napalm ring and kill a mummy, it'll blow up when I kill it. Instead, I still have to bomb it. Would it be possible to make a mod that lets mummies blow up when killed if the player is wearing a napalm ring?

arphox commented 1 year ago

I'm thinking about how this could be implemented.

My findings so far:

arphox commented 1 year ago

I keep expecting that if I wear a napalm ring and kill a mummy, it'll blow up when I kill it

I was thinking about this.

While checking the source code for Mummy, I learned that the source code handles this Mummy specialty as if you wouldn't kill the monster.

Let me explain:

When a Mummy takes damage, the following happens, in order:

So technically the mummy does not die when you reduce its Health to below zero, but it is knocked down (the wiki uses this phrasing and I think it fits).

This is why the Napalm Ring does not work with the mummy, and since:

But at least I did some digging that would be helpful for someone else that would implement this.

aedenthorn commented 1 year ago

I made a mod that does this, I can publish it soon

aedenthorn commented 1 year ago

https://www.nexusmods.com/stardewvalley/mods/15933/

arphox commented 1 year ago

@aedenthorn thank you and well done on the implementation, spawning an explosion at the location is a creative solution. :)

Doesn't that explosion do any damage to other entities around the target as well?

aedenthorn commented 1 year ago

It's just the standard napalm ring explosion, so has the same effect.