From 76594021944029b4dc901e562d07320c8e72660c Mon Sep 17 00:00:00 2001
From: Cocopomel <79386233+Cocopomel@users.noreply.github.com>
Date: Thu, 7 Jul 2022 02:07:37 +0900
Subject: [PATCH] =?UTF-8?q?=EA=B0=95=EC=9D=B8=ED=95=A8=20=EA=B8=88?=
 =?UTF-8?q?=EC=A7=80,=20=EB=93=B1=EA=B8=89=20=EB=B2=84=ED=94=84=20?=
 =?UTF-8?q?=EC=A1=B0=EC=A0=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../AutomataRaceSettings/AutomataRaceDef.xml  |   3 +
 .../HediffDefs/Hediffs_AutomatonGrade.xml     | 178 ++++--------------
 .../HediffDefs/Hediffs_AutomatonGrade_PA.xml  | 160 ++++------------
 3 files changed, 73 insertions(+), 268 deletions(-)

diff --git a/1.3/Defs/AutomataRaceSettings/AutomataRaceDef.xml b/1.3/Defs/AutomataRaceSettings/AutomataRaceDef.xml
index fb831bf..3cc7165 100644
--- a/1.3/Defs/AutomataRaceSettings/AutomataRaceDef.xml
+++ b/1.3/Defs/AutomataRaceSettings/AutomataRaceDef.xml
@@ -50,6 +50,9 @@
         </forcedRaceTraitEntries>
         <!--특성 제한-->
         <disallowedTraits>
+          <li>
+            <defName>Tough</defName>
+          </li>
           <li>
             <defName>DrugDesire</defName>
           </li>
diff --git a/1.3/Defs/HediffDefs/Hediffs_AutomatonGrade.xml b/1.3/Defs/HediffDefs/Hediffs_AutomatonGrade.xml
index 0b2618f..b1cb9e7 100644
--- a/1.3/Defs/HediffDefs/Hediffs_AutomatonGrade.xml
+++ b/1.3/Defs/HediffDefs/Hediffs_AutomatonGrade.xml
@@ -70,10 +70,6 @@
     <stages>
       <li>
         <capMods>
-          <!--<li>
-            <capacity>Consciousness</capacity>
-            <offset>0.05</offset>
-          </li>-->
           <li>
             <capacity>Moving</capacity>
             <offset>0.05</offset>
@@ -115,9 +111,6 @@
             <offset>0.10</offset>
           </li>
         </capMods>
-        <statOffsets>
-          <!--<IncomingDamageFactor>-0.05</IncomingDamageFactor>-->
-        </statOffsets>
       </li>
     </stages>
   </HediffDef>
@@ -144,9 +137,6 @@
             <offset>0.20</offset>
           </li>
         </capMods>
-        <statOffsets>
-          <!--<IncomingDamageFactor>-0.10</IncomingDamageFactor>-->
-        </statOffsets>
       </li>
     </stages>
   </HediffDef>
@@ -176,9 +166,6 @@
         <statOffsets>
           <MentalBreakThreshold>-0.04</MentalBreakThreshold>
         </statOffsets>
-        <!--<statFactors>
-          <IncomingDamageFactor>0.10</IncomingDamageFactor>
-        </statFactors>-->
       </li>
     </stages>
   </HediffDef>
@@ -208,9 +195,6 @@
         <statOffsets>
           <MentalBreakThreshold>-0.08</MentalBreakThreshold>
         </statOffsets>
-        <!--<statFactors>
-          <IncomingDamageFactor>0.75</IncomingDamageFactor>
-        </statFactors>-->
       </li>
     </stages>
   </HediffDef>
@@ -290,6 +274,13 @@
   <HediffDef ParentName="PN_SyncExcellent_Base">
     <defName>PN_SyncExcellent_Combat</defName>
     <label>Combat model (exc)</label>
+    <stages>
+      <li>
+        <statOffsets>
+          <IncomingDamageFactor>-0.10</IncomingDamageFactor>
+        </statOffsets>
+      </li>
+    </stages>
   </HediffDef>
 
   <!--걸작-->
