]> git.pond.sub.org Git - empserver/blobdiff - include/item.h
client: Unbreak standalone build
[empserver] / include / item.h
index f81c1ff46ca47eff9d3d23abbc7d881020ec61c5..dcebcc6f6d69cfcda41429a43bb20c619e962677 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2013, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2021, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                Ken Stevens, Steve McClure, Markus Armbruster
  *
  *  Empire is free software: you can redistribute it and/or modify
@@ -27,7 +27,7 @@
  *  item.h: Definitions for item characteristics stuff
  *
  *  Known contributors to this file:
- *
+ *     Markus Armbruster, 2004-2020
  */
 
 #ifndef ITEM_H
@@ -70,7 +70,7 @@ typedef enum {
 struct ichrstr {
     char i_mnem;               /* usually the initial letter */
     i_type i_uid;              /* index in ichr[] */
-    int i_value;               /* mortgage value */
+    int i_power;               /* power value of 1000 items */
     int i_sell;                        /* can this be sold? */
     int i_lbs;                 /* how hard to move */
     int i_pkg[NUMPKG];         /* units for reg, ware, urb, bank */
@@ -80,7 +80,8 @@ struct ichrstr {
 
 /* variables using this structure */
 
-extern struct ichrstr ichr[I_MAX + 2];
+#define ICHR_SZ (I_MAX + 2)
+extern struct ichrstr ichr[ICHR_SZ];
 
 /* procedures using/returning this struct */