[Circle] Tank % on prompt

From: Niese-Petersen (Tenp@cris.com)
Date: 07/24/96


In comm.c ... The function make_prompt  right before strcat(prompt, "> ");
insert following lines:

if (PRF_FLAGGED(d->character, PRF_DISPTANK) && FIGHTING(d->character) &&
    GET_LEVEL(d->character) > 20)  /* Level check ? *shrug* */
  if(FIGHTING(FIGHTING(d->character)) != d->character)
    sprintf(prompt, "Tank[%d] ", (GET_HIT(FIGHTING(FIGHTING(d->character))) * 100) / GET_MAX_HIT(FIGHTING(FIGHTING(d->character)))); 


Then ofcoz in structs.h define PRF_DISPTANK where Playerflags are defined.
And plus make the toggle in the prompt command. [do_display in act.other.c]
If you want me to, I can also make the code change for that.

---
Erik Niese-Petersen
Aka Quint The typo God
Realms of Darkness IMP [matrix.xiii.com 6666. Playertesting]



+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/07/00 PST