@@ -315,29 +306,10 @@
   <HediffDef ParentName="PN_SyncMasterwork_Base">
     <defName>PN_SyncMasterwork_Combat</defName>
     <label>Combat model (mast)</label>
-    <stages Inherit="false">
+    <stages>
       <li>
-        <capMods>
-          <li>
-            <capacity>Consciousness</capacity>
-            <offset>0.20</offset>
-          </li>
-          <li>
-            <capacity>Moving</capacity>
-            <offset>0.30</offset>
-          </li>
-          <li>
-            <capacity>Sight</capacity>
-            <offset>0.30</offset>
-          </li>
-          <li>
-            <capacity>Manipulation</capacity>
-            <offset>0.30</offset>
-          </li>
-        </capMods>
         <statOffsets>
-          <IncomingDamageFactor>-0.15</IncomingDamageFactor>
-          <MentalBreakThreshold>-0.04</MentalBreakThreshold>
+          <IncomingDamageFactor>-0.20</IncomingDamageFactor>
         </statOffsets>
       </li>
     </stages>
@@ -366,29 +338,10 @@
   <HediffDef ParentName="PN_SyncLegendary_Base">
     <defName>PN_SyncLegendary_Combat</defName>
     <label>Combat model (legd)</label>
-    <stages Inherit="false">
+    <stages>
       <li>
-        <capMods>
-          <li>
-            <capacity>Consciousness</capacity>
-            <offset>0.30</offset>
-          </li>
-          <li>
-            <capacity>Moving</capacity>
-            <offset>0.50</offset>
-          </li>
-          <li>
-            <capacity>Sight</capacity>
-            <offset>0.50</offset>
-          </li>
-          <li>
-            <capacity>Manipulation</capacity>
-            <offset>0.50</offset>
-          </li>
-        </capMods>
         <statOffsets>
-          <IncomingDamageFactor>-0.30</IncomingDamageFactor>
-          <MentalBreakThreshold>-0.08</MentalBreakThreshold>
+          <IncomingDamageFactor>-0.40</IncomingDamageFactor>
         </statOffsets>
       </li>
     </stages>
@@ -469,6 +422,13 @@
   <HediffDef ParentName="PN_SyncExcellent_Base">
     <defName>PN_SyncExcellent_Engineer</defName>
     <label>Engineer model (exc)</label>
+    <stages>
+      <li>
+        <statOffsets>
+          <WorkSpeedGlobal>0.10</WorkSpeedGlobal>
+        </statOffsets>
+      </li>
+    </stages>
   </HediffDef>
 
   <!--걸작-->
@@ -494,29 +454,10 @@
   <HediffDef ParentName="PN_SyncMasterwork_Base">
     <defName>PN_SyncMasterwork_Engineer</defName>
     <label>Engineer model (mast)</label>
-    <stages Inherit="false">
+    <stages>
       <li>
-        <capMods>
-          <li>
-            <capacity>Consciousness</capacity>
-            <offset>0.20</offset>
-          </li>
-          <li>
-            <capacity>Moving</capacity>
-            <offset>0.30</offset>
-          </li>
-          <li>
-            <capacity>Sight</capacity>
-            <offset>0.30</offset>
-          </li>
-          <li>
-            <capacity>Manipulation</capacity>
-            <offset>0.30</offset>
-          </li>
-        </capMods>
         <statOffsets>
-          <WorkSpeedGlobal>0.10</WorkSpeedGlobal>
-          <MentalBreakThreshold>-0.04</MentalBreakThreshold>
+          <WorkSpeedGlobal>0.20</WorkSpeedGlobal>
         </statOffsets>
       </li>
     </stages>
@@ -545,29 +486,10 @@
   <HediffDef ParentName="PN_SyncLegendary_Base">
     <defName>PN_SyncLegendary_Engineer</defName>
     <label>Engineer model (legd)</label>
-    <stages Inherit="false">
+    <stages>
       <li>
