Author Topic: How exactly does Food work?  (Read 1081 times)

Djemynai

  • Guest
How exactly does Food work?
« on: 8 December 2013, 13:31:15 »
Hello,

yesterday I experimented a little more with the game (using Tech for now for practice), and I'm a bit confused about food.

In the upper left, it says a/b(c), in my case it was 770/770(+22) or something like that. So my questions in particular are these:

1. What does the number in brackets signify? When is it negative, when positive?
2. I think when the food is maxed out, my units starve (die at once). But is this caused by a and b being equal, or is it caused by the number in the brackets being positive?
3. I thought I needed to produce cows to increase my food. But I think I tried producing cows, and it didn't change the food count anymore. What happened? And are cows the only way to help with food (apart from pigs, I mean)?

Thank you.

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: How exactly does Food work?
« Reply #1 on: 8 December 2013, 16:10:24 »
I'm assuming we're talking a faction which requires food (not all of them do). Most if not all of your units require food, some require more than one unit per game cycle.

A: Food units you have stored
B: Maximum food units you can store
C: Food units you will need in the next game cycle  -  food units you will produce during the next game cycle

When you are running low on stored food (more precisely: when, unless you make changes, you will run out of food within the next few game cycles) the food indicator will change color towards red and start blinking. Once your stored food reaches 0, you are unable to create more food consuming units and your existing units will starve, loosing 200 HP per game cycle while your stored food remains at 0.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

Djemynai

  • Guest
Re: How exactly does Food work?
« Reply #2 on: 8 December 2013, 16:40:33 »
Okay, it took me a while to understand what you meant. But testing this in-game (and watching my units starve again), I now understand it well.

A cow produces 10 food every cycle.

The number on the left of a/b is how much food I have in reserve, and this food will only be touched (reduced/"eaten") when the value (c) is negative. Negative c means that the units are eating more food than I am producing each cycle. Value b is simply the amount of reserve food I could be having, so now I know it's not necessary to have a full stock of food. It only needs to not be empty and the food intake mustn't exceed the produced food (unless there is some saved up food for emergency situations). Okay!

This clears up a lot of the confusion I've had, thank you.

ctz

  • Summoner
  • **
  • Posts: 46
  • aka cathaur, formerly lyra
    • View Profile
Re: How exactly does Food work?
« Reply #3 on: 8 December 2013, 18:57:00 »
loosing 200 HP per game cycle

For a 600 HP worker, this is correct.  In the general case, units lose floor((Max pre-level HP)/3) per food cycle.

Thus workers (600 HP, 200 HP/cycle) and unleveled guards (900 HP, 300 HP/cycle) die in 3 cycles, and swordmen (700 HP, 233 HP/cycle) die in 4 cycles.  Elite guards (1350 HP, 300 HP/cycle) die in 5 cycles.

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: How exactly does Food work?
« Reply #4 on: 8 December 2013, 19:52:01 »
Thanks for correcting me there, ctz.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·