Skip to content

Commit

Permalink
Use wash interface to remake a batch heat items menu (#72514)
Browse files Browse the repository at this point in the history
* Update iuse.cpp

* frame copy

* DEBUG TOOL

* basic fream

* UI and basic select logic

* HOTPLATE 2

* Now connected tool can be found

* C++ part finished

* little change

* Astyled and msg

* remove unused

* remove unused

* sorting...

* BUG fix, change require based on weight

* Update src/iuse.cpp

Co-authored-by: Jianxiang Wang (王健翔) <[email protected]>

* Update iuse.cpp

* UPS supported.

* unrecognized words

* Don't add liquid on floor

* add more debug tool

* JSON part (With out mods)

* Without mod

* Update data/json/item_actions.json

Co-authored-by: anothersimulacrum <[email protected]>

* reframe

* Little change

* clang tidy

* Update src/activity_actor.cpp

Co-authored-by: anothersimulacrum <[email protected]>

* Update src/activity_actor.cpp

Co-authored-by: anothersimulacrum <[email protected]>

* Update src/activity_actor.cpp

Co-authored-by: anothersimulacrum <[email protected]>

* Update src/activity_actor_definitions.h

Co-authored-by: anothersimulacrum <[email protected]>

* Update dining_kitchen.json

* Update plating.json

* Update dining_kitchen.json

* Update plating.json

* Update plating.json

* Update dining_kitchen.json

* Update plating.json

* Update dining_kitchen.json

* Update plating.json

* cost formula

* formula change again

* typo

* Do the checking

* Duplicate thing lol

---------

Co-authored-by: Jianxiang Wang (王健翔) <[email protected]>
Co-authored-by: anothersimulacrum <[email protected]>
  • Loading branch information
3 people authored May 9, 2024
1 parent fa8ae46 commit 67902af
Show file tree
Hide file tree
Showing 27 changed files with 595 additions and 29 deletions.
15 changes: 15 additions & 0 deletions data/json/item_actions.json
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,21 @@
"id": "HEAT_FOOD",
"name": { "str": "Heat up food (in it)" }
},
{
"type": "item_action",
"id": "HEAT_LIQUID_ITEMS",
"name": { "str": "Heat up liquid items" }
},
{
"type": "item_action",
"id": "HEAT_SOLID_ITEMS",
"name": { "str": "Heat up solid items" }
},
{
"type": "item_action",
"id": "HEAT_ALL_ITEMS",
"name": { "str": "Heat up solid or liquid items" }
},
{
"type": "item_action",
"id": "HONEYCOMB",
Expand Down
2 changes: 2 additions & 0 deletions data/json/items/armor/helmets.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"warmth": 5,
"material_thickness": 2,
"qualities": [ [ "COOK", 3 ], [ "BOIL", 2 ], [ "CONTAIN", 1 ], [ "CHEM", 1 ] ],
"use_action": [ "HEAT_ALL_ITEMS" ],
"techniques": [ "WBLOCK_1" ],
"armor": [
{
Expand Down Expand Up @@ -46,6 +47,7 @@
"warmth": 70,
"material_thickness": 1,
"qualities": [ [ "COOK", 2 ], [ "BOIL", 1 ] ],
"use_action": [ "HEAT_ALL_ITEMS" ],
"techniques": [ "WBLOCK_1" ],
"armor": [
{
Expand Down
30 changes: 30 additions & 0 deletions data/json/items/containers/containers.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
}
],
"qualities": [ [ "BOIL", 2 ], [ "CONTAIN", 1 ] ],
"use_action": [ "HEAT_LIQUID_ITEMS" ],
"flags": [ "COLLAPSE_CONTENTS" ],
"melee_damage": { "bash": 8 }
},
Expand Down Expand Up @@ -125,6 +126,7 @@
}
],
"qualities": [ [ "BOIL", 2 ], [ "CONTAIN", 1 ] ],
"use_action": [ "HEAT_LIQUID_ITEMS" ],
"flags": [ "COLLAPSE_CONTENTS" ],
"melee_damage": { "bash": 8 }
},
Expand Down Expand Up @@ -525,6 +527,7 @@
}
],
"qualities": [ [ "BOIL", 1 ] ],
"use_action": [ "HEAT_LIQUID_ITEMS" ],
"flags": [ "COLLAPSE_CONTENTS" ],
"melee_damage": { "bash": 2 },
"//2": "Based on https://www.amazon.com/dp/B09K2VQLZV"
Expand Down Expand Up @@ -859,6 +862,7 @@
"max_contains_weight": "3 kg"
}
],
"use_action": [ "HEAT_LIQUID_ITEMS" ],
"qualities": [ [ "BOIL", 2 ], [ "CONTAIN", 1 ] ]
},
{
Expand Down Expand Up @@ -1555,6 +1559,7 @@
"max_contains_weight": "20 kg"
}
],
"use_action": [ "HEAT_ALL_ITEMS" ],
"qualities": [ [ "BOIL", 2 ], [ "CONTAIN", 1 ] ]
},
{
Expand Down Expand Up @@ -1680,6 +1685,7 @@
}
],
"qualities": [ [ "BOIL", 1 ] ],
"use_action": [ "HEAT_LIQUID_ITEMS" ],
"flags": [ "COLLAPSE_CONTENTS" ],
"melee_damage": { "bash": 2 }
},
Expand Down Expand Up @@ -1825,6 +1831,7 @@
}
],
"qualities": [ [ "BOIL", 1 ] ],
"use_action": [ "HEAT_LIQUID_ITEMS" ],
"flags": [ "COLLAPSE_CONTENTS" ]
},
{
Expand All @@ -1850,6 +1857,7 @@
}
],
"qualities": [ [ "BOIL", 1 ] ],
"use_action": [ "HEAT_LIQUID_ITEMS" ],
"volume": "525 ml",
"flags": [ "COLLAPSE_CONTENTS" ]
},
Expand Down Expand Up @@ -1947,6 +1955,7 @@
"max_contains_weight": "1 kg"
}
],
"use_action": [ "HEAT_LIQUID_ITEMS" ],
"qualities": [ [ "BOIL", 2 ], [ "CONTAIN", 1 ] ]
},
{
Expand Down Expand Up @@ -1974,6 +1983,7 @@
"max_contains_weight": "25 kg"
}
],
"use_action": [ "HEAT_LIQUID_ITEMS" ],
"qualities": [ [ "BOIL", 2 ], [ "CONTAIN", 1 ] ],
"melee_damage": { "bash": 1 }
},
Expand Down Expand Up @@ -2002,6 +2012,7 @@
"max_contains_weight": "50 kg"
}
],
"use_action": [ "HEAT_LIQUID_ITEMS" ],
"qualities": [ [ "BOIL", 2 ], [ "CONTAIN", 1 ] ]
},
{
Expand Down Expand Up @@ -2056,6 +2067,7 @@
}
],
"qualities": [ [ "BOIL", 1 ], [ "CONTAIN", 1 ] ],
"use_action": [ "HEAT_LIQUID_ITEMS" ],
"flags": [ "SOFT", "NO_REPAIR", "COLLAPSE_CONTENTS" ]
},
{
Expand Down Expand Up @@ -2086,6 +2098,7 @@
}
],
"qualities": [ [ "BOIL", 1 ] ],
"use_action": [ "HEAT_LIQUID_ITEMS" ],
"flags": [ "COLLAPSE_CONTENTS" ],
"melee_damage": { "bash": 3 }
},
Expand Down Expand Up @@ -2117,6 +2130,7 @@
}
],
"qualities": [ [ "BOIL", 1 ], [ "CONTAIN", 1 ] ],
"use_action": [ "HEAT_LIQUID_ITEMS" ],
"flags": [ "COLLAPSE_CONTENTS" ],
"melee_damage": { "bash": 1 }
},
Expand Down Expand Up @@ -2148,6 +2162,7 @@
}
],
"qualities": [ [ "BOIL", 1 ], [ "CONTAIN", 1 ] ],
"use_action": [ "HEAT_LIQUID_ITEMS" ],
"flags": [ "COLLAPSE_CONTENTS" ]
},
{
Expand Down Expand Up @@ -2180,6 +2195,7 @@
}
],
"qualities": [ [ "BOIL", 1 ], [ "CONTAIN", 1 ] ],
"use_action": [ "HEAT_LIQUID_ITEMS" ],
"flags": [ "COLLAPSE_CONTENTS" ]
},
{
Expand Down Expand Up @@ -2209,6 +2225,7 @@
}
],
"qualities": [ [ "BOIL", 1 ], [ "CONTAIN", 1 ] ],
"use_action": [ "HEAT_LIQUID_ITEMS" ],
"flags": [ "COLLAPSE_CONTENTS" ]
},
{
Expand Down Expand Up @@ -2250,6 +2267,7 @@
]
},
"qualities": [ [ "BOIL", 1 ] ],
"use_action": [ "HEAT_LIQUID_ITEMS" ],
"flags": [ "BELTED", "OVERSIZE", "WATER_FRIENDLY", "COLLAPSE_CONTENTS" ],
"melee_damage": { "bash": 3 }
},
Expand Down Expand Up @@ -2376,6 +2394,7 @@
}
],
"qualities": [ [ "BOIL", 1 ] ],
"use_action": [ "HEAT_LIQUID_ITEMS" ],
"flags": [ "COLLAPSE_CONTENTS" ],
"melee_damage": { "bash": 4 }
},
Expand Down Expand Up @@ -2403,6 +2422,7 @@
"max_contains_weight": "2 kg"
}
],
"use_action": [ "HEAT_LIQUID_ITEMS" ],
"qualities": [ [ "CONTAIN", 1 ], [ "BOIL", 2 ] ],
"melee_damage": { "bash": 1 }
},
Expand Down Expand Up @@ -2496,6 +2516,7 @@
"max_contains_weight": "100 kg"
}
],
"use_action": [ "HEAT_LIQUID_ITEMS" ],
"qualities": [ [ "BOIL", 2 ], [ "CONTAIN", 1 ] ],
"flags": [ "COLLAPSE_CONTENTS" ],
"melee_damage": { "bash": 10 }
Expand Down Expand Up @@ -2526,6 +2547,7 @@
"max_contains_weight": "120 kg"
}
],
"use_action": [ "HEAT_LIQUID_ITEMS" ],
"qualities": [ [ "BOIL", 2 ], [ "CONTAIN", 1 ] ],
"flags": [ "COLLAPSE_CONTENTS" ],
"melee_damage": { "bash": 10 }
Expand Down Expand Up @@ -2581,6 +2603,7 @@
"max_contains_weight": "120 kg"
}
],
"use_action": [ "HEAT_LIQUID_ITEMS" ],
"qualities": [ [ "BOIL", 2 ], [ "CONTAIN", 1 ] ],
"flags": [ "COLLAPSE_CONTENTS" ],
"melee_damage": { "bash": 6 }
Expand Down Expand Up @@ -2612,6 +2635,7 @@
"max_contains_weight": "4 kg"
}
],
"use_action": [ "HEAT_LIQUID_ITEMS" ],
"qualities": [ [ "BOIL", 2 ], [ "CONTAIN", 1 ] ],
"flags": [ "COLLAPSE_CONTENTS" ],
"melee_damage": { "bash": 5 }
Expand Down Expand Up @@ -3514,6 +3538,7 @@
"//2": "mathematically perfect sprehe out of sheet is 2110 ml, but we are less than perfect",
"pocket_data": [ { "pocket_type": "CONTAINER", "max_contains_volume": "1500 ml", "max_contains_weight": "6 kg" } ],
"qualities": [ [ "COOK", 1 ] ],
"use_action": [ "HEAT_SOLID_ITEMS" ],
"flags": [ "SOFT", "NO_REPAIR", "COLLAPSE_CONTENTS" ]
},
{
Expand Down Expand Up @@ -3777,6 +3802,7 @@
}
],
"qualities": [ [ "BOIL", 1 ] ],
"use_action": [ "HEAT_LIQUID_ITEMS" ],
"flags": [ "COLLAPSE_CONTENTS" ]
},
{
Expand All @@ -3803,6 +3829,7 @@
"max_contains_weight": "4000 g"
}
],
"use_action": [ "HEAT_LIQUID_ITEMS" ],
"qualities": [ [ "CONTAIN", 1 ], [ "BOIL", 2 ] ]
},
{
Expand Down Expand Up @@ -4684,6 +4711,7 @@
"max_contains_weight": "250 kg"
}
],
"use_action": [ "HEAT_LIQUID_ITEMS" ],
"qualities": [ [ "BOIL", 2 ], [ "CONTAIN", 1 ] ],
"flags": [ "COLLAPSE_CONTENTS" ],
"melee_damage": { "bash": 8 }
Expand Down Expand Up @@ -4713,6 +4741,7 @@
"max_contains_weight": "500 kg"
}
],
"use_action": [ "HEAT_LIQUID_ITEMS" ],
"qualities": [ [ "BOIL", 2 ], [ "CONTAIN", 1 ] ],
"flags": [ "COLLAPSE_CONTENTS" ],
"melee_damage": { "bash": 8 }
Expand Down Expand Up @@ -4839,6 +4868,7 @@
}
],
"qualities": [ [ "BOIL", 1 ], [ "CONTAIN", 1 ] ],
"use_action": [ "HEAT_LIQUID_ITEMS" ],
"flags": [ "COLLAPSE_CONTENTS" ]
},
{
Expand Down
4 changes: 3 additions & 1 deletion data/json/items/generic.json
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,7 @@
"volume": "263 ml",
"to_hit": -1,
"qualities": [ [ "BOIL", 2 ], [ "CONTAIN", 1 ] ],
"use_action": [ "HEAT_LIQUID_ITEMS" ],
"pocket_data": [
{
"pocket_type": "CONTAINER",
Expand Down Expand Up @@ -1150,7 +1151,8 @@
"volume": "25 ml",
"to_hit": -5,
"milling": { "into": "meal_bone_tainted", "recipe": "meal_bone_tainted_mill_6_1" },
"qualities": [ [ "COOK", 1 ] ]
"qualities": [ [ "COOK", 1 ] ],
"use_action": [ "HEAT_SOLID_ITEMS" ]
},
{
"type": "GENERIC",
Expand Down
Loading

0 comments on commit 67902af

Please sign in to comment.