Skip to content

Commit

Permalink
Release
Browse files Browse the repository at this point in the history
  • Loading branch information
notfood committed Aug 7, 2016
1 parent c95cd7a commit 316de11
Show file tree
Hide file tree
Showing 22 changed files with 955 additions and 0 deletions.
7 changes: 7 additions & 0 deletions About/About.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<ModMetaData>
<name>Mending</name>
<author>notfood</author>
<url>https://ludeon.com/forums/index.php?topic=22894.0</url>
<targetVersion>0.14.1220</targetVersion>
<description>Repair the durability of items.</description>
</ModMetaData>
Binary file added About/Preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assemblies/Mending.dll
Binary file not shown.
10 changes: 10 additions & 0 deletions Defs/JobDefs/mending_Jobs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>

<JobDef>
<defName>Mending</defName>
<driverClass>Mending.JobDriver_Mend</driverClass>
<reportString>Mending TargetB.</reportString>
</JobDef>

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

<CommunityCoreLibrary.ModHelperDef>
<defName>MendingMod</defName>

<ModName>Mending</ModName>

<minCCLVersion>0.14.0</minCCLVersion>

<ThingComps>
<li>
<compProps Class="CommunityCoreLibrary.CompProperties_LowIdleDraw">
<compClass>CommunityCoreLibrary.CompPowerLowIdleDraw</compClass>
<idlePowerFactor>50</idlePowerFactor>
</compProps>
<targetDefs>
<li>TableMending</li>
</targetDefs>
</li>
</ThingComps>

<TraderKinds>
<li>
<targetDef>Caravan_Outlander_BulkGoods</targetDef>
<stockGenerators>
<li Class="StockGenerator_SingleDef">
<thingDef>MendingKit</thingDef>
<countRange>
<min>5</min>
<max>25</max>
</countRange>
</li>
</stockGenerators>
</li>
<li>
<targetDef>Caravan_Outlander_CombatSupplier</targetDef>
<stockGenerators>
<li Class="StockGenerator_SingleDef">
<thingDef>MendingKit</thingDef>
<countRange>
<min>-5</min>
<max>10</max>
</countRange>
</li>
</stockGenerators>
</li>
<li>
<targetDef>Orbital_Misc_BulkGoods</targetDef>
<stockGenerators>
<li Class="StockGenerator_SingleDef">
<thingDef>MendingKit</thingDef>
<countRange>
<min>5</min>
<max>25</max>
</countRange>
</li>
</stockGenerators>
</li>
<li>
<targetDef>Orbital_Misc_CombatSupplier</targetDef>
<stockGenerators>
<li Class="StockGenerator_SingleDef">
<thingDef>MendingKit</thingDef>
<countRange>
<min>-5</min>
<max>15</max>
</countRange>
</li>
</stockGenerators>
</li>

</TraderKinds>

</CommunityCoreLibrary.ModHelperDef>

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

<RecipeDef>
<defName>MendSimpleApparel</defName>
<label>mend simple apparel</label>
<description>Mend simple apparel.</description>
<jobString>Mending.</jobString>
<workAmount>100</workAmount>
<workSkill>Crafting</workSkill>
<effectWorking>Tailor</effectWorking>
<soundWorking>Recipe_Tailor</soundWorking>
<ingredients>
<li>
<filter>
<categories>
<li>Apparel</li>
</categories>
</filter>
<count>1</count>
</li>
</ingredients>
<fixedIngredientFilter>
<categories>
<li>Apparel</li>
</categories>
<exceptedCategories>
<li>Headgear</li>
</exceptedCategories>
<exceptedThingDefs>
<li>Apparel_VestPlate</li>
<li>Apparel_PowerArmor</li>
<li>Apparel_PersonalShield</li>
</exceptedThingDefs>
</fixedIngredientFilter>
<skillRequirements>
<li>
<skill>Crafting</skill>
<minLevel>4</minLevel>
</li>
</skillRequirements>
</RecipeDef>

<RecipeDef>
<defName>MendComplexApparel</defName>
<label>mend complex apparel</label>
<description>Mend armor.</description>
<jobString>Mending.</jobString>
<workAmount>200</workAmount>
<workSkill>Crafting</workSkill>
<effectWorking>Smith</effectWorking>
<soundWorking>Recipe_Smith</soundWorking>
<ingredients>
<li>
<filter>
<categories>
<li>Headgear</li>
</categories>
<thingDefs>
<li>Apparel_VestPlate</li>
<li>Apparel_PowerArmor</li>
<li>Apparel_PersonalShield</li>
</thingDefs>
</filter>
<count>1</count>
</li>
</ingredients>
<fixedIngredientFilter>
<categories>
<li>Headgear</li>
</categories>
<thingDefs>
<li>Apparel_VestPlate</li>
<li>Apparel_PowerArmor</li>
<li>Apparel_PersonalShield</li>
</thingDefs>
</fixedIngredientFilter>
<skillRequirements>
<li>
<skill>Crafting</skill>
<minLevel>8</minLevel>
</li>
</skillRequirements>
</RecipeDef>

