Object damage code...

From: Zizazat Lazuras (zizazat@INAV.NET)
Date: 08/23/97


Ok, after a week I am starting to become angry.

I added som enice object damage code, but the portion that deals with the
examine does not work. (Code to follow). It is nearly identicaly to code
added to the identify spell, and that part works just dandy. Someone,
please, what am I overlooking?


(This was added after look_at_target)

 if (IS_NPC(tmp_char) || !IS_NPC(tmp_char))
    return;

 if (GET_OBJ_TSLOTS(tmp_object) == 101) {
        sprintf(buf, "This looks indestructable!\r\n");
        send_to_char(buf, ch);
    return;
        }
    if (GET_OBJ_CSLOTS(tmp_object) <= 10) {
        sprintf(buf, "This looks in extremley poor condition.\r\n");
        send_to_char(buf, ch);
    return;
        }
    if (GET_OBJ_CSLOTS(tmp_object) <= 20) {
        sprintf(buf, "This looks in poor condition.\r\n");
        send_to_char(buf, ch);
    return;
        }
    if (GET_OBJ_CSLOTS(tmp_object) <= 30) {
        sprintf(buf, "This looks in fair condition.\r\n");
        send_to_char(buf, ch);
    return;
        }
    if (GET_OBJ_CSLOTS(tmp_object) <= 40) {
        sprintf(buf, "This looks in moderate condition.\r\n");
        send_to_char(buf, ch);
    return;
        }
    if (GET_OBJ_CSLOTS(tmp_object) <= 50) {
        sprintf(buf, "This looks in good condition.\r\n");
        send_to_char(buf, ch);
    return;
        }
    if (GET_OBJ_CSLOTS(tmp_object) <= 60) {
        sprintf(buf, "This looks in very good condition.\r\n");
        send_to_char(buf, ch);
    return;
        }
    if (GET_OBJ_CSLOTS(tmp_object) <= 70) {
        sprintf(buf, "This looks in excellent condition.\r\n");
        send_to_char(buf, ch);
    return;
    }
    if (GET_OBJ_CSLOTS(tmp_object) <= 80) {
        sprintf(buf, "This looks in superior condition.\r\n");
        send_to_char(buf, ch);
    return;
    }
  if (GET_OBJ_CSLOTS(tmp_object) <= 90) {
        sprintf(buf, "This looks in extremely superior
        condition.\r\n"); send_to_char(buf, ch);
    return;
    }
 if (GET_OBJ_CSLOTS(tmp_object) == 100) {
        sprintf(buf, "This looks as good as new!.\r\n");
        send_to_char(buf, ch);
    return;
    }


     +------------------------------------------------------------+
     | 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/08/00 PST