Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only add a repair item once to the list of possible repair items. #35590

Merged
merged 1 commit into from
Nov 18, 2019

Conversation

BevapDin
Copy link
Contributor

SUMMARY: None

Some (different) materials use the same repair item (iron and steel each use scrap metal). Repairing an item made of several of those materials would show a menu to the user for choosing which item to use for repairing. That menu had several identical entries (one for repairing iron with scrap metal, and one for repairing steel with scrap metal).

That selection is unnecessary as both choices consume the same item.

This commit detects that case and prevents the second entry from appearing.

Test for example with a damaged heavy duty frame.

Some (different) materials use the same repair item (iron and steel each use scrap metal). Repairing an item made of several of those materials would show a menu to the user for choosing which item to use for repairing. That menu had several identical entries (one for repairing iron with scrap metal, and one for repairing steel with scrap metal).

That selection is unnecessary as both choices consume the same item.

This commit detects that case and prevents the second entry from appearing.
@ZhilkinSerg ZhilkinSerg added <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Items / Item Actions / Item Qualities Items and how they work and interact labels Nov 18, 2019
@ZhilkinSerg ZhilkinSerg merged commit 86d409b into CleverRaven:master Nov 18, 2019
@BevapDin BevapDin deleted the myt branch November 19, 2019 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Items / Item Actions / Item Qualities Items and how they work and interact
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants