Re: Equipment Wearing Limits

From: Daniel Koepke (dkoepke@CALIFORNIA.COM)
Date: 03/13/98


On Fri, 13 Mar 1998, Patrick J. Dughi wrote:

->        No, this will not kill your obj files. That would suck. We'll do
->it a really simple way.

I think he meant rent files, in which case, it should--otherwise
you're not saving the level limit for objects player's already have.

->edit utils.c, anywhere add
->#define GET_OBJ_MINLEVEL(obj)   ((obj)->obj_flags.minlevel)

utils.h

->  if (GET_MAXLEVEL(ch) < GET_OBJ_MINLEVEL(obj)) {

GET_LEVEL(ch) not GET_MAXLEVEL(ch)

->in perform_wear in ..act.item.c i think as well, just in case they manage

handler.c

->  if (GET_MAXLEVEL(ch) < GET_OBJ_MINLEVEL(obj)) {

See above.


-dak : not in a bad mood, just not feeling talkative today


     +------------------------------------------------------------+
     | 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