Difference for include/treasure.h from version 1.4 to 1.5


version 1.4 version 1.5
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_treasure_h =   * static char *rcsid_treasure_h =
  *   "$Id: treasure.h,v 1.4 2000/12/27 07:53:33 cvs Exp $";   *   "$Id: treasure.h,v 1.5 2001/11/16 01:34:17 michtoen Exp $";
  */   */
   
 /*  /*
Line 60
 
Line 60
 };  };
   
   
   /* when a treasure got cloned from archlist, we want perhaps change some default
    * values. All values in this structure will override the default arch.
    * TODO: It is a bad way to implement this with a special structure.
    * Because the real arch list is a at runtime not changed, we can grap for example
    * here a clone of the arch, store it in the treasure list and then run the original
    * arch parser over this clone, using the treasure list as script until an END comes.
    * This will allow ANY changes which is possible and we use ony one parser.
    */
   
   typedef struct _change_arch {
       char *name;              /* is != NULL, copy this over the original arch name */
   } _change_arch;
   
   
 /*  /*
  * treasure is one element in a linked list, which together consist of a   * treasure is one element in a linked list, which together consist of a
  * complete treasure-list.  Any arch can point to a treasure-list   * complete treasure-list.  Any arch can point to a treasure-list
Line 76
 
Line 90
      /* this link instead of ->next */       /* this link instead of ->next */
   struct treasurestruct *next_no;   /* If this item was not generated, */    struct treasurestruct *next_no;   /* If this item was not generated, */
      /* then continue here */       /* then continue here */
     struct _change_arch change_arch;  /* override default arch values if set in treasure list */
   uint8 chance;     /* Percent chance for this item */    uint8 chance;     /* Percent chance for this item */
   uint8 magic;     /* Max magic bonus to item */    uint8 magic;     /* Max magic bonus to item */
      /* If the entry is a list transition,       /* If the entry is a list transition,
Line 85
 
Line 100
   uint16 nrof;     /* random 1 to nrof items are generated */    uint16 nrof;     /* random 1 to nrof items are generated */
 } treasure;  } treasure;
   
   
 typedef struct treasureliststruct {  typedef struct treasureliststruct {
   char *name; /* Usually monster-name/combination */    char *name; /* Usually monster-name/combination */
   sint16 total_chance; /* If non-zero, only 1 item on this    sint16 total_chance; /* If non-zero, only 1 item on this


Legend:
line(s) removed in v.1.4 
line(s) changed
 line(s) added in v.1.5

File made using version 1.98 of cvs2html by leaf at 2011-07-21 19:32