Skip to content

Commit

Permalink
Allows jp8 fuel to be found at military helipads (#1641)
Browse files Browse the repository at this point in the history
* Update supplies.json

* Update data/json/itemgroups/supplies.json

Co-authored-by: Chaosvolt <chaosvolt@users.noreply.github.com>

* Update supplies.json

* Update supplies.json

* New group

Added a new group for full 30 gallon drums. Three types should spawn. Full, partial, and empty.

* Forgot newline

* Linted

Co-authored-by: Chaosvolt <chaosvolt@users.noreply.github.com>
  • Loading branch information
thelonestander and chaosvolt authored Jul 6, 2022
1 parent 56fd4a3 commit 5e5e24f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
19 changes: 15 additions & 4 deletions data/json/itemgroups/supplies.json
Original file line number Diff line number Diff line change
Expand Up @@ -514,12 +514,23 @@
{
"id": "fuel_barrel",
"type": "item_group",
"//": "barrel with gasoline, diesel or motor oil like you would find at fuel depot",
"//": "barrel with gasoline, diesel or Jp8 fuel like you would find at fuel depot",
"subtype": "distribution",
"entries": [
{ "item": "gasoline", "charges": [ 0, 50000 ], "container-item": "30gal_drum", "prob": 30 },
{ "item": "diesel", "charges": [ 0, 50000 ], "container-item": "30gal_drum", "prob": 10 },
{ "item": "motor_oil", "charges": [ 0, 10000 ], "container-item": "jerrycan", "prob": 5 }
{ "item": "gasoline", "charges": [ 0, 25000 ], "container-item": "30gal_drum", "prob": 20 },
{ "item": "diesel", "charges": [ 0, 12000 ], "container-item": "30gal_drum", "prob": 10 },
{ "item": "jp8", "charges": [ 0, 45000 ], "container-item": "30gal_drum", "prob": 20 }
]
},
{
"id": "fuel_barrel_full",
"type": "item_group",
"//": "barrel with gasoline, diesel or Jp8 fuel like you would find at fuel depot",
"subtype": "distribution",
"entries": [
{ "item": "gasoline", "container-item": "30gal_drum", "prob": 20 },
{ "item": "diesel", "container-item": "30gal_drum", "prob": 10 },
{ "item": "jp8", "container-item": "30gal_drum", "prob": 20 }
]
},
{
Expand Down
6 changes: 5 additions & 1 deletion data/json/mapgen/helipad.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@
"B": {
"item": {
"subtype": "distribution",
"entries": [ { "group": "fuel_barrel", "prob": 30 }, { "item": "30gal_drum", "prob": 70 } ]
"entries": [
{ "item": "30gal_drum", "prob": 50 },
{ "group": "fuel_barrel", "prob": 20 },
{ "group": "fuel_barrel_full", "prob": 30 }
]
},
"chance": 75
},
Expand Down

0 comments on commit 5e5e24f

Please sign in to comment.