More vocabulary handlers.
This commit is contained in:
parent
ff66456cb0
commit
21adfe0807
2 changed files with 10 additions and 0 deletions
|
@ -7,6 +7,15 @@
|
||||||
|
|
||||||
int carry(long obj)
|
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);
|
if (TOTING(obj)) return(2011);
|
||||||
SPK=25;
|
SPK=25;
|
||||||
if (obj == PLANT && game.prop[PLANT] <= 0)SPK=115;
|
if (obj == PLANT && game.prop[PLANT] <= 0)SPK=115;
|
||||||
|
|
1
advent.h
1
advent.h
|
@ -11,6 +11,7 @@
|
||||||
#define MAXTRS 79
|
#define MAXTRS 79
|
||||||
#define MAXPARMS 25
|
#define MAXPARMS 25
|
||||||
#define INVLIMIT 7
|
#define INVLIMIT 7
|
||||||
|
#define INTRANSITIVE -1 /* illegal object number */
|
||||||
|
|
||||||
typedef struct lcg_state
|
typedef struct lcg_state
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue