Hi,
so, I am trying to figure out the butchering code in order to eventually add more butchering products.
if (fats > 0) {
if (corpse->has_flag(MF_FAT)) {
m.spawn_item(u.posx, u.posy, "fat", fats, 0, age);
add_msg(m_good, _("You harvest some fat!"));
}
This is the code in game.cpp, that handles fat being spawned after butchery. My question here is now, do I have to define the flag “MF_FAT” somewhere? Or is it automatically done for the corpse, as long as I give the monster in its json the flag “FAT”?
I might have more consecutive questions, but please answer me this one first, if possible.