Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Official-Husko committed Feb 12, 2024
0 parents commit 6aef1f0
Show file tree
Hide file tree
Showing 15 changed files with 421 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/Sources
109 changes: 109 additions & 0 deletions 1.4/Defs/ThingDefs_Items/Items_Rimays.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
<?xml version="1.0" encoding="utf-8"?>
<Defs>

<!-- Ketchup Chips -->
<ThingDef ParentName="ResourceBase">
<defName>RimaysKetchupTaste</defName>
<label>Rimays Ketchup Taste</label>
<description>Rimays was developed by Zapsik a long time ago. The company went bankrupt, but
the recipe has spread throughout the universe and has now reached Rimworld.
\nKetchup rimays. Cut the potatoes into slices and stir in the ketchup after
frying the potatoes.</description>
<graphicData>
<texPath>Things/Items/Ketchup</texPath>
<graphicClass>Graphic_StackCount</graphicClass>
<drawSize>0.6</drawSize>
</graphicData>
<soundInteract>Standard_Drop</soundInteract>
<soundDrop>Standard_Drop</soundDrop>
<statBases>
<WorkToMake>100</WorkToMake>
<MaxHitPoints>45</MaxHitPoints>
<MarketValue>9</MarketValue>
<Mass>0.040</Mass>
<Nutrition>0.025</Nutrition>
<Flammability>1.0</Flammability>
<DeteriorationRate>6</DeteriorationRate>
</statBases>
<recipeMaker>
<recipeUsers>
<li>VCE_DeepFrier</li>
</recipeUsers>
<soundWorking>Recipe_CookMeal</soundWorking>
<bulkRecipeCount>10</bulkRecipeCount>
</recipeMaker>
<costList>
<RawPotatoes>1</RawPotatoes>
<VCE_Ketchup>1</VCE_Ketchup>
</costList>
<ingestible>
<baseIngestTicks>80</baseIngestTicks>
<preferability>DesperateOnly</preferability>
<foodType>Processed</foodType>
<joy>0.4</joy>
<joyKind>Gluttonous</joyKind>
<maxNumToIngestAtOnce>1</maxNumToIngestAtOnce>
<ingestSound>Meal_Eat</ingestSound>
<tasteThought>AteRimaysKetchupTaste</tasteThought>
</ingestible>
<tradeability>All</tradeability>
<socialPropernessMatters>false</socialPropernessMatters>
<thingCategories>
<li>Rimays_Snack</li>
</thingCategories>
</ThingDef>

<!-- Vinegar & Salt Chips -->
<ThingDef ParentName="ResourceBase">
<defName>RimaysVinegarSaltTaste</defName>
<label>Rimays Vinegar Salt Taste</label>
<description>Rimays was developed by Zapsik a long time ago. The company went bankrupt, but
the recipe has spread throughout the universe and has now reached Rimworld.
\nVinegar and Salt rimays. Cut the potatoes into slices and sprinkle it with vinegar and salt after
frying the potatoes.</description>
<graphicData>
<texPath>Things/Items/Vinegar_Salt</texPath>
<graphicClass>Graphic_StackCount</graphicClass>
<drawSize>0.6</drawSize>
</graphicData>
<soundInteract>Standard_Drop</soundInteract>
<soundDrop>Standard_Drop</soundDrop>
<statBases>
<WorkToMake>100</WorkToMake>
<MaxHitPoints>45</MaxHitPoints>
<MarketValue>12</MarketValue>
<Mass>0.040</Mass>
<Nutrition>0.035</Nutrition>
<Flammability>1.0</Flammability>
<DeteriorationRate>6</DeteriorationRate>
</statBases>
<recipeMaker>
<recipeUsers>
<li>VCE_DeepFrier</li>
</recipeUsers>
<soundWorking>Recipe_CookMeal</soundWorking>
<bulkRecipeCount>10</bulkRecipeCount>
</recipeMaker>
<costList>
<RawPotatoes>1</RawPotatoes>
<VCE_Salt>1</VCE_Salt>
<GAB_Vinegar>1</GAB_Vinegar>
</costList>
<ingestible>
<baseIngestTicks>80</baseIngestTicks>
<preferability>DesperateOnly</preferability>
<foodType>Processed</foodType>
<joy>0.6</joy>
<joyKind>Gluttonous</joyKind>
<maxNumToIngestAtOnce>1</maxNumToIngestAtOnce>
<ingestSound>Meal_Eat</ingestSound>
<tasteThought>AteRimaysVinegarSaltTaste</tasteThought>
</ingestible>
<tradeability>All</tradeability>
<socialPropernessMatters>false</socialPropernessMatters>
<thingCategories>
<li>Rimays_Snack</li>
</thingCategories>
</ThingDef>

