Skip to content

Commit

Permalink
Mod updated for 1.5 and passed autotests
Browse files Browse the repository at this point in the history
  • Loading branch information
emipa606 committed Apr 16, 2024
1 parent dd4cc57 commit ec17151
Show file tree
Hide file tree
Showing 11 changed files with 921 additions and 11 deletions.
569 changes: 569 additions & 0 deletions 1.5/Defs/RecipeDefs/Recipes.xml

Large diffs are not rendered by default.

292 changes: 292 additions & 0 deletions 1.5/Defs/ThingDefs/Things.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,292 @@
<?xml version="1.0" encoding="utf-8"?>
<Defs>
<!-- Cheeseburger -->
<ThingDef ParentName="MealRottable">
<defName>CAN_grilledmeat</defName>
<label>Cannibal Cheese Burger</label>
<description>Two slices of bread with grilled human meat and cheese melt. \n\nFood Effects: Metabolism.</description>
<graphicData>
<texPath>VGP/CAN_grilledmeat</texPath>
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<statBases>
<DeteriorationRate>10</DeteriorationRate>
<Nutrition>0.90</Nutrition>
<MarketValue>25</MarketValue>
</statBases>
<ingestible>
<preferability>MealFine</preferability>
<ingestEffect>EatVegetarian</ingestEffect>
<ingestSound>Meal_Eat</ingestSound>
<outcomeDoers>
<li Class="IngestionOutcomeDoer_GiveHediff">
<hediffDef>HedGardenMeal</hediffDef>
<severity>0.25</severity>
</li>
</outcomeDoers>
</ingestible>
<thingCategories>
<li>CannibalMeals</li>
</thingCategories>
</ThingDef>
<!-- Pizza -->
<ThingDef ParentName="MealRottable">
<defName>CAN_pizza</defName>
<label>Cannibal pizza</label>
<description>Cannibalpizza in 30 minutes or less! \n\nFood Effects: Consciousness and Metabolism.</description>
<graphicData>
<texPath>VGP/CAN_pizza</texPath>
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<statBases>
<DeteriorationRate>10</DeteriorationRate>
<MarketValue>25</MarketValue>
<Nutrition>1.00</Nutrition>
<WorkToMake>500</WorkToMake>
</statBases>
<ingestible>
<preferability>MealLavish</preferability>
<tasteThought>AteLavishMeal</tasteThought>
<ingestEffect>EatVegetarian</ingestEffect>
<ingestSound>Meal_Eat</ingestSound>
<outcomeDoers>
<li Class="IngestionOutcomeDoer_GiveHediff">
<hediffDef>HedBakedGood</hediffDef>
<severity>0.25</severity>
</li>
</outcomeDoers>
</ingestible>
<thingCategories>
<li>CannibalMeals</li>
</thingCategories>
</ThingDef>
<!-- Tacos -->
<ThingDef ParentName="MealRottable">
<defName>CAN_Tacos</defName>
<label>Cannibal Tacos</label>
<description>Human Meat and Cheese in a Corn shell. \n\nFood Effects: Manipulation and Metabolism.</description>
<graphicData>
<texPath>VGP/CAN_Tacos</texPath>
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<statBases>
<DeteriorationRate>10</DeteriorationRate>
<Nutrition>0.9</Nutrition>
<MarketValue>15</MarketValue>
</statBases>
<ingestible>
<preferability>MealFine</preferability>
<tasteThought>AteFineMeal</tasteThought>
<joy>0.2</joy>
<joyKind>Gluttonous</joyKind>
<ingestEffect>EatVegetarian</ingestEffect>
<ingestSound>Meal_Eat</ingestSound>
<outcomeDoers>
<li Class="IngestionOutcomeDoer_GiveHediff">
<hediffDef>HedLavishGardenMeal</hediffDef>
<severity>0.25</severity>
</li>
</outcomeDoers>
</ingestible>
<thingCategories>
<li>CannibalMeals</li>
</thingCategories>
</ThingDef>
<!-- Grilled Steak -->
<ThingDef ParentName="MealRottable">
<defName>CAN_Grilledsteak</defName>
<label>Grilled Human Steak</label>
<description>Human meat that has been cooked over a grill.</description>
<graphicData>
<texPath>VGP/CAN_Grilledsteak</texPath>
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<statBases>
<DeteriorationRate>10</DeteriorationRate>
<Nutrition>0.9</Nutrition>
<MarketValue>18</MarketValue>
<WorkToMake>1000</WorkToMake>
</statBases>
<ingestible>
<preferability>MealSimple</preferability>
<ingestEffect>EatVegetarian</ingestEffect>
<ingestSound>Meal_Eat</ingestSound>
</ingestible>
<thingCategories>
<li>CannibalMeals</li>
</thingCategories>
</ThingDef>
<!-- Kabob -->
<ThingDef ParentName="MealRottable">
<defName>CAN_Kabob</defName>
<label>Grilled Cannibal Kabob</label>
<description>Human meats and Vegetables skewered on a stick and grilled to perfection.</description>
<graphicData>
<texPath>VGP/CAN_Kabob</texPath>
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<statBases>
<DeteriorationRate>10</DeteriorationRate>
<MarketValue>18</MarketValue>
<Nutrition>0.9</Nutrition>
<WorkToMake>1000</WorkToMake>
</statBases>
<ingestible>
<preferability>MealSimple</preferability>
<ingestEffect>EatVegetarian</ingestEffect>
<ingestSound>Meal_Eat</ingestSound>
<outcomeDoers>
<li Class="IngestionOutcomeDoer_GiveHediff">
<hediffDef>HedGardenMeal</hediffDef>
<severity>0.25</severity>
</li>
</outcomeDoers>
</ingestible>
<thingCategories>
<li>CannibalMeals</li>
</thingCategories>
</ThingDef>
<!-- Meat Pie -->
<ThingDef ParentName="MealRottable">
<defName>CAN_meatpie</defName>
<label>Human meat pie</label>
<description>A simple baked pie with a filling of human meat.</description>
<graphicData>
<texPath>VGP/CAN_meatpie</texPath>
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<statBases>
<DeteriorationRate>10</DeteriorationRate>
<Nutrition>0.70</Nutrition>
<MarketValue>12</MarketValue>
<WorkToMake>1000</WorkToMake>
</statBases>
<ingestible>
<preferability>MealSimple</preferability>
<ingestEffect>EatVegetarian</ingestEffect>
<ingestSound>Meal_Eat</ingestSound>
<outcomeDoers>
<li Class="IngestionOutcomeDoer_GiveHediff">
<hediffDef>HedSimpleGarden</hediffDef>
<severity>0.25</severity>
</li>
</outcomeDoers>
</ingestible>
<thingCategories>
<li>CannibalMeals</li>
</thingCategories>
</ThingDef>
<!-- Stew -->
<ThingDef ParentName="MealBase">
<defName>CAN_bowlstew</defName>
<label>Bowl of cannibal stew</label>
<description>A bowl of slow cooking cannibal stew. \n\nFood Effects: Consciousness, Metabolism, Blood Filtration, and Blood Pumping.</description>
<graphicData>
<texPath>VGP/CAN_bowlstew</texPath>
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<statBases>
<DeteriorationRate>10</DeteriorationRate>
<MarketValue>25</MarketValue>
<WorkToMake>1500</WorkToMake>
<Nutrition>1.00</Nutrition>
</statBases>
<ingestible>
<preferability>MealLavish</preferability>
<tasteThought>AteLavishMeal</tasteThought>
<ingestEffect>EatVegetarian</ingestEffect>
<ingestSound>Meal_Eat</ingestSound>
<outcomeDoers>
<li Class="IngestionOutcomeDoer_GiveHediff">
<hediffDef>HedStew</hediffDef>
<severity>0.25</severity>
</li>
</outcomeDoers>
</ingestible>
<thingCategories>
<li>CannibalMeals</li>
</thingCategories>
<comps>
<li Class="CompProperties_Rottable">
<daysToRotStart>4</daysToRotStart>
<rotDestroys>true</rotDestroys>
</li>
</comps>
</ThingDef>
<!-- Stirfry -->
<ThingDef ParentName="MealBase">
<defName>CAN_stirfry</defName>
<label>Cannibal stirfry</label>
<description>Cooking technique in which ingredients are fried in a small amount of very hot oil. \n\nFood Effects: Manipulation and Blood Filtration.</description>
<graphicData>
<texPath>VGP/CAN_stirfry</texPath>
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<statBases>
<DeteriorationRate>10</DeteriorationRate>
<MarketValue>25</MarketValue>
<WorkToMake>10000</WorkToMake>
<Nutrition>0.90</Nutrition>
</statBases>
<ingestible>
<preferability>MealFine</preferability>
<tasteThought>AteFineMeal</tasteThought>
<ingestEffect>EatVegetarian</ingestEffect>
<ingestSound>Meal_Eat</ingestSound>
<outcomeDoers>
<li Class="IngestionOutcomeDoer_GiveHediff">
<hediffDef>HedStirfry</hediffDef>
<severity>0.25</severity>
</li>
</outcomeDoers>
</ingestible>
<thingCategories>
<li>CannibalMeals</li>
</thingCategories>
<comps>
<li Class="CompProperties_Rottable">
<daysToRotStart>4</daysToRotStart>
<rotDestroys>true</rotDestroys>
</li>
</comps>
</ThingDef>
<!-- Salted Meat -->
<ThingDef ParentName="ResourceBase">
<defName>CAN_SaltedMeat</defName>
<label>Salted human meat</label>
<description>Human meat that has been cured with salt.</description>
<socialPropernessMatters>true</socialPropernessMatters>
<graphicData>
<texPath>VGP/CAN_SaltedMeat</texPath>
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<thingCategories>
<li>MeatRaw</li>
</thingCategories>
<tickerType>Rare</tickerType>
<statBases>
<MaxHitPoints>60</MaxHitPoints>
<MarketValue>5</MarketValue>
<Nutrition>0.05</Nutrition>
<Mass>0.025</Mass>
<Flammability>1.0</Flammability>
<DeteriorationRate>5</DeteriorationRate>
</statBases>
<comps>
<li Class="CompProperties_Rottable">
<daysToRotStart>80</daysToRotStart>
</li>
</comps>
<ingestible>
<foodType>Meat</foodType>
<maxNumToIngestAtOnce>10</maxNumToIngestAtOnce>
<optimalityOffsetHumanlikes>-10</optimalityOffsetHumanlikes>
<optimalityOffsetFeedingAnimals>-5</optimalityOffsetFeedingAnimals>
<ingestEffect>EatVegetarian</ingestEffect>
<preferability>MealAwful</preferability>
<tasteThought>
</tasteThought>
<ingestSound>Meal_Eat</ingestSound>
</ingestible>
</ThingDef>
</Defs>
40 changes: 40 additions & 0 deletions 1.5/Patches/Patches.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>
<Operation Class="PatchOperationSequence">
<!-- check for ThingCategoryDef and if none found, add one -->
<success>Always</success>
<operations>
<li Class="PatchOperationTest">
<xpath>/Defs/ThingCategoryDef[defName = "CannibalMeals"]</xpath>
<success>Invert</success>
</li>
<li Class="PatchOperationAdd">
<xpath>/Defs</xpath>
<value>
<ThingCategoryDef>
<defName>CannibalMeals</defName>
<label>Cannibal Meals</label>
<parent>FoodMeals</parent>
<iconPath>VGP/CAN_Category</iconPath>
</ThingCategoryDef>
</value>
</li>
</operations>
</Operation>
<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationTest">
<xpath>/Defs/ThingDef[defName = "CAN_CannibalMealSimple" or defName = "CAN_CannibalMealSurvivalPack" or defName = "CAN_CannibalMealFine" or defName = "CAN_CannibalMealLavish"]</xpath>
</li>
<li Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[defName = "CAN_CannibalMealSimple" or defName = "CAN_CannibalMealSurvivalPack" or defName = "CAN_CannibalMealFine" or defName = "CAN_CannibalMealLavish"]</xpath>
<value>
<thingCategories Inherit="False">
<li>CannibalMeals</li>
</thingCategories>
</value>
</li>
</operations>
</Operation>
</Patch>
13 changes: 8 additions & 5 deletions About/About.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<li>1.2</li>
<li>1.3</li>
<li>1.4</li>
<li>1.5</li>
</supportedVersions>
<modDependencies>
<li>
Expand All @@ -29,7 +30,7 @@
<li>dismarzero.VGP.VGPVegetableGarden</li>
<li>dismarzero.VGP.VGPGardenGourmet</li>
</loadAfter>
<description>[img]https://i.imgur.com/buuPQel.png[/img]
<description>[img]https://i.imgur.com/iCj5o7O.png[/img]