-        <capMods>
-          <li>
-            <capacity>Consciousness</capacity>
-            <offset>0.30</offset>
-          </li>
-          <li>
-            <capacity>Moving</capacity>
-            <offset>0.50</offset>
-          </li>
-          <li>
-            <capacity>Sight</capacity>
-            <offset>0.50</offset>
-          </li>
-          <li>
-            <capacity>Manipulation</capacity>
-            <offset>0.50</offset>
-          </li>
-        </capMods>
         <statOffsets>
-          <WorkSpeedGlobal>0.20</WorkSpeedGlobal>
-          <MentalBreakThreshold>-0.08</MentalBreakThreshold>
+          <WorkSpeedGlobal>0.40</WorkSpeedGlobal>
         </statOffsets>
       </li>
     </stages>
@@ -648,6 +570,13 @@
   <HediffDef ParentName="PN_SyncExcellent_Base">
     <defName>PN_SyncExcellent_Domestic</defName>
     <label>Domestic model (exc)</label>
+    <stages>
+      <li>
+        <statOffsets>
+          <WorkSpeedGlobal>0.10</WorkSpeedGlobal>
+        </statOffsets>
+      </li>
+    </stages>
   </HediffDef>
 
   <!--걸작-->
@@ -673,29 +602,10 @@
   <HediffDef ParentName="PN_SyncMasterwork_Base">
     <defName>PN_SyncMasterwork_Domestic</defName>
     <label>Domestic model (mast)</label>
-    <stages Inherit="false">
+    <stages>
       <li>
-        <capMods>
-          <li>
-            <capacity>Consciousness</capacity>
-            <offset>0.20</offset>
-          </li>
-          <li>
-            <capacity>Moving</capacity>
-            <offset>0.30</offset>
-          </li>
-          <li>
-            <capacity>Sight</capacity>
-            <offset>0.30</offset>
-          </li>
-          <li>
-            <capacity>Manipulation</capacity>
-            <offset>0.30</offset>
-          </li>
-        </capMods>
         <statOffsets>
-          <WorkSpeedGlobal>0.10</WorkSpeedGlobal>
-          <MentalBreakThreshold>-0.04</MentalBreakThreshold>
+          <WorkSpeedGlobal>0.20</WorkSpeedGlobal>
         </statOffsets>
       </li>
     </stages>
@@ -724,29 +634,10 @@
   <HediffDef ParentName="PN_SyncLegendary_Base">
     <defName>PN_SyncLegendary_Domestic</defName>
     <label>Domestic model (legd)</label>
-    <stages Inherit="false">
+    <stages>
       <li>
-        <capMods>
-          <li>
-            <capacity>Consciousness</capacity>
-            <offset>0.30</offset>
-          </li>
-          <li>
-            <capacity>Moving</capacity>
-            <offset>0.50</offset>
-          </li>
-          <li>
-            <capacity>Sight</capacity>
-            <offset>0.50</offset>
-          </li>
-          <li>
-            <capacity>Manipulation</capacity>
-            <offset>0.50</offset>
-          </li>
-        </capMods>
         <statOffsets>
-          <WorkSpeedGlobal>0.20</WorkSpeedGlobal>
-          <MentalBreakThreshold>-0.08</MentalBreakThreshold>
+          <WorkSpeedGlobal>0.40</WorkSpeedGlobal>
         </statOffsets>
       </li>
     </stages>
@@ -760,6 +651,9 @@
     <defName>PN_SyncNormal_Modified</defName>
     <label>modified model</label>
     <description>This pawn is an automaton.\nAfter production, It has been modified in an unauthorized way.</description>
+    <statOffsets>
+      <MentalBreakThreshold>0.08</MentalBreakThreshold>
+    </statOffsets>
   </HediffDef>
 
   <!--꽝끔찍-->
diff --git a/1.3/Defs/HediffDefs/Hediffs_AutomatonGrade_PA.xml b/1.3/Defs/HediffDefs/Hediffs_AutomatonGrade_PA.xml
index 5621a1c..515f0c6 100644
--- a/1.3/Defs/HediffDefs/Hediffs_AutomatonGrade_PA.xml
+++ b/1.3/Defs/HediffDefs/Hediffs_AutomatonGrade_PA.xml
@@ -22,6 +22,7 @@
         </capMods>
         <statOffsets>
           <IncomingDamageFactor>-0.10</IncomingDamageFactor>
