-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Replace all fuel that spawns in military bases with jp8 #46824
Conversation
Note that (one of the?) military helipads have a warehouse with 100L steel drums, of the ones that were filled I found 2 with JP8, one with diesel and one with gasoline, I guess this is nice to have? |
The above "Update mapgen.cpp" is to, well, hopefully fix the C++ code issue. |
Update mapgen.cpp to allow jp8 fuel in pumps
I tried it out. Now I get an error when visiting a military base (see below) and instead of a pump I get a puddle of jp8 where the pump should be. DEBUG : invalid terrain id "" FUNCTION : int_id generic_factory<ter_t>::convert(const string_id &, const int_id &, const bool) const [T = ter_t] |
I think I figured out why this happens: jp8 is missing pump_terrain: Cataclysm-DDA/data/json/materials.json Lines 755 to 775 in a149ceb
|
Looks like a new "t_jp8_pump" terrain is needed - probably just copy from the diesel variety. |
Done. Will push in a moment. |
"id": "t_jp8_pump", | ||
"name": "JP8 pump", | ||
"looks_like": "t_gas_pump", | ||
"description": "This pump is filled with JP8. If this gas dispenser doesn't give up the goods for free, you may have to pay at a nearby terminal.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"description": "This pump is filled with JP8. If this gas dispenser doesn't give up the goods for free, you may have to pay at a nearby terminal.", | |
"description": "This pump is filled with JP8. If this gas dispenser doesn't give up the goods for free, you may have to pay at a nearby terminal.", |
Is this actually true of military bases and pumps meant for military vehicles, BTW (the charging)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this actually true of military bases and pumps meant for military vehicles, BTW (the charging)?
It does not look like it is. I was thinking this pump might at some point be added in other places.
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
This pull request has been mentioned on Cataclysm: Dark Days Ahead. There might be relevant details there: https://discourse.cataclysmdda.org/t/no-hope-mod-v2-1/24971/22 |
…46824) * Replace all fuel that spawns in mil bases with jp8 * Update mapgen.cpp to allow jp8 fuel in pumps * Fix jp8 missing pump_terrain Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Summary
SUMMARY: Content "Switch fuel pumps in military bases from diesel to JP8"
Purpose of change
Fixes: #46746. Many of the cars inside of a mil base are filled with jp8 by default, but the pump only has diesel.
Describe the solution
Replace the fuel in the pump and jerrycans that spawn in a mil base with jp8.
Describe alternatives you've considered
Leave as is
Testing
Additional context
Currently blocked by this:no longer blockedCataclysm-DDA/src/mapgen.cpp
Lines 1091 to 1094 in 941d5fd