initial commit

This commit is contained in:
ProjectKoi-Kalo\Kalo 2024-08-03 23:09:40 +08:00
commit 72723f72be
9 changed files with 322 additions and 0 deletions

View File

@ -0,0 +1,152 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<RecipeDef ParentName="Milian_GestatingRecipe_BaseI">
<defName>Milian_Mechanoid_FarmI</defName>
<label>Gestate Farm I</label>
<description>Gestate a Milian modeled Farm I.</description>
<researchPrerequisite>Milira_MilianTech_Gestator</researchPrerequisite>
<ingredients Inherit="False">
<li>
<filter>
<thingDefs>
<li>Milira_SunPlateSteel</li>
</thingDefs>
</filter>
<count>40</count>
</li>
<li>
<filter>
<thingDefs>
<li>Plasteel</li>
</thingDefs>
</filter>
<count>35</count>
</li>
<li>
<filter>
<thingDefs>
<li>Milira_SplendidSteel</li>
</thingDefs>
</filter>
<count>100</count>
</li>
<li>
<filter>
<thingDefs>
<li>Milira_SolarCrystal</li>
</thingDefs>
</filter>
<count>2</count>
</li>
<li>
<filter>
<thingDefs>
<li>ComponentIndustrial</li>
</thingDefs>
</filter>
<count>4</count>
</li>
<li>
<filter>
<thingDefs>
<li>Milira_FeatherThread</li>
</thingDefs>
</filter>
<count>85</count>
</li>
<li>
<filter>
<thingDefs>
<li>Milira_MilianReactor</li>
</thingDefs>
</filter>
<count>1</count>
</li>
</ingredients>
<products>
<Milian_Mechanoid_FarmI>1</Milian_Mechanoid_FarmI>
</products>
<descriptionHyperlinks>
<ThingDef>Milian_Mechanoid_FarmI</ThingDef>
</descriptionHyperlinks>
</RecipeDef>
<RecipeDef ParentName="BaseMechanoidResurrectionRecipe">
<defName>Milira_ResurrectMilian_Farm</defName>
<label>Resurrect Milian (Farm)</label>
<description>Resurrect an allied Milian Farm whose body is not completely destroyed.</description>
<ingredients>
<li>
<filter>
<categories>
<li>Corpses</li>
</categories>
</filter>
<count>1</count>
</li>
<li>
<filter>
<thingDefs>
<li>Milira_MilianReactor</li>
</thingDefs>
</filter>
<count>1</count>
</li>
<li>
<filter>
<thingDefs>
<li>Milira_SplendidSteel</li>
</thingDefs>
</filter>
<count>60</count>
</li>
<!-- <li>
<filter>
<thingDefs>
<li>Milira_SunPlateSteel</li>
</thingDefs>
</filter>
<count>20</count>
</li>
<li>
<filter>
<thingDefs>
<li>Milira_SplendidSteel</li>
</thingDefs>
</filter>
<count>40</count>
</li> -->
<!-- <li>
<filter>
<thingDefs>
<li>ComponentIndustrial</li>
</thingDefs>
</filter>
<count>3</count>
</li>
<li>
<filter>
<thingDefs>
<li>Milira_FeatherThread</li>
</thingDefs>
</filter>
<count>10</count>
</li> -->
<!-- <li>
<filter>
<thingDefs>
<li>Milira_SolarCrystal</li>
</thingDefs>
</filter>
<count>4</count>
</li> -->
</ingredients>
<fixedIngredientFilter>
<thingDefs>
<li>Corpse_Milian_Mechanoid_FarmI</li>
</thingDefs>
</fixedIngredientFilter>
</RecipeDef>
</Defs>

View File

@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<!--龙鸣I型===========================================================================================================================-->
<ThingDef ParentName="Milira_MilianBase_Pawn">
<defName>Milian_Mechanoid_FarmI</defName>
<label>Farm I</label>
<description>Milian the farm I type.\n\nCan't equipe any weapon.</description>
<descriptionHyperlinks>
<ThingDef>Milian_Lining</ThingDef>
</descriptionHyperlinks>
<statBases>
<MoveSpeed>4.25</MoveSpeed>
<MarketValue>800</MarketValue>
<ArmorRating_Blunt>0.1</ArmorRating_Blunt>
<ArmorRating_Sharp>0.1</ArmorRating_Sharp>
<BandwidthCost MayRequire="Ludeon.Rimworld.Biotech">2</BandwidthCost>
</statBases>
<race>
<baseHealthScale>1.2</baseHealthScale>
</race>
<comps>
</comps>
<uiIconPath>Milian/Mechanoid_uiIcon/PawnI</uiIconPath>
</ThingDef>
<PawnKindDef ParentName="BaseMilianKind_Mechanoid">
<defName>Milian_Mechanoid_FarmI</defName>
<label>Farm I</label>
<race>Milian_Mechanoid_FarmI</race>
<combatPower>90</combatPower>
<apparelRequired>
<li>Milian_Lining</li>
</apparelRequired>
<weaponMoney>9999~9999</weaponMoney>
<weaponTags>
</weaponTags>
<techHediffsChance>1</techHediffsChance>
<techHediffsMoney>9999~9999</techHediffsMoney>
</PawnKindDef>
</Defs>