+          <WorkSpeedGlobal>0.10</WorkSpeedGlobal>
           <MentalBreakThreshold>-0.04</MentalBreakThreshold>
         </statOffsets>
       </li>
@@ -119,6 +120,13 @@
   <HediffDef ParentName="PN_SyncExcellent_Base">
     <defName>PN_SyncExcellent_Combat_PA</defName>
     <label>Combat model (exc)</label>
+    <stages>
+      <li>
+        <statOffsets>
+          <IncomingDamageFactor>-0.10</IncomingDamageFactor>
+        </statOffsets>
+      </li>
+    </stages>
   </HediffDef>
 
   <!--걸작-->
@@ -147,29 +155,10 @@
   <HediffDef ParentName="PN_SyncMasterwork_Base">
     <defName>PN_SyncMasterwork_Combat_PA</defName>
     <label>Combat model (mast)</label>
-    <stages Inherit="false">
+    <stages>
       <li>
-        <capMods>
-          <li>
-            <capacity>Consciousness</capacity>
-            <offset>0.20</offset>
-          </li>
-          <li>
-            <capacity>Moving</capacity>
-            <offset>0.30</offset>
-          </li>
-          <li>
-            <capacity>Sight</capacity>
-            <offset>0.30</offset>
-          </li>
-          <li>
-            <capacity>Manipulation</capacity>
-            <offset>0.30</offset>
-          </li>
-        </capMods>
         <statOffsets>
-          <IncomingDamageFactor>-0.15</IncomingDamageFactor>
-          <MentalBreakThreshold>-0.04</MentalBreakThreshold>
+          <IncomingDamageFactor>-0.20</IncomingDamageFactor>
         </statOffsets>
       </li>
     </stages>
@@ -201,29 +190,10 @@
   <HediffDef ParentName="PN_SyncLegendary_Base">
     <defName>PN_SyncLegendary_Combat_PA</defName>
     <label>Combat model (legd)</label>
-    <stages Inherit="false">
+    <stages>
       <li>
-        <capMods>
-          <li>
-            <capacity>Consciousness</capacity>
-            <offset>0.30</offset>
-          </li>
-          <li>
-            <capacity>Moving</capacity>
-            <offset>0.50</offset>
-          </li>
-          <li>
-            <capacity>Sight</capacity>
-            <offset>0.50</offset>
-          </li>
-          <li>
-            <capacity>Manipulation</capacity>
-            <offset>0.50</offset>
-          </li>
-        </capMods>
         <statOffsets>
-          <IncomingDamageFactor>-0.30</IncomingDamageFactor>
-          <MentalBreakThreshold>-0.08</MentalBreakThreshold>
+          <IncomingDamageFactor>-0.40</IncomingDamageFactor>
         </statOffsets>
       </li>
     </stages>
@@ -313,6 +283,13 @@
   <HediffDef ParentName="PN_SyncExcellent_Base">
     <defName>PN_SyncExcellent_Engineer_PA</defName>
     <label>Engineer model (exc)</label>
+    <stages>
+      <li>
+        <statOffsets>
+          <WorkSpeedGlobal>0.10</WorkSpeedGlobal>
+        </statOffsets>
+      </li>
+    </stages>
   </HediffDef>
 
   <!--걸작-->
@@ -341,29 +318,10 @@
   <HediffDef ParentName="PN_SyncMasterwork_Base">
     <defName>PN_SyncMasterwork_Engineer_PA</defName>
     <label>Engineer model (mast)</label>
-    <stages Inherit="false">
+    <stages>
       <li>
-        <capMods>
-          <li>
-            <capacity>Consciousness</capacity>
-            <offset>0.20</offset>
-          </li>
-          <li>
-            <capacity>Moving</capacity>
-            <offset>0.30</offset>
-          </li>
-          <li>
-            <capacity>Sight</capacity>
-            <offset>0.30</offset>
-          </li>
-          <li>
-            <capacity>Manipulation</capacity>
-            <offset>0.30</offset>
-          </li>
-        </capMods>
         <statOffsets>
