Skip to content

Commit

Permalink
feat(balance): better ammo distribution in ammo vending machines (#5313)
Browse files Browse the repository at this point in the history
Co-authored-by: Chaosvolt <[email protected]>
  • Loading branch information
Lamandus and chaosvolt authored Sep 6, 2024
1 parent 66f086e commit 47c57b0
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 18 deletions.
39 changes: 26 additions & 13 deletions data/json/itemgroups/vending_machines.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,32 @@
"subtype": "collection",
"id": "vending_ammo",
"entries": [
{ "group": "ammo_pistol_common_full", "count-min": 3, "count-max": 8 },
{ "group": "ammo_rifle_common_full", "prob": 50, "count-min": 2, "count-max": 6 },
{ "group": "ammo_shotgun_common_full", "prob": 50, "count-min": 2, "count-max": 6 },
{ "group": "ammo_pistol_rare_full", "prob": 20, "count-min": 1, "count-max": 2 },
{ "group": "ammo_rifle_rare_full", "prob": 20, "count-min": 1, "count-max": 2 },
{ "group": "ammo_shotgun_rare_full", "prob": 20, "count-min": 1, "count-max": 2 }
{ "group": "ammo_pistol_common_full", "prob": 50 },
{ "group": "ammo_pistol_common_full", "prob": 50 },
{ "group": "ammo_pistol_common_full", "prob": 50 },
{ "group": "ammo_pistol_common_full", "prob": 50 },
{ "group": "ammo_pistol_common_full", "prob": 50 },
{ "group": "ammo_pistol_common_full", "prob": 50 },
{ "group": "ammo_pistol_common_full", "prob": 50 },
{ "group": "ammo_pistol_common_full", "prob": 50 },
{ "group": "ammo_rifle_common_full", "prob": 30 },
{ "group": "ammo_rifle_common_full", "prob": 30 },
{ "group": "ammo_rifle_common_full", "prob": 30 },
{ "group": "ammo_rifle_common_full", "prob": 30 },
{ "group": "ammo_rifle_common_full", "prob": 30 },
{ "group": "ammo_shotgun_common_full", "prob": 30 },
{ "group": "ammo_shotgun_common_full", "prob": 30 },
{ "group": "ammo_shotgun_common_full", "prob": 30 },
{ "group": "ammo_shotgun_common_full", "prob": 30 },
{ "group": "ammo_shotgun_common_full", "prob": 30 },
{ "group": "ammo_pistol_rare_full", "prob": 15 },
{ "group": "ammo_pistol_rare_full", "prob": 15 },
{ "group": "ammo_pistol_rare_full", "prob": 15 },
{ "group": "ammo_pistol_rare_full", "prob": 15 },
{ "group": "ammo_rifle_rare_full", "prob": 10 },
{ "group": "ammo_rifle_rare_full", "prob": 10 },
{ "group": "ammo_shotgun_rare_full", "prob": 10 },
{ "group": "ammo_shotgun_rare_full", "prob": 10 }
]
},
{
Expand Down Expand Up @@ -110,12 +130,5 @@
"subtype": "collection",
"id": "vending_medicine",
"entries": [ { "group": "drugs_pharmacy", "count-min": 10, "count-max": 20 } ]
},
{
"type": "item_group",
"id": "vending_guns",
"//": "Ammo found in a vending machine.",
"subtype": "collection",
"items": [ { "group": "vending_ammo", "prob": 100, "count": [ 2, 6 ] } ]
}
]
2 changes: 1 addition & 1 deletion data/json/mapgen/gunsmith.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"t": "f_table"
},
"items": { "d": { "item": "trash_dumpster", "chance": 80 } },
"vendingmachines": { "$": { "item_group": "vending_guns", "reinforced": true } },
"vendingmachines": { "$": { "item_group": "vending_ammo", "reinforced": true } },
"toilets": { "T": { } },
"place_loot": [
{ "group": "gunmod_common", "x": [ 5, 10 ], "y": 10, "chance": 100, "repeat": [ 3, 6 ] },
Expand Down
6 changes: 3 additions & 3 deletions data/json/mapgen/s_gun.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"U": "f_dumpster",
"@": "f_target"
},
"vendingmachines": { "$": { "item_group": "vending_guns", "reinforced": true } },
"vendingmachines": { "$": { "item_group": "vending_ammo", "reinforced": true } },
"items": {
"{": {
"item": {
Expand Down Expand Up @@ -243,7 +243,7 @@
"S": "f_displaycase",
"T": "f_displaycase"
},
"vendingmachines": { "$": { "item_group": "vending_guns", "reinforced": true } },
"vendingmachines": { "$": { "item_group": "vending_ammo", "reinforced": true } },
"toilets": { ";": { } },
"items": {
"{": {
Expand Down Expand Up @@ -523,7 +523,7 @@
"N": "f_sink",
"{": "f_locker"
},
"vendingmachines": { "$": { "item_group": "vending_guns", "reinforced": true } },
"vendingmachines": { "$": { "item_group": "vending_ammo", "reinforced": true } },
"place_items": [
{ "chance": 99, "item": "corpse_male", "x": 19, "y": 12 },
{ "chance": 75, "item": "ammo_casings_bulk", "x": [ 14, 15 ], "y": 14 },
Expand Down
2 changes: 1 addition & 1 deletion data/json/mapgen/shooting_range.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"s": "f_sign",
"%": "f_trashcan"
},
"vendingmachines": { "$": { "item_group": "vending_guns", "reinforced": true } },
"vendingmachines": { "$": { "item_group": "vending_ammo", "reinforced": true } },
"place_items": [
{ "chance": 10, "item": "ammo_pistol_common", "x": 6, "y": 9 },
{ "chance": 5, "item": "ammo_pistol_common", "x": 3, "y": 9 },
Expand Down

0 comments on commit 47c57b0

Please sign in to comment.