</Defs>
30 changes: 30 additions & 0 deletions 1.4/Defs/ThoughtDefs/Thoughts_Eat.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>

<ThoughtDef>
<thoughtClass>VanillaCookingExpanded.Thought_Hediff</thoughtClass>
<defName>AteRimaysKetchupTaste</defName>
<durationDays>0.5</durationDays>
<stages>
<li>
<label>ate Ketchup chip</label>
<description>Mhmm! I love the taste of Ketchup! I think I'll keep going!</description>
<baseMoodEffect>7</baseMoodEffect>
</li>
</stages>
</ThoughtDef>

<ThoughtDef>
<thoughtClass>VanillaCookingExpanded.Thought_Hediff</thoughtClass>
<defName>AteRimaysVinegarSaltTaste</defName>
<durationDays>0.6</durationDays>
<stages>
<li>
<label>ate Salty Vinegar chip</label>
<description>Salty Rimays with Vinegar? It's salty and tastes good but hurts like hell on my scratch!</description>
<baseMoodEffect>7</baseMoodEffect>
</li>
</stages>
</ThoughtDef>

</Defs>
111 changes: 111 additions & 0 deletions 1.4/Patches/Patch_Rimays.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>
<Operation Class="PatchOperationFindMod">
<mods>
<li>Rimays</li>
</mods>
<match Class="PatchOperationSequence">
<operations>

<!-- This patches all chips to make them tradable -->

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName = "RimaysBasicTaste"]/tradeability</xpath>
<value>
<tradeability>All</tradeability>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName = "RimaysOnionTaste"]/tradeability</xpath>
<value>
<tradeability>All</tradeability>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName = "RimaysMayoTaste"]/tradeability</xpath>
<value>
<tradeability>All</tradeability>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName = "RimaysSpicesTaste"]/tradeability</xpath>
<value>
<tradeability>All</tradeability>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName = "RimaysCheeseTaste"]/tradeability</xpath>
<value>
<tradeability>All</tradeability>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName = "RimaysChileTaste"]/tradeability</xpath>
<value>
<tradeability>All</tradeability>
</value>
</li>

<!-- Patch Classic to be correct -->

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName = "RimaysBasicTaste"]/description</xpath>
<value>
<description>This is Rimays developed by Zapsik a long time ago. The company went bankrupt, but the recipe has spread throughout the universe and has now reached Rimworld.
\nSalt rimays. Cut the potatoes into slices, sprinkle with salt and fry the potatoes.</description>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName = "RimaysBasicTaste"]/costList</xpath>
<value>
<VCE_Salt>1</VCE_Salt>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName = "RimaysBasicTaste"]/ingestible/tasteThought</xpath>
<value>
<tasteThought>AteRimaysSaltTaste</tasteThought>
</value>
</li>

<!-- Remove salted chips because they are redundant with fixed classic chips -->

<li Class="PatchOperationRemove">
<xpath>Defs/ThingDef[defName = "RimaysSaltTaste"]</xpath>
</li>

<li Class="PatchOperationRemove">
<xpath>Defs/TraderKindDef[defName = "Caravan_Outlander_BulkGoods"]/stockGenerators/li[thingDef = "RimaysSaltTaste"]</xpath>
</li>

<li Class="PatchOperationRemove">
<xpath>Defs/TraderKindDef[defName = "Caravan_Outlander_Exotic"]/stockGenerators/li[thingDef = "RimaysSaltTaste"]</xpath>
</li>

<li Class="PatchOperationRemove">
<xpath>Defs/TraderKindDef[defName = "Base_Outlander_Standard"]/stockGenerators/li[thingDef = "RimaysSaltTaste"]</xpath>
</li>

<li Class="PatchOperationRemove">
<xpath>Defs/TraderKindDef[defName = "Visitor_Outlander_Standard"]/stockGenerators/li[thingDef = "RimaysSaltTaste"]</xpath>
</li>

<li Class="PatchOperationRemove">
<xpath>Defs/TraderKindDef[defName = "Orbital_BulkGoods"]/stockGenerators/li[thingDef = "RimaysSaltTaste"]</xpath>
</li>

<li Class="PatchOperationRemove">
<xpath>Defs/TraderKindDef[defName = "Orbital_Exotic"]/stockGenerators/li[thingDef = "RimaysSaltTaste"]</xpath>
</li>

</operations>
</match>
</Operation>
</Patch>
135 changes: 135 additions & 0 deletions 1.4/Patches/Patch_StockGen.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>