-          <WorkSpeedGlobal>0.10</WorkSpeedGlobal>
-          <MentalBreakThreshold>-0.04</MentalBreakThreshold>
+          <WorkSpeedGlobal>0.20</WorkSpeedGlobal>
         </statOffsets>
       </li>
     </stages>
@@ -395,29 +353,10 @@
   <HediffDef ParentName="PN_SyncLegendary_Base">
     <defName>PN_SyncLegendary_Engineer_PA</defName>
     <label>Engineer model (legd)</label>
-    <stages Inherit="false">
+    <stages>
       <li>
-        <capMods>
-          <li>
-            <capacity>Consciousness</capacity>
-            <offset>0.30</offset>
-          </li>
-          <li>
-            <capacity>Moving</capacity>
-            <offset>0.50</offset>
-          </li>
-          <li>
-            <capacity>Sight</capacity>
-            <offset>0.50</offset>
-          </li>
-          <li>
-            <capacity>Manipulation</capacity>
-            <offset>0.50</offset>
-          </li>
-        </capMods>
         <statOffsets>
-          <WorkSpeedGlobal>0.20</WorkSpeedGlobal>
-          <MentalBreakThreshold>-0.08</MentalBreakThreshold>
+          <WorkSpeedGlobal>0.40</WorkSpeedGlobal>
         </statOffsets>
       </li>
     </stages>
@@ -507,6 +446,13 @@
   <HediffDef ParentName="PN_SyncExcellent_Base">
     <defName>PN_SyncExcellent_Domestic_PA</defName>
     <label>Domestic model (exc)</label>
+    <stages>
+      <li>
+        <statOffsets>
+          <WorkSpeedGlobal>0.10</WorkSpeedGlobal>
+        </statOffsets>
+      </li>
+    </stages>
   </HediffDef>
 
   <!--걸작-->
@@ -535,29 +481,10 @@
   <HediffDef ParentName="PN_SyncMasterwork_Base">
     <defName>PN_SyncMasterwork_Domestic_PA</defName>
     <label>Domestic model (mast)</label>
-    <stages Inherit="false">
+    <stages>
       <li>
-        <capMods>
-          <li>
-            <capacity>Consciousness</capacity>
-            <offset>0.20</offset>
-          </li>
-          <li>
-            <capacity>Moving</capacity>
-            <offset>0.30</offset>
-          </li>
-          <li>
-            <capacity>Sight</capacity>
-            <offset>0.30</offset>
-          </li>
-          <li>
-            <capacity>Manipulation</capacity>
-            <offset>0.30</offset>
-          </li>
-        </capMods>
         <statOffsets>
-          <WorkSpeedGlobal>0.10</WorkSpeedGlobal>
-          <MentalBreakThreshold>-0.04</MentalBreakThreshold>
+          <WorkSpeedGlobal>0.20</WorkSpeedGlobal>
         </statOffsets>
       </li>
     </stages>
@@ -589,29 +516,10 @@
   <HediffDef ParentName="PN_SyncLegendary_Base">
     <defName>PN_SyncLegendary_Domestic_PA</defName>
     <label>Domestic model (legd)</label>
-    <stages Inherit="false">
+    <stages>
       <li>
-        <capMods>
-          <li>
-            <capacity>Consciousness</capacity>
-            <offset>0.30</offset>
-          </li>
-          <li>
-            <capacity>Moving</capacity>
-            <offset>0.50</offset>
-          </li>
-          <li>
-            <capacity>Sight</capacity>
-            <offset>0.50</offset>
-          </li>
-          <li>
-            <capacity>Manipulation</capacity>
-            <offset>0.50</offset>
-          </li>
-        </capMods>
         <statOffsets>
-          <WorkSpeedGlobal>0.20</WorkSpeedGlobal>
-          <MentalBreakThreshold>-0.08</MentalBreakThreshold>
+          <WorkSpeedGlobal>0.40</WorkSpeedGlobal>
         </statOffsets>
       </li>
     </stages>