1
DF Modding / Question about modability of features (stockpiles, food)
« on: December 09, 2022, 09:20:08 am »
Hi,
I am trying to add new types of food ingredients for cooking. I have trouble with some things:
1) I would like seasoning only to be used at most once per cooked item. Salt-only foods do not sound all that pleasant to eat for example. Is there a way to do it in raws?
1.5) If there is a stack of items in a bag, is there a way to tell that only one stack is to be used when cooking?
2) How to implement the ability to store items in food stockpiles? These raws:
Make cooking salt show up in the section for milled plants of stockpile settings, but dwarves do seem to carry it there. Neither it is being carried to another place where that material shows - in mineral stockpile settings. is the [IS_STONE] flag preventing that?
For completeness, this is how that salt bag is being created:
I am trying to add new types of food ingredients for cooking. I have trouble with some things:
1) I would like seasoning only to be used at most once per cooked item. Salt-only foods do not sound all that pleasant to eat for example. Is there a way to do it in raws?
1.5) If there is a stack of items in a bag, is there a way to tell that only one stack is to be used when cooking?
2) How to implement the ability to store items in food stockpiles? These raws:
Code: [Select]
[OBJECT:INORGANIC]
[INORGANIC:COOKING_WITH_SALT_SALT]
[USE_MATERIAL_TEMPLATE:STONE_TEMPLATE]
[STATE_NAME_ADJ:ALL:kitchen salt]
[DISPLAY_COLOR:7:7:1][TILE:127]
[SOLID_DENSITY:2787]
[IS_STONE]
[EDIBLE_COOKED]
[POWDER_MISC_PLANT]
[MATERIAL_VALUE:3]
[NO_STONE_STOCKPILE]
[STATE_COLOR:ALL_SOLID:IVORY]
Make cooking salt show up in the section for milled plants of stockpile settings, but dwarves do seem to carry it there. Neither it is being carried to another place where that material shows - in mineral stockpile settings. is the [IS_STONE] flag preventing that?
For completeness, this is how that salt bag is being created:
Code: [Select]
[OBJECT:REACTION]
[REACTION:COOKING_WITH_SALT_MILL_ROCK_SALT]
[NAME:Grind rock salt into bag of salt]
[BUILDING:QUERN:CUSTOM_SHIFT_S]
[BUILDING:MILLSTONE:CUSTOM_SHIFT_S]
[REAGENT:rocksalt:1:BOULDER:NO_SUBTYPE:ROCK:ROCK_SALT]
[REAGENT:bag:1:BAG:NONE:NONE:NONE]
[EMPTY]
[PRESERVE_REAGENT]
[DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
[PRODUCT:100:4:POWDER_MISC:NONE:INORGANIC:COOKING_WITH_SALT_SALT]
[PRODUCT_DIMENSION:150]
[PRODUCT_TO_CONTAINER:bag]
[SKILL:MILLING]