<RecipeDef>
<defName>MendSimpleWeapon</defName>
<label>repair simple weapon</label>
<description>Repair weapon.</description>
<jobString>Repairing.</jobString>
<workAmount>50</workAmount>
<workSkill>Crafting</workSkill>
<effectWorking>Smith</effectWorking>
<soundWorking>Recipe_Smith</soundWorking>
<ingredients>
<li>
<filter>
<categories>
<li>WeaponsMelee</li>
</categories>
</filter>
<count>1</count>
</li>
</ingredients>
<fixedIngredientFilter>
<categories>
<li>WeaponsMelee</li>
</categories>
</fixedIngredientFilter>
<skillRequirements>
<li>
<skill>Crafting</skill>
<minLevel>4</minLevel>
</li>
</skillRequirements>
</RecipeDef>

<RecipeDef>
<defName>MendComplexWeapon</defName>
<label>repair complex weapon</label>
<description>Repair weapon.</description>
<jobString>Repairing.</jobString>
<workAmount>200</workAmount>
<workSkill>Crafting</workSkill>
<effectWorking>Smith</effectWorking>
<soundWorking>Recipe_Smith</soundWorking>
<ingredients>
<li>
<filter>
<categories>
<li>WeaponsRanged</li>
</categories>
</filter>
<count>1</count>
</li>
</ingredients>
<fixedIngredientFilter>
<categories>
<li>WeaponsRanged</li>
</categories>
</fixedIngredientFilter>
<skillRequirements>
<li>
<skill>Crafting</skill>
<minLevel>8</minLevel>
</li>
</skillRequirements>
</RecipeDef>

<!-- We can do any ingredients, even food -->
<!--
<RecipeDef>
<defName>MendProsthetics</defName>
<label>repair prosthetics</label>
<description>Repair prosthetics.</description>
<jobString>Repairing.</jobString>
<workAmount>50</workAmount>
<effectWorking>Repair</effectWorking>
<soundWorking>Recipe_Surgery</soundWorking>
<ingredients>
<li>
<filter>
<categories>
<li>BodyPartsArtificial</li>
</categories>
</filter>
<count>1</count>
</li>
</ingredients>
<fixedIngredientFilter>
<categories>
<li>BodyPartsArtificial</li>
</categories>
</fixedIngredientFilter>
</RecipeDef>
-->

</RecipeDefs>
52 changes: 52 additions & 0 deletions Defs/RecipeDefs/Recipes_Production.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<RecipeDefs>

<RecipeDef>
<defName>MakeMendingKit</defName>
<label>make mending kits</label>
<description>Crafts mending kits from materials. Produces enough to re-stock the mending table.</description>
<jobString>Crafting meding kit.</jobString>
<workAmount>500</workAmount>
<workSpeedStat>SmithingSpeed</workSpeedStat>
<effectWorking>Smith</effectWorking>
<soundWorking>Recipe_Smith</soundWorking>
<ingredients>
<li>
<filter>
<thingDefs>
<li>Steel</li>
</thingDefs>
</filter>
<count>45</count>
</li>
<li>
<filter>
<thingDefs>
<li>Cloth</li>
</thingDefs>
</filter>
<count>30</count>
</li>
</ingredients>
<fixedIngredientFilter>
<thingDefs>
<li>Steel</li>
<li>Cloth</li>
</thingDefs>
</fixedIngredientFilter>
<products>
<MendingKit>5</MendingKit>
</products>
<skillRequirements>
<li>
<skill>Crafting</skill>
<minLevel>4</minLevel>
</li>
</skillRequirements>
<workSkill>Crafting</workSkill>
<recipeUsers>
<li>ElectricTailoringBench</li>
</recipeUsers>
<researchPrerequisite>Mending</researchPrerequisite>
</RecipeDef>

</RecipeDefs>
15 changes: 15 additions & 0 deletions Defs/ResearchProjectDefs/ResearchProjects.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" ?>
<ResearchProjectDefs>

<ResearchProjectDef>
<defName>Mending</defName>
<label>Mending</label>
<description>Mend and repair damaged items.</description>
<baseCost>500</baseCost>
<techLevel>Industrial</techLevel>
<prerequisites>
<li>Electricity</li>
</prerequisites>
</ResearchProjectDef>

</ResearchProjectDefs>
Loading

0 comments on commit 316de11

Please sign in to comment.