Moved state_change to misc.c to start using it in main.c, too

This commit is contained in:
NHOrus 2017-07-05 20:23:34 +03:00
parent df422fe2ed
commit 40ff648431
5 changed files with 17 additions and 14 deletions

View file

@ -6,13 +6,6 @@
static int fill(token_t, token_t);
static void state_change(long obj, long state)
/* Object must have a change-message list for this to be useful; only some do */
{
game.prop[obj] = state;
pspeak(obj, change, state, true);
}
static int attack(struct command_t *command)
/* Attack. Assume target if unambiguous. "Throw" also links here.
* Attackable objects fall into two categories: enemies (snake,