Here's the deal. I need mpdamage to NOT be treated as a pkill in the event of a fatal dose. I am attempting to modify the generation routine in fight.cpp to include a check for morgue corpse generation in the event the killer is the same as the character. The original check is:
if(GAMESETTING(GAMESET_MORGUE_ENABLED) && !IS_NPC(ch)
&& (!killer || (killer!=ch && IS_NPC(killer) && !killer->master)) )
and what I think should work (doesn't) is:
if(GAMESETTING(GAMESET_MORGUE_ENABLED) && !IS_NPC(ch)
&& (killed_by!=ch->name && !killer || (killer!=ch && IS_NPC(killer) && !killer->master)) )
Any advice would be appreciated on this matter.... especially as we now have places that players very simply cannot retrieve corpses from.
if(GAMESETTING(GAMESET_MORGUE_ENABLED) && !IS_NPC(ch)
&& (!killer || (killer!=ch && IS_NPC(killer) && !killer->master)) )
and what I think should work (doesn't) is:
if(GAMESETTING(GAMESET_MORGUE_ENABLED) && !IS_NPC(ch)
&& (killed_by!=ch->name && !killer || (killer!=ch && IS_NPC(killer) && !killer->master)) )
Any advice would be appreciated on this matter.... especially as we now have places that players very simply cannot retrieve corpses from.