Skip to content

Commit

Permalink
Further debugs. Docwagon rescue now puts you at 1/1 instead of 4/0.
Browse files Browse the repository at this point in the history
  • Loading branch information
luciensadi committed Sep 18, 2024
1 parent 54fcdc8 commit 714771f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/fight.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2445,10 +2445,10 @@ void docwagon_retrieve(struct char_data *ch) {
mudlog_vfprintf(ch, LOG_SYSLOG, "SYSERR: Could not find modulator after DW rescue of %s.", GET_CHAR_NAME(ch));
}

// They just got patched up: heal them slightly, make them stunned.
GET_PHYSICAL(ch) = 400;
GET_MENTAL(ch) = 0;
GET_POS(ch) = POS_STUNNED;
// They just got patched up: heal them slightly, make them resting.
GET_PHYSICAL(ch) = 100;
GET_MENTAL(ch) = 100;
GET_POS(ch) = POS_RESTING;
}

alert_player_doctors_of_contract_withdrawal(ch, FALSE, TRUE);
Expand Down
4 changes: 0 additions & 4 deletions src/handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2973,10 +2973,6 @@ void extract_char(struct char_data * ch, bool do_save)
mob_index[GET_MOB_RNUM(ch)].number--;
Mem->DeleteCh(ch);
}

#ifdef ENABLE_THIS_IF_YOU_WANT_TO_HATE_YOUR_LIFE
verify_every_pointer_we_can_think_of();
#endif
}

/* ***********************************************************************
Expand Down
4 changes: 4 additions & 0 deletions src/memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ void memoryClass::DeleteCh(struct char_data *ch)
free_char(ch);
delete ch;
// Ch->Push(ch);

#ifdef ENABLE_THIS_IF_YOU_WANT_TO_HATE_YOUR_LIFE
verify_every_pointer_we_can_think_of();
#endif
}

void memoryClass::DeleteRoom(struct room_data *room)
Expand Down

0 comments on commit 714771f

Please sign in to comment.