Difference for common/loader.c from version 1.24 to 1.25


version 1.24 version 1.25
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.24 2002/06/07 07:00:39 mwedel Exp $   * $Header: /cvsroot/crossfire/crossfire/common/loader.c,v 1.25 2002/06/09 07:59:30 mwedel Exp $
  */   */
   
 #define FLEX_SCANNER  #define FLEX_SCANNER
Line 1761
 
Line 1761
 #line 2 "loader.l"  #line 2 "loader.l"
 /*  /*
  * static char *rcsid_object_c =   * static char *rcsid_object_c =
  *   "$Id: loader.c,v 1.24 2002/06/07 07:00:39 mwedel Exp $";   *   "$Id: loader.c,v 1.25 2002/06/09 07:59:30 mwedel Exp $";
  */   */
   
 /*  /*
Line 1909
 
Line 1909
   
 #define IVAL atoi(yval())  #define IVAL atoi(yval())
 #define FVAL atof(yval())  #define FVAL atof(yval())
   extern int arch_init;
   
 /* Put this here since it is used below */  /* Put this here since it is used below */
 static void set_protection(object *op, uint32 mask, uint16 pro_val)  static void set_protection(object *op, uint32 mask, uint16 pro_val)
Line 2081
 
Line 2082
  register char *yy_cp = NULL, *yy_bp = NULL;   register char *yy_cp = NULL, *yy_bp = NULL;
  register int yy_act;   register int yy_act;
   
 #line 181 "loader.l"  #line 182 "loader.l"
   
   
   
Line 2180
 
Line 2181
 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 191 "loader.l"  #line 192 "loader.l"
 { BEGIN( MESSAGE ); msgbuf[0]='\0'; }  { BEGIN( MESSAGE ); msgbuf[0]='\0'; }
  YY_BREAK   YY_BREAK
 case 2:  case 2:
Line 2188
 
Line 2189
 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 192 "loader.l"  #line 193 "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 2201
 
Line 2202
  YY_BREAK   YY_BREAK
 case 3:  case 3:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 201 "loader.l"  #line 202 "loader.l"
 {strcat(msgbuf, yytext); strcat(msgbuf,"\n"); }  {strcat(msgbuf, yytext); strcat(msgbuf,"\n"); }
  YY_BREAK   YY_BREAK
 case 4:  case 4:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 202 "loader.l"  #line 203 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') {   if (*yv=='\0') {
      LOG(llevError,"Object lacks name.\n");       LOG(llevError,"Object lacks name.\n");
      return LL_IGNORED;       return LL_IGNORED;
  }   }
            if (!arch_init) {
        LOG(llevError,"Got object info when not in arch_init (%s)?\n", yv);
    } else {
  if (op->arch!=NULL) op->arch->name=add_string(yv);   if (op->arch!=NULL) op->arch->name=add_string(yv);
  op->name = add_string(yv);   op->name = add_string(yv);
      }       }
        }
  YY_BREAK   YY_BREAK
 case 5:  case 5:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 212 "loader.l"  #line 217 "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 2228
 
Line 2233
  YY_BREAK   YY_BREAK
 case 6:  case 6:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 217 "loader.l"  #line 222 "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 2237
 
Line 2242
  YY_BREAK   YY_BREAK
 case 7:  case 7:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 222 "loader.l"  #line 227 "loader.l"
 FREE_AND_COPY(op->race,yval());  FREE_AND_COPY(op->race,yval());
  YY_BREAK   YY_BREAK
 case 8:  case 8:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 223 "loader.l"  #line 228 "loader.l"
 FREE_AND_COPY(op->slaying, yval());  FREE_AND_COPY(op->slaying, yval());
  YY_BREAK   YY_BREAK
 case 9:  case 9:
Line 2250
 
Line 2255
 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 224 "loader.l"  #line 229 "loader.l"
 LOG(llevError,"Got depreciated Inventory command?\n");  LOG(llevError,"Got depreciated Inventory command?\n");
  YY_BREAK   YY_BREAK
 case 10:  case 10:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 227 "loader.l"  #line 232 "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 2280
 
