version 1.155 | | version 1.156 |
---|
| | |
/* | | /* |
* static char *rcsid_apply_c = | | * static char *rcsid_apply_c = |
* "$Id: apply.c,v 1.155 2006/01/04 21:50:05 akirschbaum Exp $"; | | * "$Id: apply.c,v 1.156 2006/01/07 18:56:51 akirschbaum Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
} | | } |
depl = present_arch_in_ob(at, op); | | depl = present_arch_in_ob(at, op); |
if (depl!=NULL) { | | if (depl!=NULL) { |
for (i = 0; i < 7; i++) | | for (i = 0; i < NUM_STATS; i++) |
if (get_attr_value(&depl->stats, i)) { | | if (get_attr_value(&depl->stats, i)) { |
new_draw_info(NDI_UNIQUE,0,op, restore_msg[i]); | | new_draw_info(NDI_UNIQUE,0,op, restore_msg[i]); |
} | | } |
| | |
* tries to randomly reassign the excess stat | | * tries to randomly reassign the excess stat |
*/ | | */ |
int i,j; | | int i,j; |
for(i=0;i<7;i++) { | | for(i=0;i<NUM_STATS;i++) { |
sint8 stat=get_attr_value(stats,i); | | sint8 stat=get_attr_value(stats,i); |
int race_bonus = get_attr_value(&(pl->arch->clone.stats),i); | | int race_bonus = get_attr_value(&(pl->arch->clone.stats),i); |
stat += get_attr_value(ns,i); | | stat += get_attr_value(ns,i); |