CleverRaven / CleverRaven/Cataclysm-DDA

add "use items" menu item to crafting table [e]xamine menu

Open
#30,243 11 comments 1 reaction 0 assignees View on GitHub
(P3 - Medium) Crafting / Construction / Recipes Fields / Furniture / Terrain / Traps Info / User Interface
Dominant language
C++
Stars
13.2k
Forks
4.6k
Avg merge
2d 1h
Merged PRs (30d)
205

Description

problem: currently if you want to [a]pply a pot/pan/etc to heat up frozen food and the pot isn't in your inventory, the [a]pply menu lists all [a]pplyable items within the 3x3 squares centered on where your character is standing. frequently means there isn't a useful key assigned to the pot.

solution: add a "use items" menu item to the crafting table [e]xamine menu that performs an [a]pply action but filters the items to items that are on the crafting table you [e]xamined. now you can put your pot/heating tool on the table you use to craft food and only have three or four items to choose from rather than everything around you that can be [a]pplied.

a further enhancement would be to dynamically add menu items to the crafting menu that represent the [a]ppliable qualities of the items on the crafting table.

adding use item menu:
add use items

add dynamic menu items (assume there's a pot on the table):
dynamic menu

Contributor guide

Open the contributing guide

Research direction

Start by tracing the crafting table's examine menu and the existing [a]pply action. Confirm how items on the examined table are identified and how the menu filters them; done means a new "use items" entry applies only to applicable items on that table, with the relevant interaction tests updated or added.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
game-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.