Skip to content

Commit

Permalink
fix: hydrogen sacs can stack, obsolete endochitin (#4732)
Browse files Browse the repository at this point in the history
* fix: hydrogen sacs can stack

* per feedback
  • Loading branch information
chaosvolt authored Jun 4, 2024
1 parent e03918c commit 23a9830
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 59 deletions.
41 changes: 14 additions & 27 deletions data/json/harvest.json
Original file line number Diff line number Diff line change
Expand Up @@ -538,11 +538,10 @@
"type": "harvest",
"message": "<arachnid_harvest>",
"entries": [
{ "drop": "endochitin", "type": "bone", "mass_ratio": 0.1 },
{ "drop": "meat_tainted", "type": "flesh", "mass_ratio": 0.33 },
{ "drop": "mutant_bug_lungs", "type": "flesh", "mass_ratio": 0.0035 },
{ "drop": "mutant_bug_organs", "type": "offal", "mass_ratio": 0.015 },
{ "drop": "chitin_piece", "type": "bone", "mass_ratio": 0.1 }
{ "drop": "chitin_piece", "type": "bone", "mass_ratio": 0.15 }
]
},
{
Expand All @@ -552,21 +551,19 @@
"entries": [
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.1 },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.01 },
{ "drop": "endochitin", "type": "bone", "mass_ratio": 0.01 },
{ "drop": "mutant_bug_hydrogen_sacs", "type": "flesh", "mass_ratio": 0.2 },
{ "drop": "mutant_bug_lungs", "type": "flesh", "mass_ratio": 0.0035 },
{ "drop": "mutant_bug_organs", "type": "offal", "mass_ratio": 0.015 },
{ "drop": "chitin_piece", "type": "bone", "mass_ratio": 0.01 }
{ "drop": "chitin_piece", "type": "bone", "mass_ratio": 0.015 }
]
},
{
"id": "acidant_queen",
"type": "harvest",
"message": "<acidant_harvest>",
"entries": [
{ "drop": "endochitin", "type": "bone", "mass_ratio": 0.1 },
{ "drop": "mutant_meat", "base_num": [ 40, 55 ], "scale_num": [ 0.5, 0.7 ], "max": 80, "type": "flesh" },
{ "drop": "acidchitin_piece", "base_num": [ 2, 6 ], "scale_num": [ 0.3, 0.6 ], "max": 10, "type": "skin" },
{ "drop": "acidchitin_piece", "base_num": [ 2, 6 ], "scale_num": [ 0.45, 0.9 ], "max": 15, "type": "skin" },
{ "drop": "mutant_fat", "base_num": [ 5, 8 ], "scale_num": [ 0.6, 0.8 ], "max": 18, "type": "flesh" }
]
},
Expand All @@ -575,13 +572,12 @@
"type": "harvest",
"message": "<arachnid_harvest>",
"entries": [
{ "drop": "endochitin", "type": "bone", "mass_ratio": 0.1 },
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.33 },
{ "drop": "mutant_fat", "type": "flesh", "mass_ratio": 0.04 },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.01 },
{ "drop": "mutant_bug_lungs", "type": "flesh", "mass_ratio": 0.0035 },
{ "drop": "mutant_bug_organs", "type": "offal", "mass_ratio": 0.015 },
{ "drop": "chitin_piece", "type": "bone", "mass_ratio": 0.1 }
{ "drop": "chitin_piece", "type": "bone", "mass_ratio": 0.15 }
]
},
{
Expand All @@ -592,8 +588,7 @@
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.33 },
{ "drop": "mutant_fat", "type": "flesh", "mass_ratio": 0.04 },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.01 },
{ "drop": "endochitin", "type": "bone", "mass_ratio": 0.1 },
{ "drop": "acidchitin_piece", "type": "bone", "mass_ratio": 0.1 }
{ "drop": "acidchitin_piece", "type": "bone", "mass_ratio": 0.15 }
]
},
{
Expand All @@ -603,12 +598,11 @@
"entries": [
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.23 },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.01 },
{ "drop": "endochitin", "type": "bone", "mass_ratio": 0.1 },
{ "drop": "mutant_bug_hydrogen_sacs", "type": "flesh", "mass_ratio": 0.1 },
{ "drop": "mutant_bug_lungs", "type": "flesh", "mass_ratio": 0.0035 },
{ "drop": "mutant_bug_organs", "type": "offal", "mass_ratio": 0.015 },
{ "drop": "bee_sting", "base_num": [ 0, 1 ], "type": "bone" },
{ "drop": "chitin_piece", "type": "bone", "mass_ratio": 0.1 }
{ "drop": "chitin_piece", "type": "bone", "mass_ratio": 0.15 }
]
},
{
Expand All @@ -618,12 +612,11 @@
"entries": [
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.3 },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.003 },
{ "drop": "endochitin", "type": "bone", "mass_ratio": 0.01 },
{ "drop": "mutant_bug_hydrogen_sacs", "type": "flesh", "mass_ratio": 0.1 },
{ "drop": "mutant_bug_lungs", "type": "flesh", "mass_ratio": 0.01 },
{ "drop": "mutant_bug_organs", "type": "offal", "mass_ratio": 0.03 },
{ "drop": "wasp_sting", "base_num": [ 0, 1 ], "type": "bone" },
{ "drop": "chitin_piece", "type": "bone", "mass_ratio": 0.1 }
{ "drop": "chitin_piece", "type": "bone", "mass_ratio": 0.15 }
]
},
{
Expand All @@ -633,12 +626,11 @@
"entries": [
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.2 },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.003 },
{ "drop": "endochitin", "type": "bone", "mass_ratio": 0.01 },
{ "drop": "mutant_bug_hydrogen_sacs", "type": "flesh", "mass_ratio": 0.1 },
{ "drop": "mutant_bug_lungs", "type": "flesh", "mass_ratio": 0.01 },
{ "drop": "mutant_bug_organs", "type": "offal", "mass_ratio": 0.03 },
{ "drop": "wasp_sting", "base_num": [ 0, 1 ], "type": "bone" },
{ "drop": "chitin_piece", "type": "bone", "mass_ratio": 0.1 },
{ "drop": "chitin_piece", "type": "bone", "mass_ratio": 0.15 },
{ "drop": "egg_wasp", "type": "offal", "base_num": [ 10, 30 ], "scale_num": [ 5, 5 ] }
]
},
Expand All @@ -650,10 +642,9 @@
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.15 },
{ "drop": "mutant_fat", "type": "flesh", "mass_ratio": 0.04 },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.005 },
{ "drop": "endochitin", "type": "bone", "mass_ratio": 0.05 },
{ "drop": "mutant_bug_lungs", "type": "flesh", "mass_ratio": 0.0045 },
{ "drop": "mutant_bug_organs", "type": "offal", "mass_ratio": 0.025 },
{ "drop": "chitin_piece", "type": "bone", "mass_ratio": 0.01 },
{ "drop": "chitin_piece", "type": "bone", "mass_ratio": 0.015 },
{ "drop": "egg_dragonfly", "type": "offal", "base_num": [ 5, 35 ], "scale_num": [ 0.3, 0.5 ] }
]
},
Expand All @@ -665,27 +656,25 @@
"entries": [
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.1 },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.01 },
{ "drop": "endochitin", "type": "bone", "mass_ratio": 0.01 },
{ "drop": "mutant_bug_hydrogen_sacs", "type": "flesh", "mass_ratio": 0.2 },
{ "drop": "mutant_bug_lungs", "type": "flesh", "mass_ratio": 0.0035 },
{ "drop": "mutant_bug_organs", "type": "offal", "mass_ratio": 0.015 },
{ "drop": "chitin_piece", "type": "bone", "mass_ratio": 0.01 },
{ "drop": "chitin_piece", "type": "bone", "mass_ratio": 0.015 },
{ "drop": "egg_firefly", "type": "offal", "base_num": [ 0, 3 ] }
]
},
{
"id": "arachnid_centipede",
"type": "harvest",
"message": "<centipede_harvest>",
"//": "More legs = more sinew, more endochitin, less rest",
"//": "More legs = more sinew, less rest",
"entries": [
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.2 },
{ "drop": "mutant_fat", "type": "flesh", "mass_ratio": 0.01 },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.05 },
{ "drop": "endochitin", "type": "bone", "mass_ratio": 0.2 },
{ "drop": "mutant_bug_lungs", "type": "flesh", "mass_ratio": 0.0035 },
{ "drop": "mutant_bug_organs", "type": "offal", "mass_ratio": 0.01 },
{ "drop": "chitin_piece", "type": "bone", "mass_ratio": 0.08 }
{ "drop": "chitin_piece", "type": "bone", "mass_ratio": 0.012 }
]
},
{
Expand All @@ -696,10 +685,9 @@
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.2 },
{ "drop": "mutant_fat", "type": "flesh", "mass_ratio": 0.01 },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.05 },
{ "drop": "endochitin", "type": "bone", "mass_ratio": 0.2 },
{ "drop": "mutant_bug_lungs", "type": "flesh", "mass_ratio": 0.0035 },
{ "drop": "mutant_bug_organs", "type": "offal", "mass_ratio": 0.01 },
{ "drop": "chitin_piece", "type": "bone", "mass_ratio": 0.08 },
{ "drop": "chitin_piece", "type": "bone", "mass_ratio": 0.012 },
{ "drop": "egg_centipede", "type": "offal", "base_num": [ 3, 10 ], "scale_num": [ 0.5, 1 ], "max": 30 }
]
},
Expand All @@ -712,10 +700,9 @@
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.4 },
{ "drop": "mutant_fat", "type": "flesh", "mass_ratio": 0.015 },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.05 },
{ "drop": "endochitin", "type": "bone", "mass_ratio": 0.2 },
{ "drop": "mutant_bug_lungs", "type": "flesh", "mass_ratio": 0.0035 },
{ "drop": "mutant_bug_organs", "type": "offal", "mass_ratio": 0.01 },
{ "drop": "chitin_piece", "type": "bone", "mass_ratio": 0.2 },
{ "drop": "chitin_piece", "type": "bone", "mass_ratio": 0.3 },
{ "drop": "egg_centipede", "type": "offal", "base_num": [ 0, 3 ], "scale_num": [ 0.5, 1 ], "max": 10 }
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,6 @@
"entries": [
{ "item": "chitin_piece", "prob": 70 },
{ "item": "acidchitin_piece", "prob": 30 },
{ "item": "endochitin", "prob": 70 },
{ "item": "mutant_bug_hydrogen_sacs", "prob": 30 },
{ "item": "mutant_bug_lungs", "prob": 10 },
{ "item": "mutant_bug_organs", "prob": 10 },
Expand Down
18 changes: 1 addition & 17 deletions data/json/items/generic.json
Original file line number Diff line number Diff line change
Expand Up @@ -340,23 +340,6 @@
"bashing": 1,
"to_hit": -2
},
{
"type": "GENERIC",
"id": "endochitin",
"category": "spare_parts",
"symbol": ",",
"color": "light_gray",
"name": { "str": "strand of endochitin", "str_pl": "strands of endochitin" },
"snippet_category": "endochitin_desc",
"description": "A piece of an insect's endoskeleton.",
"price": 0,
"stackable": true,
"material": "chitin",
"flags": [ "NO_SALVAGE" ],
"weight": "89 g",
"volume": "300 ml",
"bashing": 1
},
{
"type": "GENERIC",
"id": "mutant_bug_hydrogen_sacs",
Expand All @@ -366,6 +349,7 @@
"name": { "str": "cluster of gas sacs", "str_pl": "clusters of gas sacs" },
"description": "This is a cluster of membranous bubbles, each about the size of a grape, retrieved from inside a mutant insect. They float like tiny helium balloons, and are likely full of a lighter-than-air gas helping the bug to fly.",
"price": 0,
"stackable": true,
"material": "flesh",
"flags": [ "NO_SALVAGE" ],
"weight": "50 g",
Expand Down
5 changes: 5 additions & 0 deletions data/json/obsoletion/migration.json
Original file line number Diff line number Diff line change
Expand Up @@ -1908,5 +1908,10 @@
"type": "MIGRATION",
"replace": "welder",
"flags": [ "resized_large" ]
},
{
"id": "endochitin",
"type": "MIGRATION",
"replace": "chitin_piece"
}
]
14 changes: 0 additions & 14 deletions data/json/snippets/mutant_anatomy.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,20 +101,6 @@
}
]
},
{
"type": "snippet",
"category": "endochitin_desc",
"text": [
{
"id": "endochitin_1",
"text": "A piece of rigid, tube-shaped chitin from the inside of a giant bug. It seemed to be performing some kind of support role. You're quite sure normal insects don't have these."
},
{
"id": "endochitin_2",
"text": "A long, flexible rod of chitin from inside a giant mutant bug. It is laced with blood vessels and chitinous nodules."
}
]
},
{
"type": "snippet",
"category": "<bug_harvest_general_chitin>",
Expand Down

0 comments on commit 23a9830

Please sign in to comment.