Difference for common/loader.c from version 1.76 to 1.77


version 1.76 version 1.77
Line 1
 
Line 1
 /* A lexical scanner generated by flex */  /* A lexical scanner generated by flex */
   
 /* Scanner skeleton version:  /* Scanner skeleton version:
  * $Header: /cvsroot/crossfire/crossfire/common/loader.c,v 1.76 2006/02/05 09:10:51 mwedel Exp $   * $Header: /cvsroot/crossfire/crossfire/common/loader.c,v 1.77 2006/02/07 07:54:45 mwedel Exp $
  */   */
   
 #define FLEX_SCANNER  #define FLEX_SCANNER
Line 1869
 
Line 1869
 #line 2 "loader.l"  #line 2 "loader.l"
 /*  /*
  * static char *rcsid_object_c =   * static char *rcsid_object_c =
  *   "$Id: loader.c,v 1.76 2006/02/05 09:10:51 mwedel Exp $";   *   "$Id: loader.c,v 1.77 2006/02/07 07:54:45 mwedel Exp $";
  */   */
   
 /*  /*
Line 1914
 
Line 1914
 static char lorebuf[HUGE_BUF];  static char lorebuf[HUGE_BUF];
   
 /* Maps the MOVE_* values to names */  /* Maps the MOVE_* values to names */
 static char *move_name[] = {"walk", "fly_low", "fly_high", "swim", NULL};  static char *move_name[] = {"walk", "fly_low", "fly_high", "swim", "boat",
       NULL};
   
 /* This table is only necessary to convert objects that existed before the  /* This table is only necessary to convert objects that existed before the
  * spell object conversion to the new object.  It was not practical   * spell object conversion to the new object.  It was not practical
Line 2464
 
Line 2465
 /* Don't have to link with -lfl with this */  /* Don't have to link with -lfl with this */
 /* need yy_push_state, yy_pop_state */  /* need yy_push_state, yy_pop_state */
 #define YY_STACK_USED 1  #define YY_STACK_USED 1
 #line 2468 "loader.c"  #line 2469 "loader.c"
   
 /* Macros after this point can all be overridden by user definitions in  /* Macros after this point can all be overridden by user definitions in
  * section 1.   * section 1.
Line 2618
 
Line 2619
  register char *yy_cp, *yy_bp;   register char *yy_cp, *yy_bp;
  register int yy_act;   register int yy_act;
   
 #line 608 "loader.l"  #line 609 "loader.l"
   
   
   
Line 2629
 
Line 2630
   
   
   
 #line 2633 "loader.c"  #line 2634 "loader.c"
   
  if ( yy_init )   if ( yy_init )
  {   {
Line 2718
 
Line 2719
 yy_c_buf_p = yy_cp -= 1;  yy_c_buf_p = yy_cp -= 1;
 YY_DO_BEFORE_ACTION; /* set up yytext again */  YY_DO_BEFORE_ACTION; /* set up yytext again */
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 618 "loader.l"  #line 619 "loader.l"
 { BEGIN( MESSAGE ); msgbuf[0]='\0'; }  { BEGIN( MESSAGE ); msgbuf[0]='\0'; }
  YY_BREAK   YY_BREAK
 case 2:  case 2:
Line 2726
 
