More vocabulary handlers.

This commit is contained in:
Eric S. Raymond 2017-06-09 02:12:59 -04:00
parent ff66456cb0
commit 21adfe0807
2 changed files with 10 additions and 0 deletions

View file

@ -7,6 +7,15 @@
int carry(long obj)
{
if (obj == INTRANSITIVE) {
/* Carry, no object given yet. OK if only one object present. */
if(game.atloc[game.loc] == 0 ||
game.link[game.atloc[game.loc]] != 0 ||
ATDWRF(game.loc) > 0)
return(8000);
obj=game.atloc[game.loc];
}
if (TOTING(obj)) return(2011);
SPK=25;
if (obj == PLANT && game.prop[PLANT] <= 0)SPK=115;

View file

@ -11,6 +11,7 @@
#define MAXTRS 79
#define MAXPARMS 25
#define INVLIMIT 7
#define INTRANSITIVE -1 /* illegal object number */
typedef struct lcg_state
{