Skip to content

Commit

Permalink
Merge pull request #72224 from RenechCDDA/cannibalism_as_a_vitamin
Browse files Browse the repository at this point in the history
Cannibalism checks as a vitamin
  • Loading branch information
kevingranade authored Mar 20, 2024
2 parents 496d3ec + 539c7db commit e3cebbc
Show file tree
Hide file tree
Showing 26 changed files with 133 additions and 95 deletions.
2 changes: 1 addition & 1 deletion data/json/flags.json
Original file line number Diff line number Diff line change
Expand Up @@ -1207,7 +1207,7 @@
{
"id": "CANNIBALISM",
"type": "json_flag",
"craft_inherit": true
"//": "Obsoleted!"
},
{
"id": "STRICT_HUMANITARIANISM",
Expand Down
9 changes: 2 additions & 7 deletions data/json/itemgroups/SUS/lodge.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,10 @@
"subtype": "collection",
"entries": [
{ "item": "machete", "prob": 20 },
{
"item": "meat_salted",
"components": [ "human_flesh", "salt" ],
"custom-flags": [ "CANNIBALISM" ],
"prob": 30
},
{ "item": "meat_salted", "components": [ "human_flesh", "salt" ], "prob": 30 },
{ "group": "preserved_food", "prob": 20 },
{ "group": "dry_goods", "prob": 30 },
{ "item": "meat_smoked", "components": [ "human_flesh" ], "custom-flags": [ "CANNIBALISM" ], "prob": 60 },
{ "item": "meat_smoked", "components": [ "human_flesh" ], "prob": 60 },
{ "group": "pantry", "prob": 10 }
]
}
Expand Down
17 changes: 10 additions & 7 deletions data/json/items/comestibles/carnivore.json
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@
"name": { "str_sp": "human flesh" },
"description": "A chunk of raw meat, butchered from a human body.",
"material": [ "hflesh" ],
"vitamins": [ [ "calcium", 2 ], [ "iron", 12 ], [ "human_flesh_vitamin", 100 ] ],
"delete": { "flags": [ "PREDATOR_FUN" ] }
},
{
Expand Down Expand Up @@ -387,6 +388,7 @@
"looks_like": "meat_scrap",
"name": { "str": "scrap of human flesh", "str_pl": "scraps of human flesh" },
"description": "A tiny scrap of raw human flesh.",
"vitamins": [ [ "calcium", 0 ], [ "iron", 1 ], [ "human_flesh_vitamin", 10 ] ],
"material": [ "hflesh" ]
},
{
Expand Down Expand Up @@ -694,7 +696,7 @@
"type": "COMESTIBLE",
"comestible_type": "FOOD",
"name": { "str_sp": "roasted bone marrow" },
"conditional_names": [ { "type": "FLAG", "condition": "CANNIBALISM", "name": { "str_sp": "marvin marrow" } } ],
"conditional_names": [ { "type": "VITAMIN", "condition": "human_flesh_vitamin", "name": { "str_sp": "marvin marrow" } } ],
"description": "Bone marrow, fully cooked to eliminate any parasites. Tasty!",
"symbol": "%",
"color": "red",
Expand All @@ -713,7 +715,7 @@
"type": "COMESTIBLE",
"comestible_type": "FOOD",
"name": { "str_sp": "roasted pepper bone marrow" },
"conditional_names": [ { "type": "FLAG", "condition": "CANNIBALISM", "name": { "str_sp": "marvin marrow" } } ],
"conditional_names": [ { "type": "VITAMIN", "condition": "human_flesh_vitamin", "name": { "str_sp": "marvin marrow" } } ],
"description": "Bone marrow, fully cooked to eliminate any parasites and properly seasoned with black pepper and salt. Tasty!",
"symbol": "%",
"color": "red",
Expand Down Expand Up @@ -843,7 +845,7 @@
"type": "COMESTIBLE",
"name": { "str_sp": "meat jerky" },
"conditional_names": [
{ "type": "FLAG", "condition": "CANNIBALISM", "name": { "str_sp": "jerk jerky" } },
{ "type": "VITAMIN", "condition": "human_flesh_vitamin", "name": { "str_sp": "jerk jerky" } },
{ "type": "FLAG", "condition": "STRICT_HUMANITARIANISM", "name": { "str_sp": "talking animal jerky" } },
{ "type": "COMPONENT_ID_SUBSTRING", "condition": "mutant", "name": { "str_sp": "monster jerky" } }
],
Expand Down Expand Up @@ -903,7 +905,7 @@
"type": "COMESTIBLE",
"name": { "str_sp": "smoked meat" },
"conditional_names": [
{ "type": "FLAG", "condition": "CANNIBALISM", "name": { "str_sp": "smoked sucker" } },
{ "type": "VITAMIN", "condition": "human_flesh_vitamin", "name": { "str_sp": "smoked sucker" } },
{ "type": "FLAG", "condition": "STRICT_HUMANITARIANISM", "name": { "str_sp": "smoked Narnian" } },
{ "type": "COMPONENT_ID_SUBSTRING", "condition": "mutant", "name": { "str_sp": "%s, mutant" } }
],
Expand Down Expand Up @@ -1595,12 +1597,13 @@
"flags": [ "TRADER_AVOID", "RAW" ]
},
{
"type": "GENERIC",
"type": "COMESTIBLE",
"id": "bone_human",
"copy-from": "bone",
"name": { "str": "human bone" },
"description": "A bone from a human being. Could be used to make some stuff, if you're feeling sufficiently ghoulish.",
"flags": [ "CANNIBALISM" ]
"//": "No extend support for vitamins, we need to overwrite",
"vitamins": [ [ "calcium", 96 ], [ "human_flesh_vitamin", 100 ] ]
},
{
"type": "GENERIC",
Expand Down Expand Up @@ -2008,7 +2011,7 @@
"type": "COMESTIBLE",
"name": { "str_sp": "fried meat" },
"conditional_names": [
{ "type": "FLAG", "condition": "CANNIBALISM", "name": { "str_sp": "fried fool" } },
{ "type": "VITAMIN", "condition": "human_flesh_vitamin", "name": { "str_sp": "fried fool" } },
{ "type": "FLAG", "condition": "STRICT_HUMANITARIANISM", "name": { "str_sp": "fried familiar" } },
{ "type": "COMPONENT_ID_SUBSTRING", "condition": "mutant", "name": { "str_sp": "%s, mutant" } }
],
Expand Down
4 changes: 2 additions & 2 deletions data/json/items/comestibles/junkfood.json
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@
"id": "nachosm",
"name": { "str_sp": "meat nachos" },
"conditional_names": [
{ "type": "FLAG", "condition": "CANNIBALISM", "name": { "str_sp": "niño nachos" } },
{ "type": "VITAMIN", "condition": "human_flesh_vitamin", "name": { "str_sp": "niño nachos" } },
{ "type": "FLAG", "condition": "STRICT_HUMANITARIANISM", "name": { "str_sp": "nibelung nachos" } },
{ "type": "COMPONENT_ID_SUBSTRING", "condition": "mutant", "name": { "str_sp": "nachos con chupacabra" } }
],
Expand All @@ -810,7 +810,7 @@
"id": "nachosmc",
"name": { "str_sp": "meat nachos with cheese" },
"conditional_names": [
{ "type": "FLAG", "condition": "CANNIBALISM", "name": { "str_sp": "niño nachos with cheese" } },
{ "type": "VITAMIN", "condition": "human_flesh_vitamin", "name": { "str_sp": "niño nachos with cheese" } },
{ "type": "FLAG", "condition": "STRICT_HUMANITARIANISM", "name": { "str_sp": "nibelung nachos with cheese" } },
{
"type": "COMPONENT_ID_SUBSTRING",
Expand Down
Loading

0 comments on commit e3cebbc

Please sign in to comment.