All pastes #40797 Raw Edit

cavehippo

public text v1 · immutable
#40797 ·published 2006-02-09 01:24 UTC
rendered paste body
Index: server/player.c
===================================================================
RCS file: /cvsroot/crossfire/crossfire/server/player.c,v
retrieving revision 1.191
diff -C5 -r1.191 player.c
*** server/player.c     7 Feb 2006 07:54:46 -0000       1.191
--- server/player.c     9 Feb 2006 01:23:24 -0000
***************
*** 634,648 ****
        if(op->type==SPELL)  {
            remove_ob(op);
            free_object(op);
              continue;
        }
!       if(op->type==SKILL)  {
            SET_FLAG(op, FLAG_CAN_USE_SKILL);
            op->stats.exp = 0;
            op->level = 1;
        }
      } /* for loop of objects in player inv */

      /* Need to set up the skill pointers */
      link_player_skills(pl);
  }
--- 634,650 ----
        if(op->type==SPELL)  {
            remove_ob(op);
            free_object(op);
              continue;
        }
!       else if(op->type==SKILL)  {
            SET_FLAG(op, FLAG_CAN_USE_SKILL);
            op->stats.exp = 0;
            op->level = 1;
        }
+       /* lock all 'normal items by default */
+       else SET_FLAG(op, FLAG_INV_LOCKED);
      } /* for loop of objects in player inv */

      /* Need to set up the skill pointers */
      link_player_skills(pl);
  }