Difference for server/gods.c from version 1.32 to 1.33


version 1.32 version 1.33
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_gods_c =   * static char *rcsid_gods_c =
  *   "$Id: gods.c,v 1.32 2002/10/12 05:34:29 mwedel Exp $";   *   "$Id: gods.c,v 1.33 2002/11/26 07:55:24 garbled Exp $";
  */   */
   
 /*  /*
Line 42
 
Line 42
 #include <sproto.h>  #include <sproto.h>
 #endif  #endif
   
 /* define this if you want to allow gods to assign more gifts  
  * and limitations to priests */  
 #define MORE_PRIEST_GIFTS  
   
 static int god_gives_present (object *op, object *god, treasure *tr);  static int god_gives_present (object *op, object *god, treasure *tr);
 static void follower_remove_similar_item (object *op, object *item);  static void follower_remove_similar_item (object *op, object *item);
   
Line 326
 
Line 322
    i==ATNR_ELECTRICITY || i==ATNR_POISON))     i==ATNR_ELECTRICITY || i==ATNR_POISON))
  exp_obj->resist[i] = 30;   exp_obj->resist[i] = 30;
   
 #ifdef MORE_PRIEST_GIFTS  
     exp_obj->stats.hp= (sint16) new_god->last_heal;      exp_obj->stats.hp= (sint16) new_god->last_heal;
     exp_obj->stats.sp= (sint16) new_god->last_sp;      exp_obj->stats.sp= (sint16) new_god->last_sp;
     exp_obj->stats.grace= (sint16) new_god->last_grace;      exp_obj->stats.grace= (sint16) new_god->last_grace;
Line 341
 
Line 336
     update_priest_flag(new_god,exp_obj,FLAG_UNDEAD);      update_priest_flag(new_god,exp_obj,FLAG_UNDEAD);
     update_priest_flag(new_god,exp_obj,FLAG_BLIND);      update_priest_flag(new_god,exp_obj,FLAG_BLIND);
     update_priest_flag(new_god,exp_obj,FLAG_XRAYS); /* better have this if blind! */      update_priest_flag(new_god,exp_obj,FLAG_XRAYS); /* better have this if blind! */
 #endif  
   
     new_draw_info_format(NDI_UNIQUE,0,op,      new_draw_info_format(NDI_UNIQUE,0,op,
  "You are bathed in %s's aura.",new_god->name);   "You are bathed in %s's aura.",new_god->name);
   
 #ifdef MORE_PRIEST_GIFTS  
     /* Weapon/armour use are special...handle flag toggles here as this can      /* Weapon/armour use are special...handle flag toggles here as this can
      * only happen when gods are worshipped and if the new priest could       * only happen when gods are worshipped and if the new priest could
      * have used armour/weapons in the first place */       * have used armour/weapons in the first place */
Line 363
 
Line 356
  stop_using_item(op,GLOVES,1);   stop_using_item(op,GLOVES,1);
  stop_using_item(op,SHIELD,1);   stop_using_item(op,SHIELD,1);
     }      }
 #endif  
   
     SET_FLAG(exp_obj,FLAG_APPLIED);      SET_FLAG(exp_obj,FLAG_APPLIED);
     (void) change_abil(op,exp_obj);      (void) change_abil(op,exp_obj);


Legend:
line(s) removed in v.1.32 
line(s) changed
 line(s) added in v.1.33

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