Making a Food mod, nutrition value
How is the food nutrition value determined?
It is very simple: it is the charges of the item.
Do note, there is a global multiplier of 0.5 that effectively makes all food item nut half of the charges value.
Also, you cannot see the nutrition value correctly when you spawn the items directly to inventory. That is pure randomization by the game engine, rolling each time how many nu is left of the max charges.
How is food value determined?
Food price/value is calculated by the value of its ingredients.
Do note, each time a new game begins the global prices get randomized.
Fe. Food ingredients are inĀ %, so 800 means 8. So, if your food takes 8 cactus (1 cat) and one riceweed (2 cats) to make, the item will then cost 10 cats. Adjusted by the quality of the item.
This article is adapted from Making a Food mod, nutrition value on the Kenshi Fandom wiki, written by its contributors and licensed under CC BY-SA 3.0. It has been converted to Markdown, and its images and navigation boxes were left out.
Categories: