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

Use fuel from firewood source when starting fires #29132

Merged

Conversation

Projects
None yet
4 participants
@halfahermit
Copy link
Contributor

commented Mar 30, 2019

Summary

SUMMARY: Features "Use fuel from firewood source when starting fires"

Purpose of change

Fixes #28963 - implements tinukedaya's very good idea of using fuel from a nearby firewood source when starting a fire.

Describe the solution

Moved the check for fuel from firestarter_actor::prep_firestarter_use to activity_handlers::start_fire_do_turn, and call activity_handlers::try_fuel_fire if none is found.

Lit torches and battletorches (not firestarters) use prep_firestarter_use, so removing the fuel check from that function made them work without fuel. I fixed that by giving firestarter to both and deleting their old iuse functions. As far as I can tell they don't work any differently.

Thanks, let me know if it needs any changes.

@ZhilkinSerg ZhilkinSerg self-assigned this Mar 31, 2019

@ZhilkinSerg ZhilkinSerg merged commit dca9d26 into CleverRaven:master Apr 2, 2019

2 of 3 checks passed

continuous-integration/travis-ci/pr The Travis CI build could not complete due to an error
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
gorgon-ghprb Build finished.
Details

@ZhilkinSerg ZhilkinSerg removed their assignment Apr 2, 2019

@halfahermit halfahermit deleted the halfahermit:halfahermit-start-fire-fuel branch Apr 3, 2019

@kevingranade

This comment has been minimized.

Copy link
Member

commented Apr 10, 2019

This pull request has been mentioned on Cataclysm: Dark Days Ahead. There might be relevant details there:

https://discourse.cataclysmdda.org/t/latest-experimental-features/5582/1106

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.