#include "prototypes.h"
static int get_minimum(struct lndstr *, int);
-static s_char *itemname(int);
static int s_commod(int, int, int, int, int, int);
/*
}
getvec(VT_ITEM, vec, (s_char *)&land, EF_LAND);
+ min = get_minimum(&land, type);
ip = &ichr[type];
weight = ((double)ip->i_lbs);
mobcost = move_cost * weight;
can_move = ((double)land.lnd_mobil / mobcost);
else
can_move = vec[type] - min;
- min = get_minimum(&land, type);
if (can_move > (vec[type] - min))
can_move = (vec[type] - min);
}
-static s_char *
-itemname(int type)
-{
- register int t;
- register struct ichrstr *ip;
-
- t = V_ITEM(type);
- for (ip = &ichr[1]; ip->i_mnem != 0; ip++) {
- if (t == ip->i_vtype)
- return ip->i_name;
- }
- return 0;
-}
-
/*
* We want to get enough shells to fire once,
* one update's worth of food, enough fuel for