>>>>>> thus on Sat, 29 Aug 1998 21:48:08 -0400, Phillip wrote:
> if (GET_POS(victim) <= POS_DEAD) {
> log("SYSERR: Attempt to damage corpse '%s' in room #%d by '%s'.",
> GET_NAME(victim), GET_ROOM_VNUM(IN_ROOM(victim)), GET_NAME(ch));
> die(victim);
> return 0; /* -je, 7/7/92 */
> }
This segment isn't called that often, it's actually an error condition.
You'll have to add it to the following (as well):
Lower down in the damage function:
if (GET_POS(victim) == POS_DEAD) {
if ((ch != victim) && (IS_NPC(victim) || victim->desc)) {
if (AFF_FLAGGED(ch, AFF_GROUP))
group_gain(ch, victim);
else
solo_gain(ch, victim);
}
if ((ch != victim) && (!IS_NPC (ch) && !IS_NPC (victim))) {
/* increment kill counter here */
}
d.
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST