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

Detect and warn about crafting with rotten food #36610

Merged
merged 1 commit into from
Jan 2, 2020

Commits on Jan 2, 2020

  1. Detect and warn about crafting with rotten food

    To deal with the long-standing issue of accidentally using rotting food
    in crafting (especially when crafting a large batch) and thus wasting
    time and materials.
    
    Allow a recipe filter to exclude rotten components.
    
    Use this new feature when selecting items for crafting to prefer
    non-rotten ones.  When non-rotten ones do not suffice, warn the player
    of this fact before proceeding.
    
    In the crafting GUI, mark crafts in brown when they can only be crafted
    with rotten ingredients.
    
    If the result doesn't care about rottenness, as with e.g. lamp oil, then
    no warnings or marking of the recipes is done.
    
    This only catches the case where the ingredients are rotten when you
    start the craft.  There is also the situation where things start
    non-rotten, but become rotten while you craft.  This change does not
    attempt to handle that, but it could now be handled by a localized
    change in recipe::get_component_filter.
    jbytheway committed Jan 2, 2020
    Configuration menu
    Copy the full SHA
    142fdfe View commit details
    Browse the repository at this point in the history