Skip to content

Commit

Permalink
feat(balance): fix stacking error with heavy bones, updates to harves…
Browse files Browse the repository at this point in the history
…t entries and recipes, use new materials in mods (#5499)

* feat(balance): fix stacking error with heavy bones, updates to harvest entries and recipes, use new materials in mods

* style(autofix.ci): automated formatting

* dingus

* Weapon fixes

* Missing recipes go nyooooom

* Update mammal.json

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
  • Loading branch information
chaosvolt and autofix-ci[bot] authored Oct 4, 2024
1 parent 0039f73 commit 1e21d4d
Show file tree
Hide file tree
Showing 30 changed files with 370 additions and 299 deletions.
123 changes: 115 additions & 8 deletions data/json/harvest.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,18 @@
"entries": [
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.38 },
{ "drop": "liver", "type": "offal", "mass_ratio": 0.01 },
{ "drop": "bone", "type": "bone", "mass_ratio": 0.1 }
{ "drop": "bone", "type": "bone", "mass_ratio": 0.1 },
{ "drop": "scute_piece", "type": "skin", "mass_ratio": 0.04 }
]
},
{
"id": "mutant_fish_large",
"type": "harvest",
"entries": [
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.38 },
{ "drop": "liver", "type": "offal", "mass_ratio": 0.01 },
{ "drop": "bone_heavy", "type": "bone", "mass_ratio": 0.1 },
{ "drop": "scute_piece", "type": "skin", "mass_ratio": 0.04 }
]
},
{
Expand Down Expand Up @@ -199,7 +210,7 @@
{ "drop": "mutant_human_flesh", "type": "flesh", "mass_ratio": 0.34 },
{ "drop": "hstomach_large", "scale_num": [ 1, 1 ], "max": 1, "type": "offal" },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.001 },
{ "drop": "bone_human", "type": "bone", "mass_ratio": 0.15 },
{ "drop": "bone_heavy", "type": "bone", "mass_ratio": 0.15 },
{ "drop": "raw_hfur", "type": "skin", "mass_ratio": 0.02 },
{ "drop": "mutant_human_fat", "type": "flesh", "mass_ratio": 0.07 }
]
Expand All @@ -213,7 +224,8 @@
{ "drop": "mutant_human_flesh", "type": "flesh", "mass_ratio": 0.34 },
{ "drop": "hstomach_large", "scale_num": [ 1, 1 ], "max": 1, "type": "offal" },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.001 },
{ "drop": "bone_human", "type": "bone", "mass_ratio": 0.15 },
{ "drop": "bone_heavy", "type": "bone", "mass_ratio": 0.15 },
{ "drop": "teeth_serrated", "type": "bone", "mass_ratio": 0.02 },
{ "drop": "raw_hfur", "type": "skin", "mass_ratio": 0.02 },
{ "drop": "mutant_human_fat", "type": "flesh", "mass_ratio": 0.07 }
]
Expand Down Expand Up @@ -325,6 +337,24 @@
{ "drop": "mutant_fat", "type": "flesh", "mass_ratio": 0.07 }
]
},
{
"id": "mutant_mammal_toothy_fur",
"//": "drops regular stomach",
"type": "harvest",
"entries": [
{ "drop": "mutant_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.3 },
{ "drop": "mutant_meat_scrap", "type": "flesh", "mass_ratio": 0.03 },
{ "drop": "brain", "type": "flesh", "mass_ratio": 0.005 },
{ "drop": "mutant_offal", "type": "offal", "mass_ratio": 0.01 },
{ "drop": "stomach", "scale_num": [ 1, 1 ], "max": 1, "type": "offal" },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.001 },
{ "drop": "bone", "type": "bone", "mass_ratio": 0.15 },
{ "drop": "teeth_serrated", "type": "bone", "mass_ratio": 0.02 },
{ "drop": "raw_fur", "type": "skin", "mass_ratio": 0.02 },
{ "drop": "mutant_fat", "type": "flesh", "mass_ratio": 0.07 }
]
},
{
"id": "mutant_mammal_large_leather",
"//": "drops large stomach",
Expand Down Expand Up @@ -366,6 +396,27 @@
{ "drop": "mutant_fat", "type": "flesh", "mass_ratio": 0.07 }
]
},
{
"id": "mutant_mammal_toothy_large_scute",
"//": "drops large stomach",
"type": "harvest",
"entries": [
{ "drop": "mutant_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.32 },
{ "drop": "mutant_meat_scrap", "type": "flesh", "mass_ratio": 0.01 },
{ "drop": "lung", "type": "flesh", "mass_ratio": 0.0035 },
{ "drop": "liver", "type": "offal", "mass_ratio": 0.01 },
{ "drop": "brain", "type": "flesh", "mass_ratio": 0.005 },
{ "drop": "sweetbread", "type": "flesh", "mass_ratio": 0.002 },
{ "drop": "kidney", "type": "offal", "mass_ratio": 0.002 },
{ "drop": "stomach_large", "scale_num": [ 1, 1 ], "max": 1, "type": "offal" },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.001 },
{ "drop": "bone_heavy", "type": "bone", "mass_ratio": 0.15 },
{ "drop": "teeth_serrated", "type": "bone", "mass_ratio": 0.02 },
{ "drop": "scute_piece", "type": "skin", "mass_ratio": 0.04 },
{ "drop": "mutant_fat", "type": "flesh", "mass_ratio": 0.07 }
]
},
{
"id": "mammal_small_wool",
"//": "does not drop stomach or other small organs",
Expand Down Expand Up @@ -414,7 +465,7 @@
{ "drop": "mutant_offal", "type": "offal", "mass_ratio": 0.01 },
{ "drop": "stomach_large", "scale_num": [ 1, 1 ], "max": 1, "type": "offal" },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.001 },
{ "drop": "bone", "type": "bone", "mass_ratio": 0.2 },
{ "drop": "bone_heavy", "type": "bone", "mass_ratio": 0.2 },
{ "drop": "mutant_fat", "type": "flesh", "mass_ratio": 0.07 },
{ "drop": "chitin_piece", "type": "skin", "mass_ratio": 0.1 }
]
Expand All @@ -436,6 +487,24 @@
{ "drop": "mutant_fat", "type": "flesh", "mass_ratio": 0.07 }
]
},
{
"id": "mutant_mammal_large_toothy_fur",
"//": "drops large stomach",
"type": "harvest",
"entries": [
{ "drop": "mutant_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.32 },
{ "drop": "mutant_meat_scrap", "type": "flesh", "mass_ratio": 0.01 },
{ "drop": "brain", "type": "flesh", "mass_ratio": 0.005 },
{ "drop": "mutant_offal", "type": "offal", "mass_ratio": 0.01 },
{ "drop": "stomach_large", "scale_num": [ 1, 1 ], "max": 1, "type": "offal" },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.001 },
{ "drop": "bone_heavy", "type": "bone", "mass_ratio": 0.15 },
{ "drop": "teeth_serrated", "type": "bone", "mass_ratio": 0.02 },
{ "drop": "raw_fur", "type": "skin", "mass_ratio": 0.02 },
{ "drop": "mutant_fat", "type": "flesh", "mass_ratio": 0.07 }
]
},
{
"id": "animal_noskin",
"//": "for those vertebrates that don't have something you can skin off of them",
Expand Down Expand Up @@ -553,6 +622,7 @@
{ "drop": "blood_tainted", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "meat_tainted", "type": "flesh", "mass_ratio": 0.33 },
{ "drop": "fat_tainted", "type": "flesh", "mass_ratio": 0.1 },
{ "drop": "bone_heavy", "type": "bone", "mass_ratio": 0.1 },
{ "drop": "flesh_golem_heart", "base_num": [ 0, 1 ], "scale_num": [ 0.6, 0.9 ], "max": 3, "type": "offal" }
]
},
Expand All @@ -564,6 +634,7 @@
{ "drop": "blood_tainted", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "meat_tainted", "type": "flesh", "mass_ratio": 0.33 },
{ "drop": "fat_tainted", "type": "flesh", "mass_ratio": 0.1 },
{ "drop": "bone_heavy", "type": "bone", "mass_ratio": 0.1 },
{ "drop": "jabberwock_heart", "base_num": [ 0, 1 ], "scale_num": [ 0.6, 0.9 ], "max": 3, "type": "offal" }
],
"//": "what, you thought jabberwocks only had one heart?"
Expand Down Expand Up @@ -774,7 +845,7 @@
},
{
"id": "zombie_fur",
"//": "any zombie that might drop leather. mostly animals.",
"//": "any zombie that might drop fur. mostly animals.",
"type": "harvest",
"entries": [
{ "drop": "blood_tainted", "type": "blood", "mass_ratio": 0.1 },
Expand All @@ -785,9 +856,22 @@
{ "drop": "pheromone", "type": "bionic", "max": 1 }
]
},
{
"id": "zombie_fur_large",
"//": "big zombies that drop fur. mostly animals.",
"type": "harvest",
"entries": [
{ "drop": "blood_tainted", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "meat_tainted", "type": "flesh", "mass_ratio": 0.25 },
{ "drop": "fat_tainted", "type": "flesh", "mass_ratio": 0.08 },
{ "drop": "bone_heavy", "type": "bone", "mass_ratio": 0.1 },
{ "drop": "raw_tainted_fur", "type": "skin", "mass_ratio": 0.04 },
{ "drop": "pheromone", "type": "bionic", "max": 1 }
]
},
{
"id": "zombie_tooth_fur",
"//": "any zombie that might drop leather and teeth. mostly animals.",
"//": "any zombie that might drop fur and teeth. mostly animals.",
"type": "harvest",
"entries": [
{ "drop": "blood_tainted", "type": "blood", "mass_ratio": 0.1 },
Expand All @@ -799,6 +883,20 @@
{ "drop": "pheromone", "type": "bionic", "max": 1 }
]
},
{
"id": "zombie_tooth_fur_large",
"//": "big zombies that drop fur and teeth. mostly animals.",
"type": "harvest",
"entries": [
{ "drop": "blood_tainted", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "meat_tainted", "type": "flesh", "mass_ratio": 0.25 },
{ "drop": "fat_tainted", "type": "flesh", "mass_ratio": 0.08 },
{ "drop": "bone_heavy", "type": "bone", "mass_ratio": 0.1 },
{ "drop": "teeth_serrated", "type": "bone", "mass_ratio": 0.02 },
{ "drop": "raw_tainted_fur", "type": "skin", "mass_ratio": 0.04 },
{ "drop": "pheromone", "type": "bionic", "max": 1 }
]
},
{
"id": "zombie_tooth_leather",
"//": "any zombie that might drop leather and teeth. mostly animals.",
Expand Down Expand Up @@ -895,7 +993,7 @@
{ "drop": "blood_tainted", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "meat_tainted", "type": "flesh", "mass_ratio": 0.25 },
{ "drop": "fat_tainted", "type": "flesh", "mass_ratio": 0.08 },
{ "drop": "bone_tainted", "type": "bone", "mass_ratio": 0.1 },
{ "drop": "bone_heavy", "type": "bone", "mass_ratio": 0.1 },
{ "drop": "kevlar_plate", "type": "skin", "mass_ratio": 0.035 },
{ "drop": "pheromone", "type": "bionic", "max": 1 }
]
Expand All @@ -904,6 +1002,15 @@
"id": "mr_bones",
"//": "spooky scary skeletons",
"type": "harvest",
"entries": [
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.001 },
{ "drop": "bone_tainted", "type": "flesh", "mass_ratio": 0.5 }
]
},
{
"id": "mr_bones_heavy",
"//": "12 foot tall hardware store skeletons",
"type": "harvest",
"entries": [
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.001 },
{ "drop": "bone_heavy", "type": "flesh", "mass_ratio": 0.5 }
Expand Down Expand Up @@ -1169,7 +1276,7 @@
{ "drop": "blood_tainted", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "meat_tainted", "type": "flesh", "mass_ratio": 0.25 },
{ "drop": "fat_tainted", "type": "flesh", "mass_ratio": 0.08 },
{ "drop": "bone_tainted", "type": "bone", "mass_ratio": 0.1 }
{ "drop": "bone_heavy", "type": "bone", "mass_ratio": 0.1 }
]
},
{
Expand Down
12 changes: 9 additions & 3 deletions data/json/items/generic.json
Original file line number Diff line number Diff line change
Expand Up @@ -3197,11 +3197,13 @@
"weight": "225 g",
"color": "green",
"symbol": "%",
"looks_like": "raw_leather",
"description": "A bony and scaled protrusion harvested from a large reptile. Such things were used to make handbags before the Cataclysm, but the material is sturdy and protective.",
"price": "0 cent",
"price_postapoc": "10 cent",
"material": "scute",
"volume": "250 ml"
"volume": "250 ml",
"stackable": true
},
{
"type": "GENERIC",
Expand All @@ -3211,11 +3213,13 @@
"weight": "450 g",
"color": "white",
"symbol": "%",
"looks_like": "bone",
"description": "A bone harvested from a large animal such as an elephant, or from certain types of zombies. It is extremely dense and durable for its size, and largely inedible.",
"price": "0 cent",
"price_postapoc": "10 cent",
"material": "bone_heavy",
"volume": "250 ml"
"volume": "250 ml",
"stackable": true
},
{
"type": "GENERIC",
Expand All @@ -3225,11 +3229,13 @@
"weight": "450 g",
"color": "white",
"symbol": "%",
"looks_like": "spike",
"description": "Teeth harvested from a carnivore such as a shark, or from certain types of mutant animals. They are extremely dense and durable for their size, and can very easily cause jagged wounds.",
"price": "0 cent",
"price_postapoc": "10 cent",
"material": "bone_heavy",
"volume": "250 ml"
"volume": "250 ml",
"stackable": true
},
{
"id": "beehive_empty",
Expand Down
2 changes: 1 addition & 1 deletion data/json/items/melee/bludgeons.json
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,7 @@
"copy-from": "mace",
"name": { "str": "bone mace" },
"description": "This mace is carved from a series of sturdy bones, capable of bashing faces in with swiftness and efficiency.",
"material": [ "bone" ],
"material": [ "bone_heavy" ],
"proportional": { "weight": 0.8, "bashing": 0.9 }
}
]
2 changes: 1 addition & 1 deletion data/json/items/melee/spears_and_polearms.json
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@
"copy-from": "glaive",
"name": { "str": "bone glaive" },
"description": "This glaive's blade is carved from a single massive bone, and is capable of slicing foes in with swiftness and efficiency.",
"material": [ "bone", "wood" ],
"material": [ "bone_heavy", "wood" ],
"proportional": { "weight": 0.8, "cutting": 0.9 }
}
]
8 changes: 4 additions & 4 deletions data/json/items/melee/swords_and_blades.json
Original file line number Diff line number Diff line change
Expand Up @@ -1896,8 +1896,8 @@
"type": "GENERIC",
"copy-from": "dagger_medieval",
"name": { "str": "stinger dagger" },
"description": "A 'bone' dagger made from a sharpened mutant insect stinger. It's only natural that the Cataclysm would advent new, creative forms of old weapons.",
"material": [ "bone" ],
"description": "A dagger made from a sharpened mutant insect stinger. It's only natural that the Cataclysm would advent new, creative forms of old weapons.",
"material": [ "chitin" ],
"relic_data": {
"passive_effects": [
{
Expand All @@ -1923,7 +1923,7 @@
"description": "A flat wooden club with razor-sharp teeth set into the edges. This was a weapon of various Polynesian peoples, and was used to great effect.",
"weight": "850 g",
"price_postapoc": "3 USD",
"material": [ "wood", "bone" ],
"material": [ "wood", "bone_heavy" ],
"cutting": 21
},
{
Expand All @@ -1932,7 +1932,7 @@
"copy-from": "machete",
"name": { "str": "bone machete" },
"description": "This shortsword is carved from a single massive bone, and is capable of slicing foes in with swiftness and efficiency.",
"material": [ "bone" ],
"material": [ "bone_heavy" ],
"proportional": { "weight": 0.8, "cutting": 0.9 }
}
]
2 changes: 1 addition & 1 deletion data/json/items/melee/unarmed_weapons.json
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@
"copy-from": "cestus",
"name": { "str": "sharktooth cestus", "str_pl": "sharktooth cestuses" },
"description": "This weapon is a series of leather wrappings with a bone plate that has a series of razor-sharp teeth attached to it. For when your punches need more bite.",
"material": [ "bone", "leather" ],
"material": [ "bone_heavy", "leather" ],
"cutting": 8,
"bashing": 6,
"flags": [ "UNARMED_WEAPON", "DURABLE_MELEE", "STAB", "BELT_CLIP" ]
Expand Down
4 changes: 2 additions & 2 deletions data/json/items/ranged/archery.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
"color": "green",
"looks_like": "arrow_fire_hardened_fletched",
"description": "A simple fletched wooden arrow shaft with an arrowhead carved from a mutated insect stinger. It paralyzes enemies it hits and stands a somewhat low chance of remaining intact once fired.",
"material": "wood",
"material": [ "wood", "chitin" ],
"volume": "250 ml",
"price_postapoc": "250 cent",
"weight": "30 g",
Expand All @@ -203,7 +203,7 @@
"color": "green",
"looks_like": "arrow_fire_hardened_fletched",
"description": "A simple fletched wooden arrow shaft with an arrowhead carved from a serrated tooth. It stands a somewhat low chance of remaining intact once fired.",
"material": "wood",
"material": [ "wood", "bone_heavy" ],
"volume": "250 ml",
"price_postapoc": "250 cent",
"weight": "30 g",
Expand Down
4 changes: 2 additions & 2 deletions data/json/items/ranged/crossbows.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
"color": "green",
"looks_like": "bolt_makeshift",
"description": "A simple fletched wooden crossbow bolt with a tip carved from a mutated insect stinger. It paralyzes enemies it hits and stands a decent chance of remaining intact once fired.",
"material": "wood",
"material": [ "wood", "chitin" ],
"volume": "250 ml",
"price_postapoc": "250 cent",
"weight": "30 g",
Expand All @@ -174,7 +174,7 @@
"color": "green",
"looks_like": "bolt_makeshift",
"description": "A simple fletched crossbow bolt shaft with a tip carved from a serrated tooth. It stands a somewhat low chance of remaining intact once fired.",
"material": "wood",
"material": [ "wood", "bone_heavy" ],
"volume": "250 ml",
"price_postapoc": "250 cent",
"weight": "30 g",
Expand Down
4 changes: 2 additions & 2 deletions data/json/items/resources/misc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"to_hit": -1,
"color": "white",
"symbol": ",",
"material": [ "flesh" ],
"material": [ "chitin" ],
"volume": "250 ml",
"cutting": 10,
"flags": [ "STAB" ],
Expand Down Expand Up @@ -175,7 +175,7 @@
"to_hit": -1,
"color": "dark_gray",
"symbol": ",",
"material": [ "flesh" ],
"material": [ "chitin" ],
"volume": "250 ml",
"cutting": 8,
"flags": [ "STAB", "SHEATH_KNIFE" ],
Expand Down
Loading

0 comments on commit 1e21d4d

Please sign in to comment.