diff --git a/app/types/game.ts b/app/types/game.ts
index 1e6303a..53887e0 100644
--- a/app/types/game.ts
+++ b/app/types/game.ts
@@ -76,6 +76,7 @@ export interface VillageState {
population: Population
/** Villagers drafted as militia: they eat but don't work until `until`. */
levy: Levy
+ starvation: Starvation
/** Own units standing in the village. */
troops: Partial>
/** One entry per building that trains units, in building order. */
@@ -110,6 +111,16 @@ export interface Levy {
seconds: number
}
+/** Upkeep above income drains the food stock; once it is empty, soldiers desert after a grace time. */
+export interface Starvation {
+ /** When the stock runs out at the current rates; null while food isn't draining. */
+ food_empty_at: string | null
+ /** Set while the stock is empty and the village eats more than it harvests. */
+ since: string | null
+ /** The next desertion wave, while starving. */
+ desertion_at: string | null
+}
+
/** A barracks, stable, workshop or academy: what it trains and its own queue. */
export interface MilitaryBuilding {
building_id: number
diff --git a/i18n/pages/village.ts b/i18n/pages/village.ts
index 1d83b3e..e3eec1b 100644
--- a/i18n/pages/village.ts
+++ b/i18n/pages/village.ts
@@ -64,6 +64,14 @@ export default {
recruit: 'Recruit',
hint: 'Build barracks to recruit units.',
},
+ food: {
+ runs_out_in: 'Your village eats more than it harvests. Food runs out in',
+ then: 'Once the stores are empty, soldiers start to desert after a grace period.',
+ starving: 'Your village is starving.',
+ desertion_in: 'Soldiers desert in',
+ fix: 'More farms or fewer soldiers stop it.',
+ fix_levy: 'The drafted militia leave the farms unworked: ending the levy helps.',
+ },
levy: {
title: 'Levy',
militia: 'Militia',