(player_set_nstat): New, factored out of init_nats().

(init_nats): Use it.  No functional change.

(status): Use it.  This sets player->nstat from scratch, not just
MONEY and CAP.
(brea): Don't bother to update player->nstat, status() will.
This commit is contained in:
Markus Armbruster 2007-12-08 19:27:41 +00:00
parent 96b20c90b2
commit 2b5ebf1f3f
4 changed files with 31 additions and 28 deletions

View file

@ -411,6 +411,7 @@ extern int getminleft(time_t, int);
/* empmod.c */
/* init_nats.c */
extern int init_nats(void);
extern int player_set_nstat(struct player *, struct natstr *);
/* login.c */
extern void player_login(void *);
/* nat.c */