View File

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationSequence">
<operations>
<li Class="PatchOperationTest">
<xpath>Defs/ThingDef[defName="Milian_Lining"]/comps/li/targetableMilianPawnkinds</xpath>
</li>
<li Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="Milian_Lining"]/comps/li/targetableMilianPawnkinds</xpath>
<value>
<li>Milian_Mechanoid_FarmI</li>
</value>
</li>
</operations>
</Operation>
<Operation Class="PatchOperationSequence">
<operations>
<li Class="PatchOperationTest">
<xpath>Defs/ThingDef[defName="Milian_Gestator"]/recipes</xpath>
</li>
<li Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="Milian_Gestator"]/recipes</xpath>
<value>
<li>Milian_Mechanoid_FarmI</li>
<li>Milira_ResurrectMilian_Farm</li>
</value>
</li>
</operations>
</Operation>
</Patch>

45
About/About.xml Normal file
View File

@ -0,0 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
<ModMetaData>
<name>Miliran Farmer</name>
<author>Ancot</author>
<supportedVersions>
<li>1.5</li>
</supportedVersions>
<description>Miliran Farmer Patch.</description>
<packageId>Kalospacer.MiliranFarmerPatch</packageId>
<modIconPath IgnoreIfNoMatchingField="True">Milira/Faction/Faction_Icon</modIconPath>
<modDependencies>
<li>
<packageId>erdelf.HumanoidAlienRaces</packageId>
<displayName>Humanoid Alien Races 2.0</displayName>
<steamWorkshopUrl>https://steamcommunity.com/sharedfiles/filedetails/?id=839005762</steamWorkshopUrl>
</li>
<li>
<packageId>Ancot.AncotLibrary</packageId>
<displayName>Ancot Library</displayName>
<steamWorkshopUrl>https://steamcommunity.com/sharedfiles/filedetails/?id=2988801276</steamWorkshopUrl>
</li>
<li>
<packageId>Ancot.MiliraRace</packageId>
<displayName>Milira Race</displayName>
<steamWorkshopUrl>https://steamcommunity.com/sharedfiles/filedetails/?id=2988801276</steamWorkshopUrl>
</li>
<li>
<packageId>Ludeon.RimWorld.Royalty</packageId>
<displayName>Royalty</displayName>
</li>
<li>
<packageId>Ludeon.RimWorld.Biotech</packageId>
<displayName>Biotech</displayName>
</li>
</modDependencies>
<loadAfter>
<li>erdelf.HumanoidAlienRaces</li>
<li>Ancot.AncotLibrary</li>
<li>Ancot.MiliraRace</li>
</loadAfter>
<incompatibleWith>
<li>ssulunge.KijinRace3</li>
</incompatibleWith>
</ModMetaData>

BIN
About/Preview.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 595 KiB

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<LanguageData>
<!-- EN: 农民I型 -->
<Milian_Mechanoid_FarmI.label>农民I型</Milian_Mechanoid_FarmI.label>
</LanguageData>

View File

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<LanguageData>
<!-- EN: 培育士兵I型 -->
<Milian_Mechanoid_FarmI.label>培育农民I型</Milian_Mechanoid_FarmI.label>
<!-- EN: 培育一个型号为士兵I型的米莉安。 -->
<Milian_Mechanoid_FarmI.description>培育一个型号为农民I型的米莉安。</Milian_Mechanoid_FarmI.description>
<!-- EN: Gestating mech. -->
<Milian_Mechanoid_FarmI.jobString>培育机械体中。</Milian_Mechanoid_FarmI.jobString>
<!-- EN: 复活米莉安:士兵 -->
<Milira_ResurrectMilian_Farm.label>复活米莉安:农民</Milira_ResurrectMilian_Farm.label>
<!-- EN: 复活一个身体尚未被完全摧毁的,职阶为士兵的己方米莉安。 -->
<Milira_ResurrectMilian_Farm.description>复活一个身体尚未被完全摧毁的,职阶为农民的己方米莉安。</Milira_ResurrectMilian_Farm.description>
<!-- EN: Resurrecting mech. -->
<Milira_ResurrectMilian_Farm.jobString>复活机械体中。</Milira_ResurrectMilian_Farm.jobString>
</LanguageData>

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<LanguageData>
<!-- EN: 士兵I型 -->
<Milian_Mechanoid_FarmI.label>农民I型</Milian_Mechanoid_FarmI.label>
<!-- EN: 型号为士兵I型的米莉安。\n\n可以装备远程武器。 -->
<Milian_Mechanoid_FarmI.description>型号为农民I型的米莉安。\n\n无法装备武器。</Milian_Mechanoid_FarmI.description>
<!-- EN: left fist -->
<Milian_Mechanoid_FarmI.tools.left_fist.label>左拳</Milian_Mechanoid_FarmI.tools.left_fist.label>
<!-- EN: right fist -->
<Milian_Mechanoid_FarmI.tools.right_fist.label>右拳</Milian_Mechanoid_FarmI.tools.right_fist.label>
</LanguageData>

8
LoadFolders.xml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<loadFolders>
<v1.5>
<li>1.5</li>
<li>Content</li>
<li IfModActive="Ludeon.RimWorld.Biotech">1.5/Mods/Biotech</li>
</v1.5>
</loadFolders>