mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
- 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:
+10
-2
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user