<!--Caravan_Outlander_BulkGoods-->
<Operation Class="PatchOperationAdd">
<xpath>Defs/TraderKindDef[defName = "Caravan_Outlander_BulkGoods"]/stockGenerators</xpath>
<value>
<li Class="StockGenerator_SingleDef">
<thingDef>RimaysKetchupTaste</thingDef>
<countRange>5~15</countRange>
</li>
</value>
</Operation>

<!--Caravan_Outlander_Exotic-->
<Operation Class="PatchOperationAdd">
<xpath>Defs/TraderKindDef[defName = "Caravan_Outlander_Exotic"]/stockGenerators</xpath>
<value>
<li Class="StockGenerator_SingleDef">
<thingDef>RimaysKetchupTaste</thingDef>
<countRange>2~10</countRange>
</li>
</value>
</Operation>

<!--Base_Outlander_Standard-->
<Operation Class="PatchOperationAdd">
<xpath>Defs/TraderKindDef[defName = "Base_Outlander_Standard"]/stockGenerators</xpath>
<value>
<li Class="StockGenerator_SingleDef">
<thingDef>RimaysKetchupTaste</thingDef>
<countRange>10~50</countRange>
</li>
</value>
</Operation>

<!--Visitor_Outlander_Standard-->
<Operation Class="PatchOperationAdd">
<xpath>Defs/TraderKindDef[defName = "Visitor_Outlander_Standard"]/stockGenerators</xpath>
<value>
<li Class="StockGenerator_SingleDef">
<thingDef>RimaysKetchupTaste</thingDef>
<countRange>0~5</countRange>
</li>
</value>
</Operation>

<!--Orbital_BulkGoods-->
<Operation Class="PatchOperationAdd">
<xpath>Defs/TraderKindDef[defName = "Orbital_BulkGoods"]/stockGenerators</xpath>
<value>
<li Class="StockGenerator_SingleDef">
<thingDef>RimaysKetchupTaste</thingDef>
<countRange>10~50</countRange>
</li>
</value>
</Operation>

<!--Orbital_Exotic-->
<Operation Class="PatchOperationAdd">
<xpath>Defs/TraderKindDef[defName = "Orbital_Exotic"]/stockGenerators</xpath>
<value>
<li Class="StockGenerator_SingleDef">
<thingDef>RimaysKetchupTaste</thingDef>
<countRange>10~50</countRange>
</li>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/TraderKindDef[defName = "Caravan_Outlander_BulkGoods"]/stockGenerators</xpath>
<value>
<li Class="StockGenerator_SingleDef">
<thingDef>RimaysVinegarSaltTaste</thingDef>
<countRange>5~15</countRange>
</li>
</value>
</Operation>

<!--Caravan_Outlander_Exotic-->
<Operation Class="PatchOperationAdd">
<xpath>Defs/TraderKindDef[defName = "Caravan_Outlander_Exotic"]/stockGenerators</xpath>
<value>
<li Class="StockGenerator_SingleDef">
<thingDef>RimaysVinegarSaltTaste</thingDef>
<countRange>2~10</countRange>
</li>
</value>
</Operation>

<!--Base_Outlander_Standard-->
<Operation Class="PatchOperationAdd">
<xpath>Defs/TraderKindDef[defName = "Base_Outlander_Standard"]/stockGenerators</xpath>
<value>
<li Class="StockGenerator_SingleDef">
<thingDef>RimaysVinegarSaltTaste</thingDef>
<countRange>10~50</countRange>
</li>
</value>
</Operation>

<!--Visitor_Outlander_Standard-->
<Operation Class="PatchOperationAdd">
<xpath>Defs/TraderKindDef[defName = "Visitor_Outlander_Standard"]/stockGenerators</xpath>
<value>
<li Class="StockGenerator_SingleDef">
<thingDef>RimaysVinegarSaltTaste</thingDef>
<countRange>0~5</countRange>
</li>
</value>
</Operation>

<!--Orbital_BulkGoods-->
<Operation Class="PatchOperationAdd">
<xpath>Defs/TraderKindDef[defName = "Orbital_BulkGoods"]/stockGenerators</xpath>
<value>
<li Class="StockGenerator_SingleDef">
<thingDef>RimaysVinegarSaltTaste</thingDef>
<countRange>10~50</countRange>
</li>
</value>
</Operation>

<!--Orbital_Exotic-->
<Operation Class="PatchOperationAdd">
<xpath>Defs/TraderKindDef[defName = "Orbital_Exotic"]/stockGenerators</xpath>
<value>
<li Class="StockGenerator_SingleDef">
<thingDef>RimaysVinegarSaltTaste</thingDef>
<countRange>10~50</countRange>
</li>
</value>
</Operation>

</Patch>
Loading

0 comments on commit 6aef1f0

Please sign in to comment.