Skip to content

Commit

Permalink
Change ParentName for Anomaly Races, some addition
Browse files Browse the repository at this point in the history
  • Loading branch information
masakitenchi committed Jun 23, 2024
1 parent 95669a1 commit df8f652
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<Patch>

<Operation Class="PatchOperationAttributeSet">
<xpath>Defs/ThingDef[@Name="MysteriousSphereEntityBase" or
defName="Metalhorror" or
@Name="Revenant" or
defName="Sightstealer" or
defName="Noctol" or
defName="Gorehulk" or
defName="Devourer" or
defName="Chimera"]</xpath>
<attribute>ParentName</attribute>
<value>SK.SK_BasePawnDummy</value>
</Operation>

<Operation Class="PatchOperationAttributeSet">
<xpath>Defs/ThingDef[defName="CreepJoiner"]</xpath>
<attribute>ParentName</attribute>
<value>SK.SK_HumanDummy</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[@Name="MysteriousSphereEntityBase"]/comps</xpath>
<value>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,17 @@
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<!-- <Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[@Name="BaseFleshbeast"]/race</xpath>
<value>
<alwaysViolent>true</alwaysViolent>
</value>
</Operation> -->

<Operation Class="PatchOperationAttributeSet">
<xpath>Defs/ThingDef[@Name="BaseFleshbeast"]</xpath>
<attribute>ParentName</attribute>
<value>SK.SK_BasePawnDummy</value>
</Operation>

</Patch>
8 changes: 8 additions & 0 deletions Mods/Core_SK/Defs/ThingDefs_Races/Base_Race.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Defs>

<!-- Should someday use patches onto vanilla BasePawn -->
<ThingDef Name="SK_BasePawn" Abstract="True">
<thingClass>Pawn</thingClass>
<category>Pawn</category>
Expand All @@ -19,6 +20,9 @@
<MeleeParryChance>0</MeleeParryChance>
<Flammability>0.7</Flammability>
</statBases>
<race>
<renderTree>Misc</renderTree>
</race>
<inspectorTabs>
<li>ITab_Pawn_Health</li>
<li>ITab_Pawn_Needs</li>
Expand All @@ -31,8 +35,10 @@
<li MayRequire="Ludeon.RimWorld.Biotech">ITab_Pawn_Feeding</li>
<li MayRequire="Ludeon.RimWorld.Biotech">ITab_Genes</li>
<li MayRequire="Ludeon.RimWorld.Biotech">ITab_GenesPregnancy</li>
<li MayRequire="Ludeon.RimWorld.Anomaly">ITab_Entity</li>
<li>ITab_Pawn_FormingCaravan</li>
<li>CombatExtended.ITab_Inventory</li>
<li>ITab_Pawn_Gear</li>
<li>ITab_Pawn_Log</li>
</inspectorTabs>
<comps>
Expand Down Expand Up @@ -135,6 +141,8 @@
</recipes>
</ThingDef>

<!-- Why this empty abstarct node ever exists?
I see. Vanilla also has one empty abstract AnimalKindBase -->
<PawnKindDef Name="SK_AnimalKindBase" Abstract="True" />

</Defs>
2 changes: 1 addition & 1 deletion Mods/Core_SK/Defs/ThingDefs_Races/Races_Humanlike.xml
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@
</comps>
</ThingDef>
<!-- HUMAN -->
<ThingDef ParentName="BaseHumanlikePawn">
<ThingDef Name="SK_Human" ParentName="BaseHumanlikePawn">
<defName>Human</defName>
<label>human</label>
<description>A baseline human, mostly unmodified by gene engineering and mostly unchanged by evolutionary pressures on non-Earth planets.</description>
Expand Down
2 changes: 2 additions & 0 deletions Mods/Core_SK/Patches/!DummyAbstracts.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
<Operation Class="PatchOperationAdd">
<xpath>Defs</xpath>
<value>
<ThingDef Name="SK.SK_BasePawnDummy" ParentName="SK_BasePawn" Abstract="True" />
<ThingDef Name="SK.SK_HumanDummy" ParentName="SK_Human" Abstract="True" />

<ThingDef Name="SK.Shield_BaseDummy" ParentName="Shield_Base" Abstract="True" />
<ThingDef Name="SK.ApparelNeoliticBaseDummy" ParentName="ApparelNeoliticBase" Abstract="True" />
Expand Down

0 comments on commit df8f652

Please sign in to comment.