|
|
|
|
|
|
|
|
|
|
|
|
Re: New feature: Mercs need food and water to survive[message #309024]
|
Mon, 13 August 2012 23:18
|
|
Flugente |
|
Messages:3509
Registered:April 2009 Location: Germany |
|
|
@Slax: I've committed the food values you provided. Thanks for that.
The mercs will refuse to eat/drink something if they are already over 50%. However, on combo food items, they may do so if they are still thirsty/hungry.
Also, if a food portion is big enough, you can still go over 50%.
The third way to get over 50% is with combined food/drug items. The drug effects are attributed first, you cannot 'resist' the food part. (new code from today)
These are the only ways to go over the 50%. However, as you can get stat damage once you are over 50%, I changed that today (r5468):
Your mercs will stop eating (except for the above methods) at 50%. Stat damage will only start at 75%.
I also changed the messages for stat damages. You will get different messages, depending on wether you are over- or underfed.
@Bambusar: Fixed in r5468.
Nav|Naf
BTW, I noticed, that mercs wouldn't auto-feed when sleeping. If merc is tired enough, he can get past stat losing threshold even with enough water on him.
They are too lazy to have a drink during sleep
Of course not. Unless you are a sleepwalker, nobody can eat while sleeping I intended that.
Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: New feature: Mercs need food and water to survive[message #309241]
|
Sat, 18 August 2012 02:05
|
|
Flugente |
|
Messages:3509
Registered:April 2009 Location: Germany |
|
|
In the current trunk, there is no preplaced food in the maps, as that would, well, require editing the maps.
Note that you can either increase the amount of points food gives in Data-1.13/TableData/Food.xml, or you can control the base digestion value every hour in the JA2Options.ini with the settings FOOD_DIGESTION_HOURLY_BASE_FOOD and FOOD_DIGESTION_HOURLY_BASE_DRINK. Lower those 2 values to lower overall consumption.
Taking food out of the sector inventory while auto-eating can be coded, but has very very severe drawbacks. The game only knows the inventory of the currently loaded sector. Therefore we would have to load every sector inventory where a hungry merc is, first decay food there, then eat it, then save the inventory again. Theoretically for 32 different sectors. Every hour.
I once did that for decay, but it was terribly slow, and I now found a better way to decay food.
So no, I won't change that. Just keep a stash of food in your inventory.
Report message to a moderator
|
|
|
|
|
|
Re: New feature: Mercs need food and water to survive[message #309265]
|
Sat, 18 August 2012 21:14
|
|
madwolf |
|
Messages:11
Registered:May 2006 |
|
|
As I stated already, i really love the food system, It enhances the game to a "logistics" simulation too.
What I really can't stand much is having to manually make all the mercs eat to prevent negative modifiers.
I played a lot with this feature on and I seen that eating is annoying because it usually goes like this:
hover mouse over merc stats and see:
water:-10, food:-5
eat some food
drink 2 times the canteen
hover again mouse over merc and see stats:
water:-1, food:-2
eat some food
drink 1 time the canteen
hover again mouse over merc stats to see status; finally ok
repeat per 16 mercs....
I really wish, as I said before, that merc autouse of food and drink from inventory could be configurable, to allow every player the same level of customization of the other features of this great mod.
thanks for your time
EDIT:
Just my 2 cents:
i had great and quite satisfing results by doubling every item food and thirst values and increasing the food digestion time to this levels:
FOOD_DIGESTION_HOURLY_BASE_FOOD = 60
FOOD_DIGESTION_HOURLY_BASE_DRINK = 130
I found this values quite realistic, as my mercs usually go around with about 2 canteens, 4 spam and 4 canned vegetables (to have meat and vegetables) and this quantity is enought for about 2 days (as it should be in RL)
[Updated on: Sat, 18 August 2012 21:20] by Moderator Report message to a moderator
|
Private
|
|
|
|
|
|
|
|