So, I’m working on a mod and one of the core ideas I’m playing with is having crafting recipies that incorperate zombie corpses. I’ve been running down a rabbit hole the last few days trying to figure out what the game actually calls them, and I’ve kind of run into a dead end.
FRom looking at the code “src\item.cpp”, it suggests that the corpse itself is created with the id to corpse_generic_human and then simply changes the NAME of the item to the name of the zombie or creature that was killed, that it does not give an actual item ID. This is problematic, because I want to be able to determine if the zombie corpse is that of a Shocker Zombie or a Soldier Zombie, for example. I see the var zombie_form should be set with the zombie type, but I’m not sure if I can detect that from JSON.
so, my questions are:
- Is there a way to filter in crafting recipies based off of flags? For example, [filthy]?
- Is there a way to tell what the original monster was in the recipie, without resorting to the [zombie_form] flag?
- Is there a way to tell for animals that do not zombify, for example the rabbit?
- Can you point me to a mod or code sippet that does something similar?