version 1.28 | | version 1.29 |
---|
| | |
/* | | /* |
* static char *rcsid_player_c = | | * static char *rcsid_player_c = |
* "$Id: player.c,v 1.28 2000/12/17 00:39:16 cvs Exp $"; | | * "$Id: player.c,v 1.29 2000/12/18 07:38:25 cvs Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
op->contr=p; /* this aren't yet in archetype */ | | op->contr=p; /* this aren't yet in archetype */ |
op->speed_left=0.5; | | op->speed_left=0.5; |
op->speed=1.0; | | op->speed=1.0; |
op->direction=0; | | op->direction=5; /* So player faces south */ |
op->stats.wc=2; | | op->stats.wc=2; |
op->run_away = 25; /* Then we panick... */ | | op->run_away = 25; /* Then we panick... */ |
| | |
| | |
p->last_spell= -1; | | p->last_spell= -1; |
p->last_value= -1; | | p->last_value= -1; |
p->last_speed= -1; | | p->last_speed= -1; |
p->shoottype=range_none,p->shootstrength=5; | | p->shoottype=range_none; |
p->last_shoot= range_bottom; | | p->last_shoot= range_bottom; |
p->listening=9; | | p->listening=9; |
p->golem=NULL; | | p->golem=NULL; |
| | |
| | |
enter_exit(op,NULL); | | enter_exit(op,NULL); |
| | |
| | SET_ANIMATION(op, 2); /* So player faces south */ |
/* Enter exit adds a player otherwise */ | | /* Enter exit adds a player otherwise */ |
if(op->contr->loading == NULL) { | | if(op->contr->loading == NULL) { |
insert_ob_in_map(op,op->map,op); | | insert_ob_in_map(op,op->map,op); |
| | |
op->name = name; | | op->name = name; |
op->x = x; | | op->x = x; |
op->y = y; | | op->y = y; |
| | SET_ANIMATION(op, 2); /* So player faces south */ |
insert_ob_in_map (op, op->map, op); | | insert_ob_in_map (op, op->map, op); |
strncpy(op->contr->title,op->arch->clone.name,MAX_NAME); | | strncpy(op->contr->title,op->arch->clone.name,MAX_NAME); |
add_statbonus(op); | | add_statbonus(op); |