- New xml: FoodOpinion.xml allows individual opinions on individual food items for each merc, the <bMoraleMod>-tag in Food.xml was removed.

- Maximum number of food items was increased to 500 (was 128).

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7454 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2014-08-28 20:12:06 +00:00
parent d8cdfc927c
commit a37cf0f8f1
17 changed files with 303 additions and 106 deletions
+10 -2
View File
@@ -1,7 +1,8 @@
#ifndef __FOOD_H
#define __FOOD_H
#include "soldier control.h"
#include "Soldier Control.h"
#include "soldier profile type.h"
#define FOOD_MIN - 20000
#define FOOD_MAX 20000
@@ -52,13 +53,20 @@ typedef struct
INT32 bFoodPoints; // points that will be added to our drink level
INT32 bDrinkPoints; // points that will be added to our drink level
UINT16 ubPortionSize; // how much is 'eaten' as a portion (percentage)
INT8 bMoraleMod; // morale modificator for eating this
FLOAT usDecayRate; // rate at which food decays
} FOODTYPE;
//GLOBALS
extern FOODTYPE Food[FOOD_TYPE_MAX];
// mercs can have different opinions on food
typedef struct
{
INT8 sFoodOpinion[FOOD_TYPE_MAX];
} FOODOPINIONS;
extern FOODOPINIONS FoodOpinions[NUM_PROFILES];
// for determining the type of water source a sector has
typedef enum
{