Adds cannibal versions of [strike]all base and[/strike] Vegetable Garden Project-meals.

Expand Down Expand Up @@ -61,7 +62,7 @@ https://steamcommunity.com/sharedfiles/filedetails/?id=1558455017

[table]
[tr]
[td][url=https://invite.gg/Mlie][img]https://i.imgur.com/zdzzBrc.png[/img][/url][/td]
[td][url=https://dsc.gg/mlie][img]https://i.imgur.com/zdzzBrc.png[/img][/url][/td]
[td][url=https://github.com/emipa606/VGCannibalPatch][img]https://i.imgur.com/kTkpTOE.png[/img][/url][/td]
[/tr]
[tr]
Expand All @@ -70,15 +71,17 @@ https://steamcommunity.com/sharedfiles/filedetails/?id=1558455017
[/tr]
[/table]

[img]https://i.imgur.com/PwoNOj4.png[/img]
[img]https://i.imgur.com/5xwDG6H.png[/img]
[list]
[*] See if the the error persists if you just have this mod and its requirements active.
[*] If not, try adding your other mods until it happens again.
[*] Post your error-log using [url=https://steamcommunity.com/workshop/filedetails/?id=818773962]HugsLib[/url] and command Ctrl+F12
[*] Post your error-log using [url=https://steamcommunity.com/workshop/filedetails/?id=818773962]HugsLib[/url] or the standalone [url=https://steamcommunity.com/sharedfiles/filedetails/?id=2873415404]Uploader[/url] and command Ctrl+F12
[*] For best support, please use the Discord-channel for error-reporting.
[*] Do not report errors by making a discussion-thread, I get no notification of that.
[*] If you have the solution for a problem, please post it to the GitHub repository.
[*] Use [url=https://github.com/RimSort/RimSort/releases/latest]RimSort[/url] to sort your mods
[/list]

</description>
[url=https://steamcommunity.com/sharedfiles/filedetails/changelog/1537104826][img]https://img.shields.io/github/v/release/emipa606/VGCannibalPatch?label=latest%20version&amp;style=plastic&amp;labelColor=0070cd&amp;color=white[/img][/url]</description>
<modVersion IgnoreIfNoMatchingField="True">1.5.0</modVersion>
</ModMetaData>
3 changes: 3 additions & 0 deletions About/Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog for VGCannibalPatch

1.5.0 - Mod updated for 1.5 and passed autotests


1.4.1 - Mod updated for 1.4 and passed autotests


Expand Down

0 comments on commit ec17151

Please sign in to comment.