- a decision that acted keeps its move surplus or debt into the next turn
- dropped meals are never resumed
- a meal or fire cut short by harm or an order hands back to its task
- a task NPC lying down to rest keeps its task and backlog for afterwards
- stopping task in dialogue drops the one put aside
- a camp mission keeps the task a forage interrupted, not the forage
- worker's task, or the task it walks to, waits while the worker is away
- mission hours count as neither moves nor task progress
- task put aside is saved with the NPC and dropped on import
- camp meal gives the eater the calories and vitamins it takes from the larder
- refused personal meal goes back to the larder stock it came from
- food paid for a mission stays spent, eaten or not
- added upgrade_mission_name helper
- name_display_of uses it for upgrade missions
- upgrade loop passes the known upgrade name
- added camp upgrade naming test
Convert faction food supply tracking from a single set of nutrients to a
list of pairs of time_point, nutrients - this is the nutrients, and what
time they expire that. When evaluating food supply, discard any
nutrients that are expired. non-perishable nutrients use the special
case of calendar::turn_zero.
Food is consumed first from the soonest to expire entry, and only
consumed from the non-perishable stockpile once all perishable entries
have been consumed.
For simplicity, rot points are truncated to the most recent time point
that is zero mod 1_days (the nearest day), and all added foods with that
rot point are counted together.
Convert basecamp::camp_food_supply to simply supply calories from store,
addition must be done through the faction or by distributing through the
camp.
The impact of the "pantry" basecamp feature on food supply is no longer
counted, because rot is no longer being used to reduce calories added to
a permanent non-perishable store.
Dialogue can no longer modify faction camp food or vitamin stores
because there are no use cases. Because of the higher degree of
complication now, it would be better to be implement once a use case
emerges.
Faction templates can be defined with the full features, but it's very
opaque. This could be improved in the future.
* Move to nutrients struct
* Placeholder default struct constructor
* et me compile for a moment
* Distribute food distributes vitamins
* Do better math with struct operators
* camp_food_supply returns a nutrient struct
* Move camp food supply functions to header
* PCs eating from the camp normally also consume vitamins
* Even better-er handling of food supply
* Oops, subtract calories when NPCs eat don't add
* Debug menu can see/modify vitamins in larder
* Reimplement saving/loading for camp larder
* better-er (de)serialization
* Squash compiler warnings for nutrients *= operator
* Remove accidental debugmsg
* Tests for camp vitamins (sorted declarations)
* Various clang fixes
* Factions load food_supply struct