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

Placed Charcoal Forge eats charcoal #11021

Closed
Barhandar opened this issue Jan 27, 2015 · 1 comment

Comments

Projects
None yet
3 participants
@Barhandar
Copy link
Contributor

commented Jan 27, 2015

As reported by MormonPartyboat here, the built charcoal forge code (f_forge) sets the charcoal amount to what's placed, instead of adding it.

Apparent relevant code:

https://github.com/CleverRaven/Cataclysm-DDA/blob/master/src/iexamine.cpp#L2331

if (amount != 0) {
        item it(ammo->id, 0);
        it.charges = amount;
        m->add_item( examx, examy, it );
    }

@KA101 KA101 added the <Bug> label Jan 27, 2015

@sprawl15

This comment has been minimized.

Copy link

commented Jan 28, 2015

MormonPartyboat here. I did a bit more testing using the placed forge, and I found another quirk. There is no maximum for how much you can put into the forge - I was able to put ten million charcoal in at once.

Deconstruction seems to be WAI, it returns exactly as much charcoal as the forge thinks it contains.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.