Line 2285
  YY_BREAK   YY_BREAK
 case 11:  case 11:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 249 "loader.l"  #line 254 "loader.l"
 op->other_arch=find_archetype(yval());  op->other_arch=find_archetype(yval());
  YY_BREAK   YY_BREAK
 case 12:  case 12:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 250 "loader.l"  #line 255 "loader.l"
 {  {
  if (strcmp (yval(), "NONE") == 0) {   if (strcmp (yval(), "NONE") == 0) {
      op->animation_id = 0;       op->animation_id = 0;
Line 2301
 
Line 2306
 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 260 "loader.l"  #line 265 "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 2313
 
Line 2318
 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 266 "loader.l"  #line 271 "loader.l"
 { /* We do some specialized handling to handle legacy cases of  { /* We do some specialized handling to handle legacy cases of
  * name_pl.  If the object doesn't have a name_pl, we just   * name_pl.  If the object doesn't have a name_pl, we just
  * use the object name - this isn't perfect (things won't be   * use the object name - this isn't perfect (things won't be
Line 2336
 
Line 2341
  YY_BREAK   YY_BREAK
 case 15:  case 15:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 285 "loader.l"  #line 290 "loader.l"
 op->last_heal = IVAL;  op->last_heal = IVAL;
  YY_BREAK   YY_BREAK
 case 16:  case 16:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 286 "loader.l"  #line 291 "loader.l"
 op->last_sp = IVAL;  op->last_sp = IVAL;
  YY_BREAK   YY_BREAK
 case 17:  case 17:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 287 "loader.l"  #line 292 "loader.l"
 op->last_grace = IVAL;  op->last_grace = IVAL;
  YY_BREAK   YY_BREAK
 case 18:  case 18:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 288 "loader.l"  #line 293 "loader.l"
 op->last_eat = IVAL;  op->last_eat = IVAL;
  YY_BREAK   YY_BREAK
 case 19:  case 19:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 289 "loader.l"  #line 294 "loader.l"
 { op->speed = FVAL;  { op->speed = FVAL;
  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;
  if (!(map_flags & MAP_STYLE)) update_ob_speed(op);   if (!(map_flags & MAP_STYLE)) update_ob_speed(op);
Line 2365
 
Line 2370
  YY_BREAK   YY_BREAK
 case 20:  case 20:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 294 "loader.l"  #line 299 "loader.l"
 op->speed_left = FVAL;  op->speed_left = FVAL;
  YY_BREAK   YY_BREAK
 case 21:  case 21:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 295 "loader.l"  #line 300 "loader.l"
 { SET_SLOW_PENALTY(op,FVAL);  { SET_SLOW_PENALTY(op,FVAL);
  SET_FLAG(op, FLAG_SLOW_MOVE);   SET_FLAG(op, FLAG_SLOW_MOVE);
      }       }
  YY_BREAK   YY_BREAK
 case 22:  case 22:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 298 "loader.l"  #line 303 "loader.l"
 op->face = &new_faces[FindFace(yval(), 0)];  op->face = &new_faces[FindFace(yval(), 0)];
  YY_BREAK   YY_BREAK
 case 23:  case 23:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 299 "loader.l"  #line 304 "loader.l"
 op->stats.Str = IVAL;  op->stats.Str = IVAL;
  YY_BREAK   YY_BREAK
 case 24:  case 24:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 300 "loader.l"  #line 305 "loader.l"
 op->stats.Dex = IVAL;  op->stats.Dex = IVAL;
  YY_BREAK   YY_BREAK
 case 25:  case 25:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 301 "loader.l"  #line 306 "loader.l"
 op->stats.Con = IVAL;  op->stats.Con = IVAL;
  YY_BREAK   YY_BREAK
 case 26:  case 26:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 302 "loader.l"  #line 307 "loader.l"
 op->stats.Wis = IVAL;  op->stats.Wis = IVAL;
  YY_BREAK   YY_BREAK
 case 27:  case 27:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 303 "loader.l"  #line 308 "loader.l"
 op->stats.Cha = IVAL;  op->stats.Cha = IVAL;
  YY_BREAK   YY_BREAK
 case 28:  case 28:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 304 "loader.l"  #line 309 "loader.l"
 op->stats.Int = IVAL;  op->stats.Int = IVAL;
  YY_BREAK   YY_BREAK
 case 29:  case 29:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 305 "loader.l"  #line 310 "loader.l"
 op->stats.Pow = IVAL;  op->stats.Pow = IVAL;
  YY_BREAK   YY_BREAK
 case 30:  case 30:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 306 "loader.l"  #line 311 "loader.l"
 op->stats.hp = IVAL;  op->stats.hp = IVAL;
  YY_BREAK   YY_BREAK
 case 31:  case 31:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 307 "loader.l"  #line 312 "loader.l"
 op->stats.maxhp = IVAL;  op->stats.maxhp = IVAL;
  YY_BREAK   YY_BREAK
 case 32:  case 32:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 308 "loader.l"  #line 313 "loader.l"
 op->stats.sp = IVAL;  op->stats.sp = IVAL;
  YY_BREAK   YY_BREAK
 case 33:  case 33:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 309 "loader.l"  #line 314 "loader.l"
 op->stats.maxsp = IVAL;  op->stats.maxsp = IVAL;
  YY_BREAK   YY_BREAK
 case 34:  case 34:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 310 "loader.l"  #line 315 "loader.l"
 op->stats.grace = IVAL;  op->stats.grace = IVAL;
  YY_BREAK   YY_BREAK
 case 35:  case 35:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 311 "loader.l"  #line 316 "loader.l"
 op->stats.maxgrace = IVAL;  op->stats.maxgrace = IVAL;
  YY_BREAK   YY_BREAK
 case 36:  case 36:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 312 "loader.l"  #line 317 "loader.l"
 op->stats.exp = atol(yval());  op->stats.exp = atol(yval());
  YY_BREAK   YY_BREAK
 case 37:  case 37:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 313 "loader.l"  #line 318 "loader.l"
 op->stats.food = IVAL;  op->stats.food = IVAL;
  YY_BREAK   YY_BREAK
 case 38:  case 38:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 314 "loader.l"  #line 319 "loader.l"
 op->stats.dam = IVAL;  op->stats.dam = IVAL;
  YY_BREAK   YY_BREAK
 case 39:  case 39:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 315 "loader.l"  #line 320 "loader.l"
 op->stats.wc = IVAL;  op->stats.wc = IVAL;
  YY_BREAK   YY_BREAK
 case 40:  case 40:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 316 "loader.l"  #line 321 "loader.l"
 op->stats.ac = IVAL;  op->stats.ac = IVAL;
  YY_BREAK   YY_BREAK
 case 41:  case 41:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 317 "loader.l"  #line 322 "loader.l"
 {op->x = IVAL; op->ox= op->x; }  {op->x = IVAL; op->ox= op->x; }
  YY_BREAK   YY_BREAK
 case 42:  case 42:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 318 "loader.l"  #line 323 "loader.l"
 {op->y = IVAL; op->oy= op->y; }  {op->y = IVAL; op->oy= op->y; }
  YY_BREAK   YY_BREAK
 case 43:  case 43:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 319 "loader.l"  #line 324 "loader.l"
 op->nrof= atol(yval());  op->nrof= atol(yval());
  YY_BREAK   YY_BREAK
 case 44:  case 44:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 320 "loader.l"  #line 325 "loader.l"
 op->level = IVAL;  op->level = IVAL;
  YY_BREAK   YY_BREAK
 case 45:  case 45:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 321 "loader.l"  #line 326 "loader.l"
 op->direction = IVAL;  op->direction = IVAL;
  YY_BREAK   YY_BREAK
 case 46:  case 46:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 322 "loader.l"  #line 327 "loader.l"
 op->type = IVAL;  op->type = IVAL;
  YY_BREAK   YY_BREAK
 case 47:  case 47:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 323 "loader.l"  #line 328 "loader.l"
 op->material = IVAL;  op->material = IVAL;
  YY_BREAK   YY_BREAK
 case 48:  case 48:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 324 "loader.l"  #line 329 "loader.l"
 op->value = IVAL;  op->value = IVAL;
  YY_BREAK   YY_BREAK
 case 49:  case 49:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 325 "loader.l"  #line 330 "loader.l"
 op->weight = atol(yval());  op->weight = atol(yval());
  YY_BREAK   YY_BREAK
 case 50:  case 50:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 326 "loader.l"  #line 331 "loader.l"
 op->carrying = atol(yval());  op->carrying = atol(yval());
  YY_BREAK   YY_BREAK
 case 51:  case 51:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 327 "loader.l"  #line 332 "loader.l"
 op->attacktype = IVAL;  op->attacktype = IVAL;
  YY_BREAK   YY_BREAK
 case 52:  case 52:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 328 "loader.l"  #line 333 "loader.l"
 op->path_attuned = IVAL;  op->path_attuned = IVAL;
  YY_BREAK   YY_BREAK
 case 53:  case 53:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 329 "loader.l"  #line 334 "loader.l"
 op->path_repelled = IVAL;  op->path_repelled = IVAL;
  YY_BREAK   YY_BREAK
 case 54:  case 54:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 330 "loader.l"  #line 335 "loader.l"
 op->path_denied = IVAL;  op->path_denied = IVAL;
  YY_BREAK   YY_BREAK
 case 55:  case 55:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 331 "loader.l"  #line 336 "loader.l"
 op->invisible = IVAL;  op->invisible = IVAL;
  YY_BREAK   YY_BREAK
 case 56:  case 56:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 332 "loader.l"  #line 337 "loader.l"
 op->magic = IVAL;  op->magic = IVAL;
  YY_BREAK   YY_BREAK
 case 57:  case 57:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 333 "loader.l"  #line 338 "loader.l"
 op->state = IVAL;  op->state = IVAL;
  YY_BREAK   YY_BREAK
 case 58:  case 58:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 334 "loader.l"  #line 339 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_ALIVE, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_ALIVE, IVAL);
  YY_BREAK   YY_BREAK
 case 59:  case 59:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 335 "loader.l"  #line 340 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_APPLIED, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_APPLIED, IVAL);
  YY_BREAK   YY_BREAK
 case 60:  case 60:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 336 "loader.l"  #line 341 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_UNPAID, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_UNPAID, IVAL);
  YY_BREAK   YY_BREAK
 case 61:  case 61:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 337 "loader.l"  #line 342 "loader.l"
 { /* not used - just ignore */ }  { /* not used - just ignore */ }
  YY_BREAK   YY_BREAK
 case 62:  case 62:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 338 "loader.l"  #line 343 "loader.l"
 { /* not used - jsut ignore */ }  { /* not used - jsut ignore */ }
  YY_BREAK   YY_BREAK
 case 63:  case 63:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 339 "loader.l"  #line 344 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_NO_PICK, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_NO_PICK, IVAL);
  YY_BREAK   YY_BREAK
 case 64:  case 64:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 340 "loader.l"  #line 345 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_NO_PASS, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_NO_PASS, IVAL);
  YY_BREAK   YY_BREAK
 case 65:  case 65:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 341 "loader.l"  #line 346 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_WALK_ON, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_WALK_ON, IVAL);
  YY_BREAK   YY_BREAK
 case 66:  case 66:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 342 "loader.l"  #line 347 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_WALK_OFF, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_WALK_OFF, IVAL);
  YY_BREAK   YY_BREAK
 case 67:  case 67:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 343 "loader.l"  #line 348 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_FLY_ON, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_FLY_ON, IVAL);
  YY_BREAK   YY_BREAK
 case 68:  case 68:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 344 "loader.l"  #line 349 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_FLY_OFF, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_FLY_OFF, IVAL);
  YY_BREAK   YY_BREAK
 case 69:  case 69:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 345 "loader.l"  #line 350 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_ANIMATE, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_ANIMATE, IVAL);
  YY_BREAK   YY_BREAK
 case 70:  case 70:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 346 "loader.l"  #line 351 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_FLYING, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_FLYING, IVAL);
  YY_BREAK   YY_BREAK
 case 71:  case 71:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 347 "loader.l"  #line 352 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_MONSTER, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_MONSTER, IVAL);
  YY_BREAK   YY_BREAK
 case 72:  case 72:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 348 "loader.l"  #line 353 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_NEUTRAL, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_NEUTRAL, IVAL);
  YY_BREAK   YY_BREAK
 case 73:  case 73:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 349 "loader.l"  #line 354 "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 74:  case 74:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 350 "loader.l"  #line 355 "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 75:  case 75:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 351 "loader.l"  #line 356 "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 2655
 
Line 2660
  YY_BREAK   YY_BREAK
 case 76:  case 76:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 360 "loader.l"  #line 365 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_GENERATOR, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_GENERATOR, IVAL);
  YY_BREAK   YY_BREAK
 case 77:  case 77:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 361 "loader.l"  #line 366 "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 78:  case 78:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 362 "loader.l"  #line 367 "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 79:  case 79:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 363 "loader.l"  #line 368 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_TREASURE, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_TREASURE, IVAL);
  YY_BREAK   YY_BREAK
 case 80:  case 80:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 364 "loader.l"  #line 369 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_APPLY_ONCE, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_APPLY_ONCE, IVAL);
  YY_BREAK   YY_BREAK
 case 81:  case 81:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 365 "loader.l"  #line 370 "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 82:  case 82:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 366 "loader.l"  #line 371 "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 83:  case 83:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 367 "loader.l"  #line 372 "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 84:  case 84:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 368 "loader.l"  #line 373 "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 85:  case 85:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 369 "loader.l"  #line 374 "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 2710
 
Line 2715
  YY_BREAK   YY_BREAK
 case 86:  case 86:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 375 "loader.l"  #line 380 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_REFLECTING, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_REFLECTING, IVAL);
  YY_BREAK   YY_BREAK
 case 87:  case 87:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 376 "loader.l"  #line 381 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_CHANGING, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_CHANGING, IVAL);
  YY_BREAK   YY_BREAK
 case 88:  case 88:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 377 "loader.l"  #line 382 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_SPLITTING, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_SPLITTING, IVAL);
  YY_BREAK   YY_BREAK
 case 89:  case 89:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 378 "loader.l"  #line 383 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_HITBACK, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_HITBACK, IVAL);
  YY_BREAK   YY_BREAK
 case 90:  case 90:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 379 "loader.l"  #line 384 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_STARTEQUIP, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_STARTEQUIP, IVAL);
  YY_BREAK   YY_BREAK
 case 91:  case 91:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 380 "loader.l"  #line 385 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_BLOCKSVIEW, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_BLOCKSVIEW, IVAL);
  YY_BREAK   YY_BREAK
 case 92:  case 92:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 381 "loader.l"  #line 386 "loader.l"
 op->arch->editable = IVAL;  op->arch->editable = IVAL;
  YY_BREAK   YY_BREAK
 case 93:  case 93:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 382 "loader.l"  #line 387 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_UNDEAD, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_UNDEAD, IVAL);
  YY_BREAK   YY_BREAK
 case 94:  case 94:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 383 "loader.l"  #line 388 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_SCARED, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_SCARED, IVAL);
  YY_BREAK   YY_BREAK
 case 95:  case 95:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 384 "loader.l"  #line 389 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_UNAGGRESSIVE, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_UNAGGRESSIVE, IVAL);
  YY_BREAK   YY_BREAK
 case 96:  case 96:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 385 "loader.l"  #line 390 "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 97:  case 97:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 386 "loader.l"  #line 391 "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 98:  case 98:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 387 "loader.l"  #line 392 "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 99:  case 99:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 388 "loader.l"  #line 393 "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 2789
 
Line 2794
  YY_BREAK   YY_BREAK
 case 100:  case 100:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 398 "loader.l"  #line 403 "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 101:  case 101:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 399 "loader.l"  #line 404 "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 102:  case 102:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 400 "loader.l"  #line 405 "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 103:  case 103:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 401 "loader.l"  #line 406 "loader.l"
 op->stats.luck = IVAL;  op->stats.luck = IVAL;
  YY_BREAK   YY_BREAK
 case 104:  case 104:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 402 "loader.l"  #line 407 "loader.l"
 op->run_away = IVAL;  op->run_away = IVAL;
  YY_BREAK   YY_BREAK
 case 105:  case 105:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 403 "loader.l"  #line 408 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_PASS_THRU, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_PASS_THRU, IVAL);
  YY_BREAK   YY_BREAK
 case 106:  case 106:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 404 "loader.l"  #line 409 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_CAN_PASS_THRU, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_CAN_PASS_THRU, IVAL);
  YY_BREAK   YY_BREAK
 case 107:  case 107:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 405 "loader.l"  #line 410 "loader.l"
 op->pick_up = IVAL;  op->pick_up = IVAL;
  YY_BREAK   YY_BREAK
 case 108:  case 108:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 406 "loader.l"  #line 411 "loader.l"
 op->anim_speed = IVAL;  op->anim_speed = IVAL;
  YY_BREAK   YY_BREAK
 case 109:  case 109:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 407 "loader.l"  #line 412 "loader.l"
 op->weight_limit = IVAL;  op->weight_limit = IVAL;
  YY_BREAK   YY_BREAK
 case 110:  case 110:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 408 "loader.l"  #line 413 "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 111:  case 111:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 409 "loader.l"  #line 414 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_NO_PRETEXT, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_NO_PRETEXT, IVAL);
  YY_BREAK   YY_BREAK
 case 112:  case 112:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 410 "loader.l"  #line 415 "loader.l"
 op->will_apply = IVAL;  op->will_apply = IVAL;
  YY_BREAK   YY_BREAK
 case 113:  case 113:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 411 "loader.l"  #line 416 "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 114:  case 114:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 412 "loader.l"  #line 417 "loader.l"
 op->can_apply = IVAL;  op->can_apply = IVAL;
  YY_BREAK   YY_BREAK
 case 115:  case 115:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 413 "loader.l"  #line 418 "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 116:  case 116:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 414 "loader.l"  #line 419 "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 117:  case 117:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 415 "loader.l"  #line 420 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_USE_WAND, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_USE_WAND, IVAL);
  YY_BREAK   YY_BREAK
 case 118:  case 118:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 416 "loader.l"  #line 421 "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 119:  case 119:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 417 "loader.l"  #line 422 "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 120:  case 120:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 418 "loader.l"  #line 423 "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 121:  case 121:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 419 "loader.l"  #line 424 "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 122:  case 122:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 420 "loader.l"  #line 425 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_READY_WAND, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_READY_WAND, IVAL);
  YY_BREAK   YY_BREAK
 case 123:  case 123:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 421 "loader.l"  #line 426 "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 124:  case 124:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 422 "loader.l"  #line 427 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_XRAYS, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_XRAYS, IVAL);
  YY_BREAK   YY_BREAK
 case 125:  case 125:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 423 "loader.l"  #line 428 "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 126:  case 126:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 424 "loader.l"  #line 429 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_LIFESAVE, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_LIFESAVE, IVAL);
  YY_BREAK   YY_BREAK
 case 127:  case 127:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 425 "loader.l"  #line 430 "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 128:  case 128:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 426 "loader.l"  #line 431 "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 2937
 
Line 2942
  YY_BREAK   YY_BREAK
 case 129:  case 129:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 430 "loader.l"  #line 435 "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 130:  case 130:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 431 "loader.l"  #line 436 "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 131:  case 131:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 432 "loader.l"  #line 437 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_ONLY_ATTACK, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_ONLY_ATTACK, IVAL);
  YY_BREAK   YY_BREAK
 /* armour is loaded for compatiblity reasons */  /* armour is loaded for compatiblity reasons */
 case 132:  case 132:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 435 "loader.l"  #line 440 "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 133:  case 133:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 437 "loader.l"  #line 442 "loader.l"
 SET_RESIST(op, ATNR_PHYSICAL, IVAL);  SET_RESIST(op, ATNR_PHYSICAL, IVAL);
  YY_BREAK   YY_BREAK
 case 134:  case 134:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 438 "loader.l"  #line 443 "loader.l"
 SET_RESIST(op, ATNR_MAGIC, IVAL);  SET_RESIST(op, ATNR_MAGIC, IVAL);
  YY_BREAK   YY_BREAK
 case 135:  case 135:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 439 "loader.l"  #line 444 "loader.l"
 SET_RESIST(op, ATNR_FIRE, IVAL);  SET_RESIST(op, ATNR_FIRE, IVAL);
  YY_BREAK   YY_BREAK
 case 136:  case 136:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 440 "loader.l"  #line 445 "loader.l"
 SET_RESIST(op, ATNR_ELECTRICITY, IVAL);  SET_RESIST(op, ATNR_ELECTRICITY, IVAL);
  YY_BREAK   YY_BREAK
 case 137:  case 137:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 441 "loader.l"  #line 446 "loader.l"
 SET_RESIST(op, ATNR_COLD, IVAL);  SET_RESIST(op, ATNR_COLD, IVAL);
  YY_BREAK   YY_BREAK
 case 138:  case 138:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 442 "loader.l"  #line 447 "loader.l"
 SET_RESIST(op, ATNR_CONFUSION, IVAL);  SET_RESIST(op, ATNR_CONFUSION, IVAL);
  YY_BREAK   YY_BREAK
 case 139:  case 139:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 443 "loader.l"  #line 448 "loader.l"
 SET_RESIST(op, ATNR_ACID, IVAL);  SET_RESIST(op, ATNR_ACID, IVAL);
  YY_BREAK   YY_BREAK
 case 140:  case 140:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 444 "loader.l"  #line 449 "loader.l"
 SET_RESIST(op, ATNR_DRAIN, IVAL);  SET_RESIST(op, ATNR_DRAIN, IVAL);
  YY_BREAK   YY_BREAK
 case 141:  case 141:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 445 "loader.l"  #line 450 "loader.l"
 SET_RESIST(op, ATNR_WEAPONMAGIC, IVAL);  SET_RESIST(op, ATNR_WEAPONMAGIC, IVAL);
  YY_BREAK   YY_BREAK
 case 142:  case 142:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 446 "loader.l"  #line 451 "loader.l"
 SET_RESIST(op, ATNR_GHOSTHIT, IVAL);  SET_RESIST(op, ATNR_GHOSTHIT, IVAL);
  YY_BREAK   YY_BREAK
 case 143:  case 143:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 447 "loader.l"  #line 452 "loader.l"
 SET_RESIST(op, ATNR_POISON, IVAL);  SET_RESIST(op, ATNR_POISON, IVAL);
  YY_BREAK   YY_BREAK
 case 144:  case 144:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 448 "loader.l"  #line 453 "loader.l"
 SET_RESIST(op, ATNR_SLOW, IVAL);  SET_RESIST(op, ATNR_SLOW, IVAL);
  YY_BREAK   YY_BREAK
 case 145:  case 145:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 449 "loader.l"  #line 454 "loader.l"
 SET_RESIST(op, ATNR_PARALYZE, IVAL);  SET_RESIST(op, ATNR_PARALYZE, IVAL);
  YY_BREAK   YY_BREAK
 case 146:  case 146:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 450 "loader.l"  #line 455 "loader.l"
 SET_RESIST(op, ATNR_TURN_UNDEAD, IVAL);  SET_RESIST(op, ATNR_TURN_UNDEAD, IVAL);
  YY_BREAK   YY_BREAK
 case 147:  case 147:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 451 "loader.l"  #line 456 "loader.l"
 SET_RESIST(op, ATNR_FEAR, IVAL);  SET_RESIST(op, ATNR_FEAR, IVAL);
  YY_BREAK   YY_BREAK
 case 148:  case 148:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 452 "loader.l"  #line 457 "loader.l"
 SET_RESIST(op, ATNR_CANCELLATION, IVAL);  SET_RESIST(op, ATNR_CANCELLATION, IVAL);
  YY_BREAK   YY_BREAK
 case 149:  case 149:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 453 "loader.l"  #line 458 "loader.l"
 SET_RESIST(op, ATNR_DEPLETE, IVAL);  SET_RESIST(op, ATNR_DEPLETE, IVAL);
  YY_BREAK   YY_BREAK
 case 150:  case 150:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 454 "loader.l"  #line 459 "loader.l"
 SET_RESIST(op, ATNR_DEATH, IVAL);  SET_RESIST(op, ATNR_DEATH, IVAL);
  YY_BREAK   YY_BREAK
 case 151:  case 151:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 455 "loader.l"  #line 460 "loader.l"
 SET_RESIST(op, ATNR_CHAOS, IVAL);  SET_RESIST(op, ATNR_CHAOS, IVAL);
  YY_BREAK   YY_BREAK
 case 152:  case 152:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 456 "loader.l"  #line 461 "loader.l"
 SET_RESIST(op, ATNR_COUNTERSPELL, IVAL);  SET_RESIST(op, ATNR_COUNTERSPELL, IVAL);
  YY_BREAK   YY_BREAK
 case 153:  case 153:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 457 "loader.l"  #line 462 "loader.l"
 SET_RESIST(op, ATNR_GODPOWER, IVAL);  SET_RESIST(op, ATNR_GODPOWER, IVAL);
  YY_BREAK   YY_BREAK
 case 154:  case 154:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 458 "loader.l"  #line 463 "loader.l"
 SET_RESIST(op, ATNR_HOLYWORD, IVAL);  SET_RESIST(op, ATNR_HOLYWORD, IVAL);
  YY_BREAK   YY_BREAK
 case 155:  case 155:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 459 "loader.l"  #line 464 "loader.l"
 SET_RESIST(op, ATNR_BLIND, IVAL);  SET_RESIST(op, ATNR_BLIND, IVAL);
  YY_BREAK   YY_BREAK
 case 156:  case 156:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 460 "loader.l"  #line 465 "loader.l"
 SET_RESIST(op, ATNR_INTERNAL, IVAL);  SET_RESIST(op, ATNR_INTERNAL, IVAL);
  YY_BREAK   YY_BREAK
 /* Old style resistances */  /* Old style resistances */
 case 157:  case 157:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 463 "loader.l"  #line 468 "loader.l"
 set_protection(op, IVAL, RESIST_IMMUNE);  set_protection(op, IVAL, RESIST_IMMUNE);
  YY_BREAK   YY_BREAK
 case 158:  case 158:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 464 "loader.l"  #line 469 "loader.l"
 set_protection(op, IVAL, RESIST_PROT);  set_protection(op, IVAL, RESIST_PROT);
  YY_BREAK   YY_BREAK
 case 159:  case 159:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 465 "loader.l"  #line 470 "loader.l"
 set_protection(op, IVAL, RESIST_VULN);  set_protection(op, IVAL, RESIST_VULN);
  YY_BREAK   YY_BREAK
 case 160:  case 160:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 467 "loader.l"  #line 472 "loader.l"
 op->move_type = IVAL;  op->move_type = IVAL;
  YY_BREAK   YY_BREAK
 case 161:  case 161:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 468 "loader.l"  #line 473 "loader.l"
 op->move_status = IVAL;  op->move_status = IVAL;
  YY_BREAK   YY_BREAK
 case 162:  case 162:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 469 "loader.l"  #line 474 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_CONFUSED, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_CONFUSED, IVAL);
  YY_BREAK   YY_BREAK
 case 163:  case 163:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 470 "loader.l"  #line 475 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_STEALTH, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_STEALTH, IVAL);
  YY_BREAK   YY_BREAK
 case 164:  case 164:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 471 "loader.l"  #line 476 "loader.l"
 add_button_link(op, op->map, IVAL);  add_button_link(op, op->map, IVAL);
  YY_BREAK   YY_BREAK
 case 165:  case 165:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 472 "loader.l"  #line 477 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_CURSED, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_CURSED, IVAL);
  YY_BREAK   YY_BREAK
 case 166:  case 166:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 473 "loader.l"  #line 478 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_DAMNED, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_DAMNED, IVAL);
  YY_BREAK   YY_BREAK
 case 167:  case 167:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 474 "loader.l"  #line 479 "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 168:  case 168:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 475 "loader.l"  #line 480 "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 169:  case 169:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 476 "loader.l"  #line 481 "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 170:  case 170:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 477 "loader.l"  #line 482 "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 171:  case 171:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 478 "loader.l"  #line 483 "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 172:  case 172:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 479 "loader.l"  #line 484 "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 3163
 
Line 3168
  YY_BREAK   YY_BREAK
 case 173:  case 173:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 483 "loader.l"  #line 488 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_READY_ROD, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_READY_ROD, IVAL);
  YY_BREAK   YY_BREAK
 case 174:  case 174:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 484 "loader.l"  #line 489 "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 175:  case 175:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 485 "loader.l"  #line 490 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_READY_HORN, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_READY_HORN, IVAL);
  YY_BREAK   YY_BREAK
 case 176:  case 176:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 486 "loader.l"  #line 491 "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 177:  case 177:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 487 "loader.l"  #line 492 "loader.l"
 op->expmul = FVAL;  op->expmul = FVAL;
  YY_BREAK   YY_BREAK
 case 178:  case 178:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 488 "loader.l"  #line 493 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_UNIQUE, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_UNIQUE, IVAL);
  YY_BREAK   YY_BREAK
 case 179:  case 179:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 489 "loader.l"  #line 494 "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 180:  case 180:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 490 "loader.l"  #line 495 "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 181:  case 181:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 491 "loader.l"  #line 496 "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 182:  case 182:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 492 "loader.l"  #line 497 "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 183:  case 183:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 493 "loader.l"  #line 498 "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 184:  case 184:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 494 "loader.l"  #line 499 "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 185:  case 185:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 495 "loader.l"  #line 500 "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 186:  case 186:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 496 "loader.l"  #line 501 "loader.l"
 op->glow_radius = IVAL;  op->glow_radius = IVAL;
  YY_BREAK   YY_BREAK
 case 187:  case 187:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 497 "loader.l"  #line 502 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_BLIND, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_BLIND, IVAL);
  YY_BREAK   YY_BREAK
 case 188:  case 188:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 498 "loader.l"  #line 503 "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 189:  case 189:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 499 "loader.l"  #line 504 "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 190:  case 190:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 500 "loader.l"  #line 505 "loader.l"
 op->randomitems = find_treasurelist(yval());  op->randomitems = find_treasurelist(yval());
  YY_BREAK   YY_BREAK
 case 191:  case 191:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 501 "loader.l"  #line 506 "loader.l"
 SET_OR_CLEAR_FLAG(op, FLAG_DUST, IVAL);  SET_OR_CLEAR_FLAG(op, FLAG_DUST, IVAL);
  YY_BREAK   YY_BREAK
 case 192:  case 192:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 502 "loader.l"  #line 507 "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 193:  case 193:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 503 "loader.l"  #line 508 "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 194:  case 194:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 505 "loader.l"  #line 510 "loader.l"
 { /* Some archetypes have these values in them */ }  { /* Some archetypes have these values in them */ }
  YY_BREAK   YY_BREAK
 case 195:  case 195:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 506 "loader.l"  #line 511 "loader.l"
 { /* Probably the pupland archetypes - I imagined */ }  { /* Probably the pupland archetypes - I imagined */ }
  YY_BREAK   YY_BREAK
 case 196:  case 196:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 507 "loader.l"  #line 512 "loader.l"
 { /* That these are for the new combat code */ }  { /* That these are for the new combat code */ }
  YY_BREAK   YY_BREAK
 case 197:  case 197:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 508 "loader.l"  #line 513 "loader.l"
 { /* just ignore for now */ }  { /* just ignore for now */ }
  YY_BREAK   YY_BREAK
 case 198:  case 198:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 509 "loader.l"  #line 514 "loader.l"
 { }  { }
  YY_BREAK   YY_BREAK
 case 199:  case 199:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 510 "loader.l"  #line 515 "loader.l"
 op->weapontype = FVAL;  op->weapontype = FVAL;
  YY_BREAK   YY_BREAK
 case 200:  case 200:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 511 "loader.l"  #line 516 "loader.l"
 op->casting_speed = FVAL;  op->casting_speed = FVAL;
  YY_BREAK   YY_BREAK
 case 201:  case 201:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 512 "loader.l"  #line 517 "loader.l"
 op->elevation = IVAL;  op->elevation = IVAL;
  YY_BREAK   YY_BREAK
 case 202:  case 202:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 513 "loader.l"  #line 518 "loader.l"
 op->client_type = IVAL;  op->client_type = IVAL;
  YY_BREAK   YY_BREAK
 case 203:  case 203:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 515 "loader.l"  #line 520 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (apply) without val\n");   if (*yv=='\0') LOG(llevError,"Event (apply) without val\n");
Line 3325
 
Line 3330
  YY_BREAK   YY_BREAK
 case 204:  case 204:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 523 "loader.l"  #line 528 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (apply) without plugin\n");   if (*yv=='\0') LOG(llevError,"Event (apply) without plugin\n");
Line 3337
 
Line 3342
  YY_BREAK   YY_BREAK
 case 205:  case 205:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 531 "loader.l"  #line 536 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (apply) without options\n");   if (*yv=='\0') LOG(llevError,"Event (apply) without options\n");
Line 3349
 
Line 3354
  YY_BREAK   YY_BREAK
 case 206:  case 206:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 539 "loader.l"  #line 544 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (attack) without val\n");   if (*yv=='\0') LOG(llevError,"Event (attack) without val\n");
Line 3361
 
Line 3366
  YY_BREAK   YY_BREAK
 case 207:  case 207:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 547 "loader.l"  #line 552 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (attack) without plugin\n");   if (*yv=='\0') LOG(llevError,"Event (attack) without plugin\n");
Line 3373
 
Line 3378
  YY_BREAK   YY_BREAK
 case 208:  case 208:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 555 "loader.l"  #line 560 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (attack) without options\n");   if (*yv=='\0') LOG(llevError,"Event (attack) without options\n");
Line 3385
 
Line 3390
  YY_BREAK   YY_BREAK
 case 209:  case 209:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 563 "loader.l"  #line 568 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (born) without val\n");   if (*yv=='\0') LOG(llevError,"Event (born) without val\n");
Line 3397
 
Line 3402
  YY_BREAK   YY_BREAK
 case 210:  case 210:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 571 "loader.l"  #line 576 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (born) without plugin\n");   if (*yv=='\0') LOG(llevError,"Event (born) without plugin\n");
Line 3409
 
Line 3414
  YY_BREAK   YY_BREAK
 case 211:  case 211:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 579 "loader.l"  #line 584 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (born) without options\n");   if (*yv=='\0') LOG(llevError,"Event (born) without options\n");
Line 3421
 
Line 3426
  YY_BREAK   YY_BREAK
 case 212:  case 212:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 587 "loader.l"  #line 592 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (crash) without val\n");   if (*yv=='\0') LOG(llevError,"Event (crash) without val\n");
Line 3433
 
Line 3438
  YY_BREAK   YY_BREAK
 case 213:  case 213:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 595 "loader.l"  #line 600 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (crash) without plugin\n");   if (*yv=='\0') LOG(llevError,"Event (crash) without plugin\n");
Line 3445
 
Line 3450
  YY_BREAK   YY_BREAK
 case 214:  case 214:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 603 "loader.l"  #line 608 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (crash) without options\n");   if (*yv=='\0') LOG(llevError,"Event (crash) without options\n");
Line 3457
 
Line 3462
  YY_BREAK   YY_BREAK
 case 215:  case 215:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 611 "loader.l"  #line 616 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (death) without val\n");   if (*yv=='\0') LOG(llevError,"Event (death) without val\n");
Line 3469
 
Line 3474
  YY_BREAK   YY_BREAK
 case 216:  case 216:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 619 "loader.l"  #line 624 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (death) without plugin\n");   if (*yv=='\0') LOG(llevError,"Event (death) without plugin\n");
Line 3481
 
Line 3486
  YY_BREAK   YY_BREAK
 case 217:  case 217:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 627 "loader.l"  #line 632 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (death) without options\n");   if (*yv=='\0') LOG(llevError,"Event (death) without options\n");
Line 3493
 
Line 3498
  YY_BREAK   YY_BREAK
 case 218:  case 218:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 635 "loader.l"  #line 640 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (drop) without val\n");   if (*yv=='\0') LOG(llevError,"Event (drop) without val\n");
Line 3505
 
Line 3510
  YY_BREAK   YY_BREAK
 case 219:  case 219:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 643 "loader.l"  #line 648 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (drop) without plugin\n");   if (*yv=='\0') LOG(llevError,"Event (drop) without plugin\n");
Line 3517
 
Line 3522
  YY_BREAK   YY_BREAK
 case 220:  case 220:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 651 "loader.l"  #line 656 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (drop) without options\n");   if (*yv=='\0') LOG(llevError,"Event (drop) without options\n");
Line 3529
 
Line 3534
  YY_BREAK   YY_BREAK
 case 221:  case 221:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 659 "loader.l"  #line 664 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (login) without val\n");   if (*yv=='\0') LOG(llevError,"Event (login) without val\n");
Line 3541
 
Line 3546
  YY_BREAK   YY_BREAK
 case 222:  case 222:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 667 "loader.l"  #line 672 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (login) without plugin\n");   if (*yv=='\0') LOG(llevError,"Event (login) without plugin\n");
Line 3553
 
Line 3558
  YY_BREAK   YY_BREAK
 case 223:  case 223:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 675 "loader.l"  #line 680 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (login) without options\n");   if (*yv=='\0') LOG(llevError,"Event (login) without options\n");
Line 3565
 
Line 3570
  YY_BREAK   YY_BREAK
 case 224:  case 224:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 683 "loader.l"  #line 688 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (logout) without val\n");   if (*yv=='\0') LOG(llevError,"Event (logout) without val\n");
Line 3577
 
Line 3582
  YY_BREAK   YY_BREAK
 case 225:  case 225:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 691 "loader.l"  #line 696 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (logout) without plugin\n");   if (*yv=='\0') LOG(llevError,"Event (logout) without plugin\n");
Line 3589
 
Line 3594
  YY_BREAK   YY_BREAK
 case 226:  case 226:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 699 "loader.l"  #line 704 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (logout) without options\n");   if (*yv=='\0') LOG(llevError,"Event (logout) without options\n");
Line 3601
 
Line 3606
  YY_BREAK   YY_BREAK
 case 227:  case 227:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 707 "loader.l"  #line 712 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (pickup) without val\n");   if (*yv=='\0') LOG(llevError,"Event (pickup) without val\n");
Line 3613
 
Line 3618
  YY_BREAK   YY_BREAK
 case 228:  case 228:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 715 "loader.l"  #line 720 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (pickup) without plugin\n");   if (*yv=='\0') LOG(llevError,"Event (pickup) without plugin\n");
Line 3625
 
Line 3630
  YY_BREAK   YY_BREAK
 case 229:  case 229:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 723 "loader.l"  #line 728 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (pickup) without options\n");   if (*yv=='\0') LOG(llevError,"Event (pickup) without options\n");
Line 3637
 
Line 3642
  YY_BREAK   YY_BREAK
 case 230:  case 230:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 731 "loader.l"  #line 736 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (remove) without val\n");   if (*yv=='\0') LOG(llevError,"Event (remove) without val\n");
Line 3649
 
Line 3654
  YY_BREAK   YY_BREAK
 case 231:  case 231:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 739 "loader.l"  #line 744 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (remove) without plugin\n");   if (*yv=='\0') LOG(llevError,"Event (remove) without plugin\n");
Line 3661
 
Line 3666
  YY_BREAK   YY_BREAK
 case 232:  case 232:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 747 "loader.l"  #line 752 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (remove) without options\n");   if (*yv=='\0') LOG(llevError,"Event (remove) without options\n");
Line 3673
 
Line 3678
  YY_BREAK   YY_BREAK
 case 233:  case 233:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 755 "loader.l"  #line 760 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (say) without val\n");   if (*yv=='\0') LOG(llevError,"Event (say) without val\n");
Line 3685
 
Line 3690
  YY_BREAK   YY_BREAK
 case 234:  case 234:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 763 "loader.l"  #line 768 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (say) without plugin\n");   if (*yv=='\0') LOG(llevError,"Event (say) without plugin\n");
Line 3697
 
Line 3702
  YY_BREAK   YY_BREAK
 case 235:  case 235:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 771 "loader.l"  #line 776 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (say) without options\n");   if (*yv=='\0') LOG(llevError,"Event (say) without options\n");
Line 3709
 
Line 3714
  YY_BREAK   YY_BREAK
 case 236:  case 236:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 779 "loader.l"  #line 784 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (shout) without val\n");   if (*yv=='\0') LOG(llevError,"Event (shout) without val\n");
Line 3721
 
Line 3726
  YY_BREAK   YY_BREAK
 case 237:  case 237:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 787 "loader.l"  #line 792 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (shout) without plugin\n");   if (*yv=='\0') LOG(llevError,"Event (shout) without plugin\n");
Line 3733
 
Line 3738
  YY_BREAK   YY_BREAK
 case 238:  case 238:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 795 "loader.l"  #line 800 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (shout) without options\n");   if (*yv=='\0') LOG(llevError,"Event (shout) without options\n");
Line 3745
 
Line 3750
  YY_BREAK   YY_BREAK
 case 239:  case 239:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 803 "loader.l"  #line 808 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (tell) without val\n");   if (*yv=='\0') LOG(llevError,"Event (tell) without val\n");
Line 3757
 
Line 3762
  YY_BREAK   YY_BREAK
 case 240:  case 240:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 811 "loader.l"  #line 816 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (tell) without plugin\n");   if (*yv=='\0') LOG(llevError,"Event (tell) without plugin\n");
Line 3769
 
Line 3774
  YY_BREAK   YY_BREAK
 case 241:  case 241:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 819 "loader.l"  #line 824 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (tell) without options\n");   if (*yv=='\0') LOG(llevError,"Event (tell) without options\n");
Line 3781
 
Line 3786
  YY_BREAK   YY_BREAK
 case 242:  case 242:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 827 "loader.l"  #line 832 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (time) without val\n");   if (*yv=='\0') LOG(llevError,"Event (time) without val\n");
Line 3793
 
Line 3798
  YY_BREAK   YY_BREAK
 case 243:  case 243:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 835 "loader.l"  #line 840 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (time) without plugin\n");   if (*yv=='\0') LOG(llevError,"Event (time) without plugin\n");
Line 3805
 
Line 3810
  YY_BREAK   YY_BREAK
 case 244:  case 244:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 843 "loader.l"  #line 848 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (time) without options\n");   if (*yv=='\0') LOG(llevError,"Event (time) without options\n");
Line 3817
 
Line 3822
  YY_BREAK   YY_BREAK
 case 245:  case 245:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 851 "loader.l"  #line 856 "loader.l"
 { char *yv=yval();  { char *yv=yval();
  if (*yv=='\0') LOG(llevError,"Event (timer) without val\n");   if (*yv=='\0') LOG(llevError,"Event (timer) without val\n");
  else   else
Line 3828
 
Line 3833
  YY_BREAK   YY_BREAK
 case 246:  case 246:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 858 "loader.l"  #line 863 "loader.l"
 { char *yv=yval();  { char *yv=yval();
  if (*yv=='\0') LOG(llevError,"Event (timer) without plugin\n");   if (*yv=='\0') LOG(llevError,"Event (timer) without plugin\n");
  else   else
Line 3839
 
Line 3844
  YY_BREAK   YY_BREAK
 case 247:  case 247:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 865 "loader.l"  #line 870 "loader.l"
 { char *yv=yval();  { char *yv=yval();
  if (*yv=='\0') LOG(llevError,"Event (timer) without options\n");   if (*yv=='\0') LOG(llevError,"Event (timer) without options\n");
  else   else
Line 3850
 
Line 3855
  YY_BREAK   YY_BREAK
 case 248:  case 248:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 873 "loader.l"  #line 878 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (throw) without val\n");   if (*yv=='\0') LOG(llevError,"Event (throw) without val\n");
Line 3862
 
Line 3867
  YY_BREAK   YY_BREAK
 case 249:  case 249:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 881 "loader.l"  #line 886 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (throw) without plugin\n");   if (*yv=='\0') LOG(llevError,"Event (throw) without plugin\n");
Line 3874
 
Line 3879
  YY_BREAK   YY_BREAK
 case 250:  case 250:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 889 "loader.l"  #line 894 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (throw) without options\n");   if (*yv=='\0') LOG(llevError,"Event (throw) without options\n");
Line 3886
 
Line 3891
  YY_BREAK   YY_BREAK
 case 251:  case 251:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 897 "loader.l"  #line 902 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (trigger) without val\n");   if (*yv=='\0') LOG(llevError,"Event (trigger) without val\n");
Line 3898
 
Line 3903
  YY_BREAK   YY_BREAK
 case 252:  case 252:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 905 "loader.l"  #line 910 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (trigger) without plugin\n");   if (*yv=='\0') LOG(llevError,"Event (trigger) without plugin\n");
Line 3910
 
Line 3915
  YY_BREAK   YY_BREAK
 case 253:  case 253:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 913 "loader.l"  #line 918 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (trigger) without options\n");   if (*yv=='\0') LOG(llevError,"Event (trigger) without options\n");
Line 3922
 
Line 3927
  YY_BREAK   YY_BREAK
 case 254:  case 254:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 921 "loader.l"  #line 926 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (close) without val\n");   if (*yv=='\0') LOG(llevError,"Event (close) without val\n");
Line 3934
 
Line 3939
  YY_BREAK   YY_BREAK
 case 255:  case 255:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 929 "loader.l"  #line 934 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (close) without plugin\n");   if (*yv=='\0') LOG(llevError,"Event (close) without plugin\n");
Line 3946
 
Line 3951
  YY_BREAK   YY_BREAK
 case 256:  case 256:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 937 "loader.l"  #line 942 "loader.l"
 { char *yv=yval();  { char *yv=yval();
   
  if (*yv=='\0') LOG(llevError,"Event (close) without options\n");   if (*yv=='\0') LOG(llevError,"Event (close) without options\n");
Line 3958
 
Line 3963
  YY_BREAK   YY_BREAK
 case 257:  case 257:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 945 "loader.l"  #line 950 "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 3970
 
Line 3975
  YY_BREAK   YY_BREAK
 case 258:  case 258:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 954 "loader.l"  #line 959 "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 259:  case 259:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 955 "loader.l"  #line 960 "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(SCRIPT):  case YY_STATE_EOF(SCRIPT):
 #line 957 "loader.l"  #line 962 "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 260:  case 260:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 959 "loader.l"  #line 964 "loader.l"
 { yyerror( "Unrecognized string"); lex_error= -1; }  { yyerror( "Unrecognized string"); lex_error= -1; }
  YY_BREAK   YY_BREAK
 case 261:  case 261:
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 960 "loader.l"  #line 965 "loader.l"
 ECHO;  ECHO;
  YY_BREAK   YY_BREAK
   
Line 4880
 
Line 4885
  return 0;   return 0;
  }   }
 #endif  #endif
 #line 960 "loader.l"  #line 965 "loader.l"
   
   
   
Line 5052
 
Line 5057
 {FLAG_READY_WEAPON,V_HAS_READY_WEAPON},{FLAG_NO_SKILL_IDENT,V_NO_SKILL_IDENT},  {FLAG_READY_WEAPON,V_HAS_READY_WEAPON},{FLAG_NO_SKILL_IDENT,V_NO_SKILL_IDENT},
 {FLAG_BLIND,V_BLIND},{FLAG_SEE_IN_DARK,V_SEE_IN_DARK},  {FLAG_BLIND,V_BLIND},{FLAG_SEE_IN_DARK,V_SEE_IN_DARK},
 {FLAG_IS_CAULDRON,V_IS_CAULDRON},{FLAG_DUST,V_DUST},{FLAG_NO_STEAL,V_NO_STEAL},  {FLAG_IS_CAULDRON,V_IS_CAULDRON},{FLAG_DUST,V_DUST},{FLAG_NO_STEAL,V_NO_STEAL},
 {FLAG_ONE_HIT, V_ONE_HIT}, {FLAG_BERSERK, V_BERSERK},   {FLAG_ONE_HIT, V_ONE_HIT},
   {-1, -1 /* Client send debug flag (FLAG_CLIENT_SENT)*/},
   {FLAG_BERSERK, V_BERSERK},
 {FLAG_NEUTRAL, V_NEUTRAL}, {FLAG_NO_ATTACK, V_NO_ATTACK},  {FLAG_NEUTRAL, V_NEUTRAL}, {FLAG_NO_ATTACK, V_NO_ATTACK},
 {FLAG_NO_DAMAGE, V_NO_DAMAGE},  {FLAG_NO_DAMAGE, V_NO_DAMAGE},
 {-1, -1 /* Client send debug flag */ }  {-1, -1 /* FLAG_OBJ_ORIGINAL */ },
   {-1, -1 /* FLAG_OBJ_SAVE_ON_OVL */ },
 };  };
   
   


Legend:
line(s) removed in v.1.24 
line(s) changed
 line(s) added in v.1.25

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