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

Cleaning can use clean water #37366

Merged
merged 1 commit into from
Jan 25, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/iuse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9434,7 +9434,7 @@ int iuse::wash_items( player *p, bool soft_items, bool hard_items )
};
int available_water = std::max(
crafting_inv.charges_of( "water", INT_MAX, is_liquid ),
crafting_inv.charges_of( "clean_water", INT_MAX, is_liquid )
crafting_inv.charges_of( "water_clean", INT_MAX, is_liquid )
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, maybe we can have this verify that the passed in string matches an item?

);
int available_cleanser = std::max( crafting_inv.charges_of( "soap" ),
crafting_inv.charges_of( "detergent" ) );
Expand Down