Line 2727
 yy_c_buf_p = yy_cp -= 1;  yy_c_buf_p = yy_cp -= 1;
 YY_DO_BEFORE_ACTION; /* set up yytext again */  YY_DO_BEFORE_ACTION; /* set up yytext again */
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 619 "loader.l"  #line 620 "loader.l"
 { BEGIN( INITIAL );  { BEGIN( INITIAL );
  op->msg=add_string(msgbuf);   op->msg=add_string(msgbuf);
  /* Just print a warning so we can be reasonably safe   /* Just print a warning so we can be reasonably safe
Line 2739
 
Line 2740
  YY_BREAK   YY_BREAK
 case 3:  case 3:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 628 "loader.l"  #line 629 "loader.l"
 {strcat(msgbuf, yytext); strcat(msgbuf,"\n"); }  {strcat(msgbuf, yytext); strcat(msgbuf,"\n"); }
  YY_BREAK   YY_BREAK
 case 4:  case 4:
Line 2747
 
Line 2748
 yy_c_buf_p = yy_cp -= 1;  yy_c_buf_p = yy_cp -= 1;
 YY_DO_BEFORE_ACTION; /* set up yytext again */  YY_DO_BEFORE_ACTION; /* set up yytext again */
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 630 "loader.l"  #line 631 "loader.l"
 { BEGIN( LORE ); lorebuf[0]='\0'; }  { BEGIN( LORE ); lorebuf[0]='\0'; }
  YY_BREAK   YY_BREAK
 case 5:  case 5:
Line 2755
 
Line 2756
 yy_c_buf_p = yy_cp -= 1;  yy_c_buf_p = yy_cp -= 1;
 YY_DO_BEFORE_ACTION; /* set up yytext again */  YY_DO_BEFORE_ACTION; /* set up yytext again */
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 631 "loader.l"  #line 632 "loader.l"
 { BEGIN( INITIAL );  { BEGIN( INITIAL );
  op->lore=add_string(lorebuf);   op->lore=add_string(lorebuf);
  /* Just print a warning so we can be reasonably safe   /* Just print a warning so we can be reasonably safe
Line 2768
 
Line 2769
  YY_BREAK   YY_BREAK
 case 6:  case 6:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 640 "loader.l"  #line 641 "loader.l"
 {strcat(lorebuf, yytext); strcat(lorebuf,"\n"); }  {strcat(lorebuf, yytext); strcat(lorebuf,"\n"); }
  YY_BREAK   YY_BREAK
 case 7:  case 7:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 642 "loader.l"  #line 643 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') {   if (*yv=='\0') {
Line 2790
 
Line 2791
  YY_BREAK   YY_BREAK
 case 8:  case 8:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 656 "loader.l"  #line 657 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Name without val\n");   if (*yv=='\0') LOG(llevError,"Name without val\n");
Line 2799
 
Line 2800
  YY_BREAK   YY_BREAK
 case 9:  case 9:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 661 "loader.l"  #line 662 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Name without val\n");   if (*yv=='\0') LOG(llevError,"Name without val\n");
Line 2808
 
Line 2809
  YY_BREAK   YY_BREAK
 case 10:  case 10:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 666 "loader.l"  #line 667 "loader.l"
 FREE_AND_COPY(op->skill,yval());  FREE_AND_COPY(op->skill,yval());
  YY_BREAK   YY_BREAK
 case 11:  case 11:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 667 "loader.l"  #line 668 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Custom name without val\n");   if (*yv=='\0') LOG(llevError,"Custom name without val\n");
Line 2822
 
Line 2823
  YY_BREAK   YY_BREAK
 case 12:  case 12:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 672 "loader.l"  #line 673 "loader.l"
 FREE_AND_COPY(op->race,yval());  FREE_AND_COPY(op->race,yval());
  YY_BREAK   YY_BREAK
 case 13:  case 13:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 673 "loader.l"  #line 674 "loader.l"
 FREE_AND_COPY(op->slaying, yval());  FREE_AND_COPY(op->slaying, yval());
  YY_BREAK   YY_BREAK
 case 14:  case 14:
Line 2835
 
Line 2836
 yy_c_buf_p = yy_cp -= 1;  yy_c_buf_p = yy_cp -= 1;
 YY_DO_BEFORE_ACTION; /* set up yytext again */  YY_DO_BEFORE_ACTION; /* set up yytext again */
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 674 "loader.l"  #line 675 "loader.l"
 LOG(llevError,"Got depreciated Inventory command?\n");  LOG(llevError,"Got depreciated Inventory command?\n");
  YY_BREAK   YY_BREAK
 case 15:  case 15:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 677 "loader.l"  #line 678 "loader.l"
 { /* If op->arch has been set, then this new object  { /* If op->arch has been set, then this new object
  * must be part of the inventory.  So process   * must be part of the inventory.  So process
  * appropriately.   * appropriately.
Line 2885
 
Line 2886
  YY_BREAK   YY_BREAK
 case 16:  case 16:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 719 "loader.l"  #line 720 "loader.l"
 op->other_arch=find_archetype(yval());  op->other_arch=find_archetype(yval());
  YY_BREAK   YY_BREAK
 case 17:  case 17:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 720 "loader.l"  #line 721 "loader.l"
 {  {
  if (strcmp (yval(), "NONE") == 0) {   if (strcmp (yval(), "NONE") == 0) {
      op->animation_id = 0;       op->animation_id = 0;
Line 2906
 
Line 2907
 yy_c_buf_p = yy_cp -= 1;  yy_c_buf_p = yy_cp -= 1;
 YY_DO_BEFORE_ACTION; /* set up yytext again */  YY_DO_BEFORE_ACTION; /* set up yytext again */
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 730 "loader.l"  #line 731 "loader.l"
 { /* We need to record that this is a multipart object,  { /* We need to record that this is a multipart object,
         * so the calling function can glue things back together          * so the calling function can glue things back together
         */          */
Line 2918
 
Line 2919
 yy_c_buf_p = yy_cp -= 1;  yy_c_buf_p = yy_cp -= 1;
 YY_DO_BEFORE_ACTION; /* set up yytext again */  YY_DO_BEFORE_ACTION; /* set up yytext again */
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 736 "loader.l"  #line 737 "loader.l"
 { check_loaded_object(op);  { check_loaded_object(op);
  if (ismore) return LL_MORE;    if (ismore) return LL_MORE;
  else return LL_NORMAL;   else return LL_NORMAL;
Line 2926
 
Line 2927
  YY_BREAK   YY_BREAK
 case 20:  case 20:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 740 "loader.l"  #line 741 "loader.l"
 op->last_heal = IVAL;  op->last_heal = IVAL;
  YY_BREAK   YY_BREAK
 case 21:  case 21:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 741 "loader.l"  #line 742 "loader.l"
 op->last_sp = IVAL;  op->last_sp = IVAL;
  YY_BREAK   YY_BREAK
 case 22:  case 22:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 742 "loader.l"  #line 743 "loader.l"
 op->last_grace = IVAL;  op->last_grace = IVAL;
  YY_BREAK   YY_BREAK
 case 23:  case 23:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 743 "loader.l"  #line 744 "loader.l"
 op->last_eat = IVAL;  op->last_eat = IVAL;
  YY_BREAK   YY_BREAK
 case 24:  case 24:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 744 "loader.l"  #line 745 "loader.l"
 { op->speed = FVAL;  { op->speed = FVAL;
  if (!(map_flags & MAP_STYLE)) {   if (!(map_flags & MAP_STYLE)) {
      if (op->speed<0) op->speed_left = op->speed_left-RANDOM()%100/100.0;       if (op->speed<0) op->speed_left = op->speed_left-RANDOM()%100/100.0;
Line 2956
 
Line 2957
  YY_BREAK   YY_BREAK
 case 25:  case 25:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 750 "loader.l"  #line 751 "loader.l"
 op->speed_left = FVAL;  op->speed_left = FVAL;
  YY_BREAK   YY_BREAK
 case 26:  case 26:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 751 "loader.l"  #line 752 "loader.l"
 { op->move_slow |= MOVE_WALK;  { op->move_slow |= MOVE_WALK;
  op->move_slow_penalty = FVAL;   op->move_slow_penalty = FVAL;
      }       }
  YY_BREAK   YY_BREAK
 case 27:  case 27:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 754 "loader.l"  #line 755 "loader.l"
 { char *y=yval();  { char *y=yval();
  if (*y=='\0') LOG(llevError,"Title without value.\n");   if (*y=='\0') LOG(llevError,"Title without value.\n");
  else FREE_AND_COPY(op->title, y);   else FREE_AND_COPY(op->title, y);
Line 2976
 
Line 2977
  YY_BREAK   YY_BREAK
 case 28:  case 28:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 759 "loader.l"  #line 760 "loader.l"
 op->face = &new_faces[FindFace(yval(), 0)];  op->face = &new_faces[FindFace(yval(), 0)];
  YY_BREAK   YY_BREAK
 case 29:  case 29:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 760 "loader.l"  #line 761 "loader.l"
 op->stats.Str = IVAL;  op->stats.Str = IVAL;
  YY_BREAK   YY_BREAK
 case 30:  case 30:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 761 "loader.l"  #line 762 "loader.l"
 op->stats.Dex = IVAL;  op->stats.Dex = IVAL;
  YY_BREAK   YY_BREAK
 case 31:  case 31:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 762 "loader.l"  #line 763 "loader.l"
 op->stats.Con = IVAL;  op->stats.Con = IVAL;
  YY_BREAK   YY_BREAK
 case 32:  case 32:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 763 "loader.l"  #line 764 "loader.l"
 op->stats.Wis = IVAL;  op->stats.Wis = IVAL;
  YY_BREAK   YY_BREAK
 case 33:  case 33:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 764 "loader.l"  #line 765 "loader.l"
 op->stats.Cha = IVAL;  op->stats.Cha = IVAL;
  YY_BREAK   YY_BREAK
 case 34:  case 34:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 765 "loader.l"  #line 766 "loader.l"
 op->stats.Int = IVAL;  op->stats.Int = IVAL;
  YY_BREAK   YY_BREAK
 case 35:  case 35:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 766 "loader.l"  #line 767 "loader.l"
 op->stats.Pow = IVAL;  op->stats.Pow = IVAL;
  YY_BREAK   YY_BREAK
 case 36:  case 36:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 767 "loader.l"  #line 768 "loader.l"
 op->stats.hp = IVAL;  op->stats.hp = IVAL;
  YY_BREAK   YY_BREAK
 case 37:  case 37:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 768 "loader.l"  #line 769 "loader.l"
 op->stats.maxhp = IVAL;  op->stats.maxhp = IVAL;
  YY_BREAK   YY_BREAK
 case 38:  case 38:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 769 "loader.l"  #line 770 "loader.l"
 op->stats.sp = IVAL;  op->stats.sp = IVAL;
  YY_BREAK   YY_BREAK
 case 39:  case 39:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 770 "loader.l"  #line 771 "loader.l"
 op->stats.maxsp = IVAL;  op->stats.maxsp = IVAL;
  YY_BREAK   YY_BREAK
 case 40:  case 40:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 771 "loader.l"  #line 772 "loader.l"
 op->stats.grace = IVAL;  op->stats.grace = IVAL;
  YY_BREAK   YY_BREAK
 case 41:  case 41:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 772 "loader.l"  #line 773 "loader.l"
 op->stats.maxgrace = IVAL;  op->stats.maxgrace = IVAL;
  YY_BREAK   YY_BREAK
 case 42:  case 42:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 773 "loader.l"  #line 774 "loader.l"
 op->stats.exp = atoll(yval());  op->stats.exp = atoll(yval());
  YY_BREAK   YY_BREAK
 case 43:  case 43:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 774 "loader.l"  #line 775 "loader.l"
 op->perm_exp = atoll(yval());  op->perm_exp = atoll(yval());
  YY_BREAK   YY_BREAK
 case 44:  case 44:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 775 "loader.l"  #line 776 "loader.l"
 op->stats.food = IVAL;  op->stats.food = IVAL;
  YY_BREAK   YY_BREAK
 case 45:  case 45:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 776 "loader.l"  #line 777 "loader.l"
 op->stats.dam = IVAL;  op->stats.dam = IVAL;
  YY_BREAK   YY_BREAK
 case 46:  case 46:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 777 "loader.l"  #line 778 "loader.l"
 op->stats.wc = IVAL;  op->stats.wc = IVAL;
  YY_BREAK   YY_BREAK
 case 47:  case 47:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 778 "loader.l"  #line 779 "loader.l"
 op->stats.ac = IVAL;  op->stats.ac = IVAL;
  YY_BREAK   YY_BREAK
 case 48:  case 48:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 779 "loader.l"  #line 780 "loader.l"
 {op->x = IVAL; op->ox= op->x; }  {op->x = IVAL; op->ox= op->x; }
  YY_BREAK   YY_BREAK
 case 49:  case 49:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 780 "loader.l"  #line 781 "loader.l"
 {op->y = IVAL; op->oy= op->y; }  {op->y = IVAL; op->oy= op->y; }
  YY_BREAK   YY_BREAK
 case 50:  case 50:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 781 "loader.l"  #line 782 "loader.l"
 op->nrof= atol(yval());  op->nrof= atol(yval());
  YY_BREAK   YY_BREAK
 case 51:  case 51:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 782 "loader.l"  #line 783 "loader.l"
 op->level = IVAL;  op->level = IVAL;
  YY_BREAK   YY_BREAK
 case 52:  case 52:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 783 "loader.l"  #line 784 "loader.l"
 op->direction = IVAL;  op->direction = IVAL;
  YY_BREAK   YY_BREAK
 case 53:  case 53:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 784 "loader.l"  #line 785 "loader.l"
 op->type = IVAL;  op->type = IVAL;
  YY_BREAK   YY_BREAK
 case 54:  case 54:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 785 "loader.l"  #line 786 "loader.l"
 op->subtype = IVAL;  op->subtype = IVAL;
  YY_BREAK   YY_BREAK
 case 55:  case 55:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 786 "loader.l"  #line 787 "loader.l"
 op->material = IVAL;  op->material = IVAL;
  YY_BREAK   YY_BREAK
 case 56:  case 56:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 787 "loader.l"  #line 788 "loader.l"
 { char *yv=yval();  { char *yv=yval();
  if (*yv=='\0')   if (*yv=='\0')
      LOG(llevError,"Materialname without val\n");       LOG(llevError,"Materialname without val\n");
Line 3126
 
Line 3127
  YY_BREAK   YY_BREAK
 case 57:  case 57:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 794 "loader.l"  #line 795 "loader.l"
 op->value = IVAL;  op->value = IVAL;
  YY_BREAK   YY_BREAK
 case 58:  case 58:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 795 "loader.l"  #line 796 "loader.l"
 op->weight = atol(yval());  op->weight = atol(yval());
  YY_BREAK   YY_BREAK
 case 59:  case 59:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 796 "loader.l"  #line 797 "loader.l"
 op->carrying = atol(yval());  op->carrying = atol(yval());
  YY_BREAK   YY_BREAK
 case 60:  case 60:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 797 "loader.l"  #line 798 "loader.l"
 op->attacktype = IVAL;  op->attacktype = IVAL;
  YY_BREAK   YY_BREAK
 case 61:  case 61:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 798 "loader.l"  #line 799 "loader.l"
 op->path_attuned = IVAL;  op->path_attuned = IVAL;
  YY_BREAK   YY_BREAK
 case 62:  case 62:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 799 "loader.l"  #line 800 "loader.l"
 op->path_repelled = IVAL;  op->path_repelled = IVAL;
  YY_BREAK   YY_BREAK
 case 63:  case 63:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 800 "loader.l"  #line 801 "loader.l"
 op->path_denied = IVAL;  op->path_denied = IVAL;
  YY_BREAK   YY_BREAK
 case 64:  case 64:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 801 "loader.l"  #line 802 "loader.l"
 op->invisible = IVAL;  op->invisible = IVAL;
  YY_BREAK   YY_BREAK
 case 65:  case 65:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 802 "loader.l"  #line 803 "loader.l"
 op->magic = IVAL;  op->magic = IVAL;
  YY_BREAK   YY_BREAK
 case 66:  case 66:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 803 "loader.l"  #line 804 "loader.l"
 op->state = IVAL;  op->state = IVAL;
  YY_BREAK   YY_BREAK
 case 67:  case 67:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 804 "loader.l"  #line 805 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_ALIVE, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_ALIVE, IVAL);
  YY_BREAK   YY_BREAK
 case 68:  case 68:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 805 "loader.l"  #line 806 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_APPLIED, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_APPLIED, IVAL);
  YY_BREAK   YY_BREAK
 case 69:  case 69:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 806 "loader.l"  #line 807 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_UNPAID, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_UNPAID, IVAL);
  YY_BREAK   YY_BREAK
 case 70:  case 70:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 807 "loader.l"  #line 808 "loader.l"
 { /* not used - just ignore */ }  { /* not used - just ignore */ }
  YY_BREAK   YY_BREAK
 case 71:  case 71:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 808 "loader.l"  #line 809 "loader.l"
 { /* not used - jsut ignore */ }  { /* not used - jsut ignore */ }
  YY_BREAK   YY_BREAK
 case 72:  case 72:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 809 "loader.l"  #line 810 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_ANIMATE, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_ANIMATE, IVAL);
  YY_BREAK   YY_BREAK
 case 73:  case 73:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 810 "loader.l"  #line 811 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_NO_PICK, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_NO_PICK, IVAL);
  YY_BREAK   YY_BREAK
  /* These are all legacy - any new objects should use the move_ .. values */    /* These are all legacy - any new objects should use the move_ .. values */
   
 case 74:  case 74:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 814 "loader.l"  #line 815 "loader.l"
 { if (IVAL) op->move_block = MOVE_ALL; else op->move_block=0; }  { if (IVAL) op->move_block = MOVE_ALL; else op->move_block=0; }
  YY_BREAK   YY_BREAK
 case 75:  case 75:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 815 "loader.l"  #line 816 "loader.l"
 { if (IVAL) op->move_on |= MOVE_WALK; else op->move_on &= ~MOVE_WALK; }  { if (IVAL) op->move_on |= MOVE_WALK; else op->move_on &= ~MOVE_WALK; }
  YY_BREAK   YY_BREAK
 case 76:  case 76:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 816 "loader.l"  #line 817 "loader.l"
 { if (IVAL) op->move_off |= MOVE_WALK; else op->move_off &= ~MOVE_WALK; }  { if (IVAL) op->move_off |= MOVE_WALK; else op->move_off &= ~MOVE_WALK; }
  YY_BREAK   YY_BREAK
 case 77:  case 77:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 817 "loader.l"  #line 818 "loader.l"
 { if (IVAL) op->move_on |= MOVE_FLY_LOW; else op->move_on &= ~MOVE_FLY_LOW; }  { if (IVAL) op->move_on |= MOVE_FLY_LOW; else op->move_on &= ~MOVE_FLY_LOW; }
  YY_BREAK   YY_BREAK
 case 78:  case 78:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 818 "loader.l"  #line 819 "loader.l"
 { if (IVAL) op->move_off |= MOVE_FLY_LOW; else op->move_off &= ~MOVE_FLY_LOW; }  { if (IVAL) op->move_off |= MOVE_FLY_LOW; else op->move_off &= ~MOVE_FLY_LOW; }
  YY_BREAK   YY_BREAK
 case 79:  case 79:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 819 "loader.l"  #line 820 "loader.l"
 { if (IVAL) op->move_type |= MOVE_FLY_LOW; else op->move_type &= ~MOVE_FLY_LOW; }  { if (IVAL) op->move_type |= MOVE_FLY_LOW; else op->move_type &= ~MOVE_FLY_LOW; }
  YY_BREAK   YY_BREAK
  /* These are the new values */    /* These are the new values */
   
 case 80:  case 80:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 823 "loader.l"  #line 824 "loader.l"
 set_move(&op->move_block, yval());  set_move(&op->move_block, yval());
  YY_BREAK   YY_BREAK
 case 81:  case 81:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 824 "loader.l"  #line 825 "loader.l"
 set_move(&op->move_allow, yval());  set_move(&op->move_allow, yval());
  YY_BREAK   YY_BREAK
 case 82:  case 82:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 825 "loader.l"  #line 826 "loader.l"
 set_move(&op->move_type, yval());  set_move(&op->move_type, yval());
  YY_BREAK   YY_BREAK
 case 83:  case 83:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 826 "loader.l"  #line 827 "loader.l"
 set_move(&op->move_on, yval());  set_move(&op->move_on, yval());
  YY_BREAK   YY_BREAK
 case 84:  case 84:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 827 "loader.l"  #line 828 "loader.l"
 set_move(&op->move_off, yval());  set_move(&op->move_off, yval());
  YY_BREAK   YY_BREAK
 case 85:  case 85:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 828 "loader.l"  #line 829 "loader.l"
 set_move(&op->move_slow, yval());  set_move(&op->move_slow, yval());
  YY_BREAK   YY_BREAK
 case 86:  case 86:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 829 "loader.l"  #line 830 "loader.l"
 op->move_slow_penalty = FVAL;  op->move_slow_penalty = FVAL;
  YY_BREAK   YY_BREAK
 case 87:  case 87:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 832 "loader.l"  #line 833 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_MONSTER, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_MONSTER, IVAL);
  YY_BREAK   YY_BREAK
 case 88:  case 88:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 833 "loader.l"  #line 834 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_NEUTRAL, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_NEUTRAL, IVAL);
  YY_BREAK   YY_BREAK
 case 89:  case 89:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 834 "loader.l"  #line 835 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_NO_ATTACK, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_NO_ATTACK, IVAL);
  YY_BREAK   YY_BREAK
 case 90:  case 90:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 835 "loader.l"  #line 836 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_NO_DAMAGE, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_NO_DAMAGE, IVAL);
  YY_BREAK   YY_BREAK
 case 91:  case 91:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 836 "loader.l"  #line 837 "loader.l"
 { if (IVAL) {  { if (IVAL) {
      SET_FLAG(op, FLAG_FRIENDLY);       SET_FLAG(op, FLAG_FRIENDLY);
      if (op->type != PLAYER) {       if (op->type != PLAYER) {
Line 3313
 
Line 3314
  YY_BREAK   YY_BREAK
 case 92:  case 92:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 845 "loader.l"  #line 846 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_GENERATOR, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_GENERATOR, IVAL);
  YY_BREAK   YY_BREAK
 case 93:  case 93:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 846 "loader.l"  #line 847 "loader.l"
 SET_OR_CLEAR_FLAG (op,FLAG_CONTENT_ON_GEN, IVAL);  SET_OR_CLEAR_FLAG (op,FLAG_CONTENT_ON_GEN, IVAL);
  YY_BREAK   YY_BREAK
 case 94:  case 94:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 847 "loader.l"  #line 848 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_IS_THROWN, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_IS_THROWN, IVAL);
  YY_BREAK   YY_BREAK
 case 95:  case 95:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 848 "loader.l"  #line 849 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_AUTO_APPLY, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_AUTO_APPLY, IVAL);
  YY_BREAK   YY_BREAK
 case 96:  case 96:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 849 "loader.l"  #line 850 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_TREASURE, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_TREASURE, IVAL);
  YY_BREAK   YY_BREAK
 case 97:  case 97:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 850 "loader.l"  #line 851 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_SEE_INVISIBLE, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_SEE_INVISIBLE, IVAL);
  YY_BREAK   YY_BREAK
 case 98:  case 98:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 851 "loader.l"  #line 852 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_CAN_ROLL, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_CAN_ROLL, IVAL);
  YY_BREAK   YY_BREAK
 case 99:  case 99:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 852 "loader.l"  #line 853 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_OVERLAY_FLOOR, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_OVERLAY_FLOOR, IVAL);
  YY_BREAK   YY_BREAK
 case 100:  case 100:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 853 "loader.l"  #line 854 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_IS_TURNABLE, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_IS_TURNABLE, IVAL);
  YY_BREAK   YY_BREAK
 case 101:  case 101:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 854 "loader.l"  #line 855 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_IS_USED_UP, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_IS_USED_UP, IVAL);
  YY_BREAK   YY_BREAK
 case 102:  case 102:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 855 "loader.l"  #line 856 "loader.l"
 { if (IVAL) {  { if (IVAL) {
      SET_FLAG(op, FLAG_IDENTIFIED);       SET_FLAG(op, FLAG_IDENTIFIED);
      CLEAR_FLAG(op, FLAG_KNOWN_MAGICAL);       CLEAR_FLAG(op, FLAG_KNOWN_MAGICAL);
Line 3373
 
Line 3374
  YY_BREAK   YY_BREAK
 case 103:  case 103:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 861 "loader.l"  #line 862 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_REFLECTING, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_REFLECTING, IVAL);
  YY_BREAK   YY_BREAK
 case 104:  case 104:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 862 "loader.l"  #line 863 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_CHANGING, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_CHANGING, IVAL);
  YY_BREAK   YY_BREAK
 case 105:  case 105:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 863 "loader.l"  #line 864 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_SPLITTING, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_SPLITTING, IVAL);
  YY_BREAK   YY_BREAK
 case 106:  case 106:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 864 "loader.l"  #line 865 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_HITBACK, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_HITBACK, IVAL);
  YY_BREAK   YY_BREAK
 case 107:  case 107:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 865 "loader.l"  #line 866 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_STARTEQUIP, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_STARTEQUIP, IVAL);
  YY_BREAK   YY_BREAK
 case 108:  case 108:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 866 "loader.l"  #line 867 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_BLOCKSVIEW, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_BLOCKSVIEW, IVAL);
  YY_BREAK   YY_BREAK
 case 109:  case 109:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 867 "loader.l"  #line 868 "loader.l"
 op->arch->editable = IVAL;  op->arch->editable = IVAL;
  YY_BREAK   YY_BREAK
 case 110:  case 110:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 868 "loader.l"  #line 869 "loader.l"
 { }  { }
  YY_BREAK   YY_BREAK
 case 111:  case 111:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 869 "loader.l"  #line 870 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_UNDEAD, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_UNDEAD, IVAL);
  YY_BREAK   YY_BREAK
 case 112:  case 112:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 870 "loader.l"  #line 871 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_SCARED, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_SCARED, IVAL);
  YY_BREAK   YY_BREAK
 case 113:  case 113:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 871 "loader.l"  #line 872 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_UNAGGRESSIVE, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_UNAGGRESSIVE, IVAL);
  YY_BREAK   YY_BREAK
 case 114:  case 114:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 872 "loader.l"  #line 873 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_REFL_MISSILE, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_REFL_MISSILE, IVAL);
  YY_BREAK   YY_BREAK
 case 115:  case 115:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 873 "loader.l"  #line 874 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_REFL_SPELL, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_REFL_SPELL, IVAL);
  YY_BREAK   YY_BREAK
 case 116:  case 116:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 874 "loader.l"  #line 875 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_NO_MAGIC, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_NO_MAGIC, IVAL);
  YY_BREAK   YY_BREAK
 case 117:  case 117:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 875 "loader.l"  #line 876 "loader.l"
 { if (IVAL) {  { if (IVAL) {
      SET_FLAG(op, FLAG_WIZ);       SET_FLAG(op, FLAG_WIZ);
      SET_FLAG(op, FLAG_WAS_WIZ);       SET_FLAG(op, FLAG_WAS_WIZ);
Line 3459
 
Line 3460
  YY_BREAK   YY_BREAK
 case 118:  case 118:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 887 "loader.l"  #line 888 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_WAS_WIZ, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_WAS_WIZ, IVAL);
  YY_BREAK   YY_BREAK
 case 119:  case 119:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 888 "loader.l"  #line 889 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_NO_FIX_PLAYER, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_NO_FIX_PLAYER, IVAL);
  YY_BREAK   YY_BREAK
 case 120:  case 120:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 889 "loader.l"  #line 890 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_IS_LIGHTABLE, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_IS_LIGHTABLE, IVAL);
  YY_BREAK   YY_BREAK
 case 121:  case 121:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 890 "loader.l"  #line 891 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_TEAR_DOWN, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_TEAR_DOWN, IVAL);
  YY_BREAK   YY_BREAK
 case 122:  case 122:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 891 "loader.l"  #line 892 "loader.l"
 op->stats.luck = IVAL;  op->stats.luck = IVAL;
  YY_BREAK   YY_BREAK
 case 123:  case 123:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 892 "loader.l"  #line 893 "loader.l"
 op->run_away = IVAL;  op->run_away = IVAL;
  YY_BREAK   YY_BREAK
 case 124:  case 124:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 893 "loader.l"  #line 894 "loader.l"
 op->pick_up = IVAL;  op->pick_up = IVAL;
  YY_BREAK   YY_BREAK
 case 125:  case 125:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 894 "loader.l"  #line 895 "loader.l"
 op->item_power = IVAL;  op->item_power = IVAL;
  YY_BREAK   YY_BREAK
 case 126:  case 126:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 895 "loader.l"  #line 896 "loader.l"
 op->gen_sp_armour = IVAL;  op->gen_sp_armour = IVAL;
  YY_BREAK   YY_BREAK
 case 127:  case 127:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 896 "loader.l"  #line 897 "loader.l"
 op->anim_speed = IVAL;  op->anim_speed = IVAL;
  YY_BREAK   YY_BREAK
 case 128:  case 128:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 897 "loader.l"  #line 898 "loader.l"
 op->weight_limit = IVAL;  op->weight_limit = IVAL;
  YY_BREAK   YY_BREAK
 case 129:  case 129:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 898 "loader.l"  #line 899 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_NO_DROP, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_NO_DROP, IVAL);
  YY_BREAK   YY_BREAK
 case 130:  case 130:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 899 "loader.l"  #line 900 "loader.l"
 op->will_apply = IVAL;  op->will_apply = IVAL;
  YY_BREAK   YY_BREAK
 case 131:  case 131:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 900 "loader.l"  #line 901 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_RANDOM_MOVE, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_RANDOM_MOVE, IVAL);
  YY_BREAK   YY_BREAK
 case 132:  case 132:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 901 "loader.l"  #line 902 "loader.l"
 { }  { }
  YY_BREAK   YY_BREAK
 case 133:  case 133:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 902 "loader.l"  #line 903 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_USE_SHIELD, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_USE_SHIELD, IVAL);
  YY_BREAK   YY_BREAK
 case 134:  case 134:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 903 "loader.l"  #line 904 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_CAST_SPELL, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_CAST_SPELL, IVAL);
  YY_BREAK   YY_BREAK
 case 135:  case 135:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 904 "loader.l"  #line 905 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_USE_SCROLL, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_USE_SCROLL, IVAL);
  YY_BREAK   YY_BREAK
 case 136:  case 136:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 905 "loader.l"  #line 906 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_USE_RANGE, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_USE_RANGE, IVAL);
  YY_BREAK   YY_BREAK
 case 137:  case 137:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 906 "loader.l"  #line 907 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_USE_BOW, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_USE_BOW, IVAL);
  YY_BREAK   YY_BREAK
 case 138:  case 138:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 907 "loader.l"  #line 908 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_USE_ARMOUR, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_USE_ARMOUR, IVAL);
  YY_BREAK   YY_BREAK
 case 139:  case 139:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 908 "loader.l"  #line 909 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_USE_WEAPON, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_USE_WEAPON, IVAL);
  YY_BREAK   YY_BREAK
 case 140:  case 140:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 909 "loader.l"  #line 910 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_USE_RING, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_USE_RING, IVAL);
  YY_BREAK   YY_BREAK
 case 141:  case 141:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 910 "loader.l"  #line 911 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_READY_BOW, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_READY_BOW, IVAL);
  YY_BREAK   YY_BREAK
 case 142:  case 142:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 911 "loader.l"  #line 912 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_XRAYS, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_XRAYS, IVAL);
  YY_BREAK   YY_BREAK
 case 143:  case 143:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 912 "loader.l"  #line 913 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_IS_FLOOR, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_IS_FLOOR, IVAL);
  YY_BREAK   YY_BREAK
 case 144:  case 144:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 913 "loader.l"  #line 914 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_LIFESAVE, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_LIFESAVE, IVAL);
  YY_BREAK   YY_BREAK
 case 145:  case 145:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 914 "loader.l"  #line 915 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_NO_STRENGTH, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_NO_STRENGTH, IVAL);
  YY_BREAK   YY_BREAK
 case 146:  case 146:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 915 "loader.l"  #line 916 "loader.l"
 {  {
  SET_OR_CLEAR_FLAG(op, FLAG_SLEEP, IVAL);   SET_OR_CLEAR_FLAG(op, FLAG_SLEEP, IVAL);
  /*(LOG(llevDebug," Warning: Object %s has sleep set in arch.\n",op->name);*/   /*(LOG(llevDebug," Warning: Object %s has sleep set in arch.\n",op->name);*/
Line 3607
 
Line 3608
  YY_BREAK   YY_BREAK
 case 147:  case 147:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 919 "loader.l"  #line 920 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_STAND_STILL, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_STAND_STILL, IVAL);
  YY_BREAK   YY_BREAK
 case 148:  case 148:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 920 "loader.l"  #line 921 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_RANDOM_MOVE, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_RANDOM_MOVE, IVAL);
  YY_BREAK   YY_BREAK
 case 149:  case 149:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 921 "loader.l"  #line 922 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_ONLY_ATTACK, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_ONLY_ATTACK, IVAL);
  YY_BREAK   YY_BREAK
 case 150:  case 150:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 923 "loader.l"  #line 924 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_ACTIVATE_ON_PUSH, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_ACTIVATE_ON_PUSH, IVAL);
  YY_BREAK   YY_BREAK
 case 151:  case 151:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 924 "loader.l"  #line 925 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_ACTIVATE_ON_RELEASE, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_ACTIVATE_ON_RELEASE, IVAL);
  YY_BREAK   YY_BREAK
 /* armour is loaded for compatiblity reasons */  /* armour is loaded for compatiblity reasons */
 case 152:  case 152:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 927 "loader.l"  #line 928 "loader.l"
 SET_RESIST(op, ATNR_PHYSICAL, IVAL);  SET_RESIST(op, ATNR_PHYSICAL, IVAL);
  YY_BREAK   YY_BREAK
 /* Start of various attacktypes */  /* Start of various attacktypes */
 case 153:  case 153:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 929 "loader.l"  #line 930 "loader.l"
 SET_RESIST(op, ATNR_PHYSICAL, IVAL);  SET_RESIST(op, ATNR_PHYSICAL, IVAL);
  YY_BREAK   YY_BREAK
 case 154:  case 154:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 930 "loader.l"  #line 931 "loader.l"
 SET_RESIST(op, ATNR_MAGIC, IVAL);  SET_RESIST(op, ATNR_MAGIC, IVAL);
  YY_BREAK   YY_BREAK
 case 155:  case 155:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 931 "loader.l"  #line 932 "loader.l"
 SET_RESIST(op, ATNR_FIRE, IVAL);  SET_RESIST(op, ATNR_FIRE, IVAL);
  YY_BREAK   YY_BREAK
 case 156:  case 156:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 932 "loader.l"  #line 933 "loader.l"
 SET_RESIST(op, ATNR_ELECTRICITY, IVAL);  SET_RESIST(op, ATNR_ELECTRICITY, IVAL);
  YY_BREAK   YY_BREAK
 case 157:  case 157:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 933 "loader.l"  #line 934 "loader.l"
 SET_RESIST(op, ATNR_COLD, IVAL);  SET_RESIST(op, ATNR_COLD, IVAL);
  YY_BREAK   YY_BREAK
 case 158:  case 158:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 934 "loader.l"  #line 935 "loader.l"
 SET_RESIST(op, ATNR_CONFUSION, IVAL);  SET_RESIST(op, ATNR_CONFUSION, IVAL);
  YY_BREAK   YY_BREAK
 case 159:  case 159:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 935 "loader.l"  #line 936 "loader.l"
 SET_RESIST(op, ATNR_ACID, IVAL);  SET_RESIST(op, ATNR_ACID, IVAL);
  YY_BREAK   YY_BREAK
 case 160:  case 160:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 936 "loader.l"  #line 937 "loader.l"
 SET_RESIST(op, ATNR_DRAIN, IVAL);  SET_RESIST(op, ATNR_DRAIN, IVAL);
  YY_BREAK   YY_BREAK
 case 161:  case 161:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 937 "loader.l"  #line 938 "loader.l"
 SET_RESIST(op, ATNR_WEAPONMAGIC, IVAL);  SET_RESIST(op, ATNR_WEAPONMAGIC, IVAL);
  YY_BREAK   YY_BREAK
 case 162:  case 162:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 938 "loader.l"  #line 939 "loader.l"
 SET_RESIST(op, ATNR_GHOSTHIT, IVAL);  SET_RESIST(op, ATNR_GHOSTHIT, IVAL);
  YY_BREAK   YY_BREAK
 case 163:  case 163:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 939 "loader.l"  #line 940 "loader.l"
 SET_RESIST(op, ATNR_POISON, IVAL);  SET_RESIST(op, ATNR_POISON, IVAL);
  YY_BREAK   YY_BREAK
 case 164:  case 164:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 940 "loader.l"  #line 941 "loader.l"
 SET_RESIST(op, ATNR_SLOW, IVAL);  SET_RESIST(op, ATNR_SLOW, IVAL);
  YY_BREAK   YY_BREAK
 case 165:  case 165:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 941 "loader.l"  #line 942 "loader.l"
 SET_RESIST(op, ATNR_PARALYZE, IVAL);  SET_RESIST(op, ATNR_PARALYZE, IVAL);
  YY_BREAK   YY_BREAK
 case 166:  case 166:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 942 "loader.l"  #line 943 "loader.l"
 SET_RESIST(op, ATNR_TURN_UNDEAD, IVAL);  SET_RESIST(op, ATNR_TURN_UNDEAD, IVAL);
  YY_BREAK   YY_BREAK
 case 167:  case 167:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 943 "loader.l"  #line 944 "loader.l"
 SET_RESIST(op, ATNR_FEAR, IVAL);  SET_RESIST(op, ATNR_FEAR, IVAL);
  YY_BREAK   YY_BREAK
 case 168:  case 168:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 944 "loader.l"  #line 945 "loader.l"
 SET_RESIST(op, ATNR_CANCELLATION, IVAL);  SET_RESIST(op, ATNR_CANCELLATION, IVAL);
  YY_BREAK   YY_BREAK
 case 169:  case 169:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 945 "loader.l"  #line 946 "loader.l"
 SET_RESIST(op, ATNR_DEPLETE, IVAL);  SET_RESIST(op, ATNR_DEPLETE, IVAL);
  YY_BREAK   YY_BREAK
 case 170:  case 170:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 946 "loader.l"  #line 947 "loader.l"
 SET_RESIST(op, ATNR_DEATH, IVAL);  SET_RESIST(op, ATNR_DEATH, IVAL);
  YY_BREAK   YY_BREAK
 case 171:  case 171:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 947 "loader.l"  #line 948 "loader.l"
 SET_RESIST(op, ATNR_CHAOS, IVAL);  SET_RESIST(op, ATNR_CHAOS, IVAL);
  YY_BREAK   YY_BREAK
 case 172:  case 172:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 948 "loader.l"  #line 949 "loader.l"
 SET_RESIST(op, ATNR_COUNTERSPELL, IVAL);  SET_RESIST(op, ATNR_COUNTERSPELL, IVAL);
  YY_BREAK   YY_BREAK
 case 173:  case 173:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 949 "loader.l"  #line 950 "loader.l"
 SET_RESIST(op, ATNR_GODPOWER, IVAL);  SET_RESIST(op, ATNR_GODPOWER, IVAL);
  YY_BREAK   YY_BREAK
 case 174:  case 174:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 950 "loader.l"  #line 951 "loader.l"
 SET_RESIST(op, ATNR_HOLYWORD, IVAL);  SET_RESIST(op, ATNR_HOLYWORD, IVAL);
  YY_BREAK   YY_BREAK
 case 175:  case 175:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 951 "loader.l"  #line 952 "loader.l"
 SET_RESIST(op, ATNR_BLIND, IVAL);  SET_RESIST(op, ATNR_BLIND, IVAL);
  YY_BREAK   YY_BREAK
 case 176:  case 176:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 952 "loader.l"  #line 953 "loader.l"
 SET_RESIST(op, ATNR_INTERNAL, IVAL);  SET_RESIST(op, ATNR_INTERNAL, IVAL);
  YY_BREAK   YY_BREAK
 case 177:  case 177:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 953 "loader.l"  #line 954 "loader.l"
 SET_RESIST(op, ATNR_LIFE_STEALING, IVAL);  SET_RESIST(op, ATNR_LIFE_STEALING, IVAL);
  YY_BREAK   YY_BREAK
 case 178:  case 178:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 954 "loader.l"  #line 955 "loader.l"
 SET_RESIST(op, ATNR_DISEASE, IVAL);  SET_RESIST(op, ATNR_DISEASE, IVAL);
  YY_BREAK   YY_BREAK
 /* Old style resistances */  /* Old style resistances */
 case 179:  case 179:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 957 "loader.l"  #line 958 "loader.l"
 set_protection(op, IVAL, RESIST_IMMUNE);  set_protection(op, IVAL, RESIST_IMMUNE);
  YY_BREAK   YY_BREAK
 case 180:  case 180:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 958 "loader.l"  #line 959 "loader.l"
 set_protection(op, IVAL, RESIST_PROT);  set_protection(op, IVAL, RESIST_PROT);
  YY_BREAK   YY_BREAK
 case 181:  case 181:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 959 "loader.l"  #line 960 "loader.l"
 set_protection(op, IVAL, RESIST_VULN);  set_protection(op, IVAL, RESIST_VULN);
  YY_BREAK   YY_BREAK
 /* old values - keep them around for now, but they should be removed at some point */  /* old values - keep them around for now, but they should be removed at some point */
 case 182:  case 182:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 962 "loader.l"  #line 963 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_READY_RANGE, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_READY_RANGE, IVAL);
  YY_BREAK   YY_BREAK
 case 183:  case 183:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 963 "loader.l"  #line 964 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_READY_RANGE, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_READY_RANGE, IVAL);
  YY_BREAK   YY_BREAK
 case 184:  case 184:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 964 "loader.l"  #line 965 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_READY_RANGE, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_READY_RANGE, IVAL);
  YY_BREAK   YY_BREAK
 case 185:  case 185:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 965 "loader.l"  #line 966 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_USE_RANGE, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_USE_RANGE, IVAL);
  YY_BREAK   YY_BREAK
 case 186:  case 186:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 967 "loader.l"  #line 968 "loader.l"
 op->attack_movement = IVAL;  op->attack_movement = IVAL;
  YY_BREAK   YY_BREAK
 case 187:  case 187:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 968 "loader.l"  #line 969 "loader.l"
 op->move_status = IVAL;  op->move_status = IVAL;
  YY_BREAK   YY_BREAK
 case 188:  case 188:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 969 "loader.l"  #line 970 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_CONFUSED, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_CONFUSED, IVAL);
  YY_BREAK   YY_BREAK
 case 189:  case 189:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 970 "loader.l"  #line 971 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_STEALTH, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_STEALTH, IVAL);
  YY_BREAK   YY_BREAK
 case 190:  case 190:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 971 "loader.l"  #line 972 "loader.l"
 add_button_link(op, op->map, IVAL);  add_button_link(op, op->map, IVAL);
  YY_BREAK   YY_BREAK
 case 191:  case 191:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 972 "loader.l"  #line 973 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_CURSED, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_CURSED, IVAL);
  YY_BREAK   YY_BREAK
 case 192:  case 192:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 973 "loader.l"  #line 974 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_DAMNED, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_DAMNED, IVAL);
  YY_BREAK   YY_BREAK
 case 193:  case 193:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 974 "loader.l"  #line 975 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_SEE_ANYWHERE, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_SEE_ANYWHERE, IVAL);
  YY_BREAK   YY_BREAK
 case 194:  case 194:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 975 "loader.l"  #line 976 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_KNOWN_MAGICAL, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_KNOWN_MAGICAL, IVAL);
  YY_BREAK   YY_BREAK
 case 195:  case 195:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 976 "loader.l"  #line 977 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_KNOWN_CURSED, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_KNOWN_CURSED, IVAL);
  YY_BREAK   YY_BREAK
 case 196:  case 196:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 977 "loader.l"  #line 978 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_CAN_USE_SKILL, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_CAN_USE_SKILL, IVAL);
  YY_BREAK   YY_BREAK
 case 197:  case 197:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 978 "loader.l"  #line 979 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_BEEN_APPLIED, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_BEEN_APPLIED, IVAL);
  YY_BREAK   YY_BREAK
 case 198:  case 198:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 979 "loader.l"  #line 980 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_READY_SCROLL, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_READY_SCROLL, IVAL);
  YY_BREAK   YY_BREAK
 case 199:  case 199:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 980 "loader.l"  #line 981 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_USE_ROD, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_USE_ROD, IVAL);
  YY_BREAK   YY_BREAK
 case 200:  case 200:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 981 "loader.l"  #line 982 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_USE_HORN, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_USE_HORN, IVAL);
  YY_BREAK   YY_BREAK
 case 201:  case 201:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 982 "loader.l"  #line 983 "loader.l"
 op->expmul = FVAL;  op->expmul = FVAL;
  YY_BREAK   YY_BREAK
 case 202:  case 202:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 983 "loader.l"  #line 984 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_UNIQUE, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_UNIQUE, IVAL);
  YY_BREAK   YY_BREAK
 case 203:  case 203:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 984 "loader.l"  #line 985 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_MAKE_INVIS, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_MAKE_INVIS, IVAL);
  YY_BREAK   YY_BREAK
 case 204:  case 204:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 985 "loader.l"  #line 986 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_INV_LOCKED, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_INV_LOCKED, IVAL);
  YY_BREAK   YY_BREAK
 case 205:  case 205:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 986 "loader.l"  #line 987 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_IS_WOODED, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_IS_WOODED, IVAL);
  YY_BREAK   YY_BREAK
 case 206:  case 206:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 987 "loader.l"  #line 988 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_IS_HILLY, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_IS_HILLY, IVAL);
  YY_BREAK   YY_BREAK
 case 207:  case 207:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 988 "loader.l"  #line 989 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_IS_WATER, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_IS_WATER, IVAL);
  YY_BREAK   YY_BREAK
 case 208:  case 208:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 989 "loader.l"  #line 990 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_READY_SKILL, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_READY_SKILL, IVAL);
  YY_BREAK   YY_BREAK
 case 209:  case 209:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 990 "loader.l"  #line 991 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_READY_WEAPON, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_READY_WEAPON, IVAL);
  YY_BREAK   YY_BREAK
 case 210:  case 210:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 991 "loader.l"  #line 992 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_NO_SKILL_IDENT, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_NO_SKILL_IDENT, IVAL);
  YY_BREAK   YY_BREAK
 case 211:  case 211:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 992 "loader.l"  #line 993 "loader.l"
 op->glow_radius = IVAL;  op->glow_radius = IVAL;
  YY_BREAK   YY_BREAK
 case 212:  case 212:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 993 "loader.l"  #line 994 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_BLIND, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_BLIND, IVAL);
  YY_BREAK   YY_BREAK
 case 213:  case 213:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 994 "loader.l"  #line 995 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_SEE_IN_DARK, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_SEE_IN_DARK, IVAL);
  YY_BREAK   YY_BREAK
 case 214:  case 214:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 995 "loader.l"  #line 996 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_IS_CAULDRON, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_IS_CAULDRON, IVAL);
  YY_BREAK   YY_BREAK
 case 215:  case 215:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 996 "loader.l"  #line 997 "loader.l"
 op->randomitems = find_treasurelist(yval());  op->randomitems = find_treasurelist(yval());
  YY_BREAK   YY_BREAK
 case 216:  case 216:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 997 "loader.l"  #line 998 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_NO_STEAL, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_NO_STEAL, IVAL);
  YY_BREAK   YY_BREAK
 case 217:  case 217:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 998 "loader.l"  #line 999 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_ONE_HIT, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_ONE_HIT, IVAL);
  YY_BREAK   YY_BREAK
 case 218:  case 218:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 999 "loader.l"  #line 1000 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_BERSERK, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_BERSERK, IVAL);
  YY_BREAK   YY_BREAK
 case 219:  case 219:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1001 "loader.l"  #line 1002 "loader.l"
 { /* Some archetypes have these values in them */ }  { /* Some archetypes have these values in them */ }
  YY_BREAK   YY_BREAK
 case 220:  case 220:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1002 "loader.l"  #line 1003 "loader.l"
 { /* Probably the pupland archetypes - I imagined */ }  { /* Probably the pupland archetypes - I imagined */ }
  YY_BREAK   YY_BREAK
 case 221:  case 221:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1003 "loader.l"  #line 1004 "loader.l"
 { /* That these are for the new combat code */ }  { /* That these are for the new combat code */ }
  YY_BREAK   YY_BREAK
 case 222:  case 222:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1004 "loader.l"  #line 1005 "loader.l"
 { /* just ignore for now */ }  { /* just ignore for now */ }
  YY_BREAK   YY_BREAK
 case 223:  case 223:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1005 "loader.l"  #line 1006 "loader.l"
 { }  { }
  YY_BREAK   YY_BREAK
 case 224:  case 224:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1006 "loader.l"  #line 1007 "loader.l"
 op->weapontype = IVAL;  op->weapontype = IVAL;
  YY_BREAK   YY_BREAK
 case 225:  case 225:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1007 "loader.l"  #line 1008 "loader.l"
 op->tooltype = IVAL;  op->tooltype = IVAL;
  YY_BREAK   YY_BREAK
 case 226:  case 226:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1008 "loader.l"  #line 1009 "loader.l"
 op->casting_time = FVAL;  op->casting_time = FVAL;
  YY_BREAK   YY_BREAK
 case 227:  case 227:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1009 "loader.l"  #line 1010 "loader.l"
 op->elevation = IVAL;  op->elevation = IVAL;
  YY_BREAK   YY_BREAK
 case 228:  case 228:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1010 "loader.l"  #line 1011 "loader.l"
 op->smoothlevel = IVAL;  op->smoothlevel = IVAL;
  YY_BREAK   YY_BREAK
 case 229:  case 229:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1011 "loader.l"  #line 1012 "loader.l"
 op->client_type = IVAL;  op->client_type = IVAL;
  YY_BREAK   YY_BREAK
 case 230:  case 230:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1012 "loader.l"  #line 1013 "loader.l"
 set_body_info(op, yytext);  set_body_info(op, yytext);
  YY_BREAK   YY_BREAK
 case 231:  case 231:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1013 "loader.l"  #line 1014 "loader.l"
 op->duration = IVAL;  op->duration = IVAL;
  YY_BREAK   YY_BREAK
 case 232:  case 232:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1014 "loader.l"  #line 1015 "loader.l"
 op->range = IVAL;  op->range = IVAL;
  YY_BREAK   YY_BREAK
 case 233:  case 233:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1015 "loader.l"  #line 1016 "loader.l"
 op->range_modifier = IVAL;  op->range_modifier = IVAL;
  YY_BREAK   YY_BREAK
 case 234:  case 234:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1016 "loader.l"  #line 1017 "loader.l"
 op->dam_modifier = IVAL;  op->dam_modifier = IVAL;
  YY_BREAK   YY_BREAK
 case 235:  case 235:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1017 "loader.l"  #line 1018 "loader.l"
 op->duration_modifier = IVAL;  op->duration_modifier = IVAL;
  YY_BREAK   YY_BREAK
 case 236:  case 236:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1018 "loader.l"  #line 1019 "loader.l"
 SET_OR_CLEAR_FLAG( op, FLAG_IS_BUILDABLE, IVAL );  SET_OR_CLEAR_FLAG( op, FLAG_IS_BUILDABLE, IVAL );
  YY_BREAK   YY_BREAK
 case 237:  case 237:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1020 "loader.l"  #line 1021 "loader.l"
 {  {
     char *yv=yval();      char *yv=yval();
     if (*yv=='\0')      if (*yv=='\0')
Line 4072
 
Line 4073
  YY_BREAK   YY_BREAK
 case 238:  case 238:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1028 "loader.l"  #line 1029 "loader.l"
 {  {
     char *yv=yval();      char *yv=yval();
     if (*yv=='\0')      if (*yv=='\0')
Line 4083
 
Line 4084
  YY_BREAK   YY_BREAK
 case 239:  case 239:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1036 "loader.l"  #line 1037 "loader.l"
 {  {
     char *yv=yval();      char *yv=yval();
     if (*yv=='\0')      if (*yv=='\0')
Line 4094
 
Line 4095
  YY_BREAK   YY_BREAK
 case 240:  case 240:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1044 "loader.l"  #line 1045 "loader.l"
 {  {
     char *yv=yval();      char *yv=yval();
     if (*yv=='\0')      if (*yv=='\0')
Line 4105
 
Line 4106
  YY_BREAK   YY_BREAK
 case 241:  case 241:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1052 "loader.l"  #line 1053 "loader.l"
 {  {
     char *yv=yval();      char *yv=yval();
     if (*yv=='\0')      if (*yv=='\0')
Line 4116
 
Line 4117
  YY_BREAK   YY_BREAK
 case 242:  case 242:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1060 "loader.l"  #line 1061 "loader.l"
 {  {
     char *yv=yval();      char *yv=yval();
     if (*yv=='\0')      if (*yv=='\0')
Line 4127
 
Line 4128
  YY_BREAK   YY_BREAK
 case 243:  case 243:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1067 "loader.l"  #line 1068 "loader.l"
 {  {
     char *yv=yval();      char *yv=yval();
     if (*yv=='\0')      if (*yv=='\0')
Line 4138
 
Line 4139
  YY_BREAK   YY_BREAK
 case 244:  case 244:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1075 "loader.l"  #line 1076 "loader.l"
 {  {
     char *yv=yval();      char *yv=yval();
     if (*yv=='\0')      if (*yv=='\0')
Line 4149
 
Line 4150
  YY_BREAK   YY_BREAK
 case 245:  case 245:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1083 "loader.l"  #line 1084 "loader.l"
 {  {
     char *yv=yval();      char *yv=yval();
     if (*yv=='\0')      if (*yv=='\0')
Line 4160
 
Line 4161
  YY_BREAK   YY_BREAK
 case 246:  case 246:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1090 "loader.l"  #line 1091 "loader.l"
 {  {
     char *yv=yval();      char *yv=yval();
     if (*yv=='\0')      if (*yv=='\0')
Line 4171
 
Line 4172
  YY_BREAK   YY_BREAK
 case 247:  case 247:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1098 "loader.l"  #line 1099 "loader.l"
 {  {
     char *yv=yval();      char *yv=yval();
     if (*yv=='\0')      if (*yv=='\0')
Line 4182
 
Line 4183
  YY_BREAK   YY_BREAK
 case 248:  case 248:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1106 "loader.l"  #line 1107 "loader.l"
 {  {
     char *yv=yval();      char *yv=yval();
     if (*yv=='\0')      if (*yv=='\0')
Line 4193
 
Line 4194
  YY_BREAK   YY_BREAK
 case 249:  case 249:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1113 "loader.l"  #line 1114 "loader.l"
 {  {
     char *yv=yval();      char *yv=yval();
     if (*yv=='\0')      if (*yv=='\0')
Line 4204
 
Line 4205
  YY_BREAK   YY_BREAK
 case 250:  case 250:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1121 "loader.l"  #line 1122 "loader.l"
 {  {
     char *yv=yval();      char *yv=yval();
     if (*yv=='\0')      if (*yv=='\0')
Line 4215
 
Line 4216
  YY_BREAK   YY_BREAK
 case 251:  case 251:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1129 "loader.l"  #line 1130 "loader.l"
 {  {
     char *yv=yval();      char *yv=yval();
     if (*yv=='\0')      if (*yv=='\0')
Line 4226
 
Line 4227
  YY_BREAK   YY_BREAK
 case 252:  case 252:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1136 "loader.l"  #line 1137 "loader.l"
 {  {
     char *yv=yval();      char *yv=yval();
     if (*yv=='\0')      if (*yv=='\0')
Line 4237
 
Line 4238
  YY_BREAK   YY_BREAK
 case 253:  case 253:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1144 "loader.l"  #line 1145 "loader.l"
 {  {
     char *yv=yval();      char *yv=yval();
     if (*yv=='\0')      if (*yv=='\0')
Line 4248
 
Line 4249
  YY_BREAK   YY_BREAK
 case 254:  case 254:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1152 "loader.l"  #line 1153 "loader.l"
 {  {
     char *yv=yval();      char *yv=yval();
     if (*yv=='\0')      if (*yv=='\0')
Line 4259
 
Line 4260
  YY_BREAK   YY_BREAK
 case 255:  case 255:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1159 "loader.l"  #line 1160 "loader.l"
 {  {
     char *yv=yval();      char *yv=yval();
     if (*yv=='\0')      if (*yv=='\0')
Line 4270
 
Line 4271
  YY_BREAK   YY_BREAK
 case 256:  case 256:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1167 "loader.l"  #line 1168 "loader.l"
 {  {
     char *yv=yval();      char *yv=yval();
     if (*yv=='\0')      if (*yv=='\0')
Line 4281
 
Line 4282
  YY_BREAK   YY_BREAK
 case 257:  case 257:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1175 "loader.l"  #line 1176 "loader.l"
 {  {
     char *yv=yval();      char *yv=yval();
     if (*yv=='\0')      if (*yv=='\0')
Line 4292
 
Line 4293
  YY_BREAK   YY_BREAK
 case 258:  case 258:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1182 "loader.l"  #line 1183 "loader.l"
 {  {
     char *yv=yval();      char *yv=yval();
     if (*yv=='\0')      if (*yv=='\0')
Line 4303
 
Line 4304
  YY_BREAK   YY_BREAK
 case 259:  case 259:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1190 "loader.l"  #line 1191 "loader.l"
 {  {
     char *yv=yval();      char *yv=yval();
     if (*yv=='\0')      if (*yv=='\0')
Line 4314
 
Line 4315
  YY_BREAK   YY_BREAK
 case 260:  case 260:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1198 "loader.l"  #line 1199 "loader.l"
 {  {
     char *yv=yval();      char *yv=yval();
     if (*yv=='\0')      if (*yv=='\0')
Line 4325
 
Line 4326
  YY_BREAK   YY_BREAK
 case 261:  case 261:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1205 "loader.l"  #line 1206 "loader.l"
 {  {
     char *yv=yval();      char *yv=yval();
     if (*yv=='\0')      if (*yv=='\0')
Line 4336
 
Line 4337
  YY_BREAK   YY_BREAK
 case 262:  case 262:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1213 "loader.l"  #line 1214 "loader.l"
 {  {
     char *yv=yval();      char *yv=yval();
     if (*yv=='\0')      if (*yv=='\0')
Line 4347
 
Line 4348
  YY_BREAK   YY_BREAK
 case 263:  case 263:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1221 "loader.l"  #line 1222 "loader.l"
 {  {
     char *yv=yval();      char *yv=yval();
     if (*yv=='\0')      if (*yv=='\0')
Line 4358
 
Line 4359
  YY_BREAK   YY_BREAK
 case 264:  case 264:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1228 "loader.l"  #line 1229 "loader.l"
 {  {
     char *yv=yval();      char *yv=yval();
     if (*yv=='\0')      if (*yv=='\0')
Line 4369
 
Line 4370
  YY_BREAK   YY_BREAK
 case 265:  case 265:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1236 "loader.l"  #line 1237 "loader.l"
 {  {
     char *yv=yval();      char *yv=yval();
     if (*yv=='\0')      if (*yv=='\0')
Line 4380
 
Line 4381
  YY_BREAK   YY_BREAK
 case 266:  case 266:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1244 "loader.l"  #line 1245 "loader.l"
 {  {
     char *yv=yval();      char *yv=yval();
     if (*yv=='\0')      if (*yv=='\0')
Line 4391
 
Line 4392
  YY_BREAK   YY_BREAK
 case 267:  case 267:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1251 "loader.l"  #line 1252 "loader.l"
 {  {
     char *yv=yval();      char *yv=yval();
     if (*yv=='\0')      if (*yv=='\0')
Line 4402
 
Line 4403
  YY_BREAK   YY_BREAK
 case 268:  case 268:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1259 "loader.l"  #line 1260 "loader.l"
 {  {
     char *yv=yval();      char *yv=yval();
     if (*yv=='\0')      if (*yv=='\0')
Line 4413
 
Line 4414
  YY_BREAK   YY_BREAK
 case 269:  case 269:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1267 "loader.l"  #line 1268 "loader.l"
 {  {
     char *yv=yval();      char *yv=yval();
     if (*yv=='\0')      if (*yv=='\0')
Line 4424
 
Line 4425
  YY_BREAK   YY_BREAK
 case 270:  case 270:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1274 "loader.l"  #line 1275 "loader.l"
 {  {
     char *yv=yval();      char *yv=yval();
     if (*yv=='\0')      if (*yv=='\0')
Line 4435
 
Line 4436
  YY_BREAK   YY_BREAK
 case 271:  case 271:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1282 "loader.l"  #line 1283 "loader.l"
 {  {
     char *yv=yval();      char *yv=yval();
     if (*yv=='\0')      if (*yv=='\0')
Line 4446
 
Line 4447
  YY_BREAK   YY_BREAK
 case 272:  case 272:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1290 "loader.l"  #line 1291 "loader.l"
 {  {
     char *yv=yval();      char *yv=yval();
     if (*yv=='\0')      if (*yv=='\0')
Line 4457
 
Line 4458
  YY_BREAK   YY_BREAK
 case 273:  case 273:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1298 "loader.l"  #line 1299 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Script (current weapon) without val\n");   if (*yv=='\0') LOG(llevError,"Script (current weapon) without val\n");
Line 4469
 
Line 4470
  YY_BREAK   YY_BREAK
 case 274:  case 274:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1307 "loader.l"  #line 1308 "loader.l"
 {/* ignore empty lines, newlines we don't do above */}  {/* ignore empty lines, newlines we don't do above */}
  YY_BREAK   YY_BREAK
 case 275:  case 275:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1308 "loader.l"  #line 1309 "loader.l"
 {}  {}
  YY_BREAK   YY_BREAK
 case YY_STATE_EOF(INITIAL):  case YY_STATE_EOF(INITIAL):
 case YY_STATE_EOF(MESSAGE):  case YY_STATE_EOF(MESSAGE):
 case YY_STATE_EOF(LORE):  case YY_STATE_EOF(LORE):
 case YY_STATE_EOF(SCRIPT):  case YY_STATE_EOF(SCRIPT):
 #line 1310 "loader.l"  #line 1311 "loader.l"
 {/* If we got an error, return the error.  Otherwise, return that we got EOF */  {/* If we got an error, return the error.  Otherwise, return that we got EOF */
      if (lex_error!=0) return lex_error; else return LL_EOF;}       if (lex_error!=0) return lex_error; else return LL_EOF;}
  YY_BREAK   YY_BREAK
 case 276:  case 276:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1312 "loader.l"  #line 1313 "loader.l"
 { add_key_value(op); }  { add_key_value(op); }
  YY_BREAK   YY_BREAK
 case 277:  case 277:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 1313 "loader.l"  #line 1314 "loader.l"
 ECHO;  ECHO;
  YY_BREAK   YY_BREAK
 #line 4499 "loader.c"  #line 4500 "loader.c"
   
  case YY_END_OF_BUFFER:   case YY_END_OF_BUFFER:
  {   {
Line 5381
 
Line 5382
  return 0;   return 0;
  }   }
 #endif  #endif
 #line 1313 "loader.l"  #line 1314 "loader.l"
   
   
   


Legend:
line(s) removed in v.1.76 
line(s) changed
 line(s) added in v.1.77

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:09