Home » MODDING HQ 1.13 » Flugente's Magika Workshop » New feature: Mercs need food and water to survive
Re: New feature: Mercs need food and water to survive[message #310566] Mon, 24 September 2012 13:04 Go to previous messageGo to previous message
usrbid is currently offline usrbid

 
Messages:1506
Registered:December 2008
Flugente
... The auto-feed starts at -25%. I will not externalise that value, because I WANT it to be negative. This results in auto-feeding being suboptimal. This results in the player paying attention to his mercs and giving them lunch breaks being more effective. Micromanagement should have benefits after all.


While I agree that micromanagement should have benefits, we cannot forsee how modders may use the food feature in the future. (I am just making stuff up now as an example) For example someone may mod an addiction to a substance like Spice from Dune as a food and may need to change the -25% value.

Flugente
I will not externalise all te penalties, because externalising this

typedef struct
{
	INT32	bThreshold;
	INT8	bMoraleModifier;		// absolute modifier to max morale
	INT8	bSleepModifier;			// absolute modifier
	INT8	bBreathRegenModifier;		// percentage modifier
	INT8	bAssignmentEfficiencyModifier;	// percentage modifier
	UINT8	ubStatDamageChance;		// percentual chance to receive damage to life and strength
} FoodMoraleMod;

FoodMoraleMod FoodMoraleMods[NUM_FOOD_MORALE_TYPES] =
{
	{ 100000,	-10,	-3,	-75,	-75,	2},	//	FOOD_STUFFED
	{ 5000,		-5,	-2,	-5,	-5,	0},	//	FOOD_EXTREMELY_FULL
	{ 2500,		2,	-1,	-1,	0,	0},	//	FOOD_FULL
	{ 1000,		5,	0,	0,	0,	0},	//	FOOD_SLIGHTLY_FULL

	{ 0,		0,	0,	0,	0,	0},	//	FOOD_NORMAL

	{ -1000,	0,	0,	0,	0,	0},	//	FOOD_LOW
	{ -2500,	-2,	0,	0,	0,	0},	//	FOOD_EVEN_LOWER
	{ -5000,	-10,	-1,	-10,	-10,	5},	//	FOOD_VERY_LOW
	{ -7500,	-20,	-2,	-25,	-25,	25},	//	FOOD_DANGER
	{ -8750,	-30,	-2,	-50,	-50,	75},	//	FOOD_DESPERATE
	{ -10000,	-50,	-3,	-80,	-75,	100},	//	FOOD_STARVING
};


would result in a lot of variables...



While I agree that this is a lot of variables and fairly complicated, we externalized comparable things in the past, like movement cost between sectors or garrison patrols, you can use these examples to externalize the food values.

I am not trying to disrespect you for your food code, I like it and I think it is a good feature. I am trying to help you support your feature by making it more accessible to modders, meaning other people can use what you did in other ways in the future.

For example the new attachment system was really not envisioned as a molle extension for LBE gear, however Smeagol saw the opportunity and implemented (or he wanted to) a new system for allowing the player to highly customize LBE gear.

The original intention can be re-used by others in the future for things we didn't predict at the time the original feature was implemented - the code transcends mere existence / survival by allowing customization.

Report message to a moderator

Sergeant Major

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: New feature: strategic militia command
Next Topic: New Feature: ballistic shields
Goto Forum:
  


Current Time: Tue Dec 03 01:14:28 GMT+2 2024

Total time taken to generate the page: 0.06686 seconds