DeathRefusal for Resurrect

This commit is contained in:
ProjectKoi-Kalo\Kalo 2024-08-14 01:02:38 +08:00
parent 206e13dbe9
commit 2f3ed55d61
3 changed files with 25 additions and 4 deletions

View File

@ -104,12 +104,10 @@
<defName>Gourmand</defName>
</li>
<li>
<defName>Beauty</defName>
<degree>-1</degree>
<defName Degree="-1">Beauty</defName>
</li>
<li>
<defName>Beauty</defName>
<degree>-2</degree>
<defName Degree="-2">Beauty</defName>
</li>
<li>
<defName>Immunity</defName>

View File

@ -105,6 +105,7 @@
<li>WoundInfection</li>
<li>Cirrhosis</li>
<li>ResurrectionSickness</li>
<li MayRequire="Ludeon.RimWorld.Anomaly">DeathRefusalSickness</li>
<li>PsychiteAddiction</li>
<li>YayoHigh</li>
<li>PsychiteTolerance</li>

View File

@ -59,6 +59,28 @@
<li>PN_AutomatonFuel</li>
</value>
</li>
<li Class="PatchOperationAdd">
<xpath>Defs/AutomataRace.ThingDefInjectDef[defName="Comp_CorpseSelfDestruct_Inject"]/comps</xpath>
<value>
<li Class="AutomataRace.CompProperties_SelfResurrect">
<resurrectDelayTick>200</resurrectDelayTick>
<hediffCondition>DeathRefusal</hediffCondition>
<removeHediffAfterResurrect>true</removeHediffAfterResurrect>
</li>
</value>
</li>
<li Class="PatchOperationAdd">
<xpath>Defs/AutomataRace.ThingDefInjectDef[defName="Comp_CorpseSelfDestruct_Inject"]/comps</xpath>
<value>
<li Class="AutomataRace.CompProperties_SelfResurrect">
<resurrectDelayTick>200</resurrectDelayTick>
<hediffCondition>DeathRefusalCreepJoiner</hediffCondition>
<removeHediffAfterResurrect>true</removeHediffAfterResurrect>
</li>
</value>
</li>
</operations>
</match>