add drugfuel

This commit is contained in:
Cocopomel 2024-04-28 17:32:57 +09:00
parent f4ab35ded4
commit e31f1614d8
5 changed files with 326 additions and 154 deletions

View File

@ -5,6 +5,7 @@
<forcedHediffs>
<li>PN_Immune_System</li>
<li>PN_Learning_Limit_System</li>
<li>PN_AutomatonFuel_Addiction</li>
</forcedHediffs>
</AlienRace.AlienBackstoryDef>

View File

@ -42,13 +42,13 @@
<borderScale>1</borderScale>
<headTypes Inherit="False">
<li>PNHead1</li>
<li>PNHead2</li>
<li>PNHead3</li>
<li>PNHead4</li>
<li>PNHead5</li>
<li>PNHead6</li>
<li>PNHead7</li>
<li>PNHead8</li>
<li>PNHead2</li>
<li>PNHead3</li>
<li>PNHead4</li>
<li>PNHead5</li>
<li>PNHead6</li>
<li>PNHead7</li>
<li>PNHead8</li>
<li>PNHead9</li>
<li>PNHead10</li>
<li>PNHead11</li>
@ -87,49 +87,49 @@
<!--신체 부착물-->
<bodyAddons>
<li>
<drawSize>1</drawSize>
<path>Paniel/Hairs/Addon/Hair</path>
<shaderType>CutoutComplex</shaderType>
<inFrontOfBody>false</inFrontOfBody>
<colorChannel>hair</colorChannel>
<alignWithHead>true</alignWithHead>
<drawSize>1</drawSize>
<path>Paniel/Hairs/Addon/Hair</path>
<shaderType>CutoutComplex</shaderType>
<inFrontOfBody>false</inFrontOfBody>
<colorChannel>hair</colorChannel>
<alignWithHead>true</alignWithHead>
<conditions>
<BodyPart>
<bodyPart>PNHead</bodyPart>
</BodyPart>
</conditions>
<offsets>
<north>
<layerOffset>-0.275</layerOffset>
<bodyTypes>
<Female>(0,0)</Female>
</bodyTypes>
</north>
<south>
<layerOffset>-0.326</layerOffset>
<bodyTypes>
<Female>(0,0)</Female>
</bodyTypes>
</south>
<east>
<layerOffset>-0.326</layerOffset>
<bodyTypes>
<Female>(0,0)</Female>
</bodyTypes>
</east>
</offsets>
</li>
<offsets>
<north>
<layerOffset>-0.275</layerOffset>
<bodyTypes>
<Female>(0,0)</Female>
</bodyTypes>
</north>
<south>
<layerOffset>-0.326</layerOffset>
<bodyTypes>
<Female>(0,0)</Female>
</bodyTypes>
</south>
<east>
<layerOffset>-0.326</layerOffset>
<bodyTypes>
<Female>(0,0)</Female>
</bodyTypes>
</east>
</offsets>
</li>
<!-- 슬립 페이스 -->
<li>
<drawSize>1</drawSize>
<path>Paniel/Heads/PNSleep/PNSleep</path>
<shaderType>CutoutComplex</shaderType>
<inFrontOfBody>true</inFrontOfBody>
<layerInvert>false</layerInvert>
<colorChannel>skin</colorChannel>
<alignWithHead>true</alignWithHead>
<conditions>
<drawSize>1</drawSize>
<path>Paniel/Heads/PNSleep/PNSleep</path>
<shaderType>CutoutComplex</shaderType>
<inFrontOfBody>true</inFrontOfBody>
<layerInvert>false</layerInvert>
<colorChannel>skin</colorChannel>
<alignWithHead>true</alignWithHead>
<conditions>
<RotStage>Fresh,Rotting,Dessicated</RotStage>
<BodyPart>
<bodyPart>PNHead</bodyPart>
@ -140,129 +140,129 @@
<drawnInBed>true</drawnInBed>
</Posture>
</conditions>
<offsets>
<north>
<layerOffset>-0.276</layerOffset>
<bodyTypes>
<Female>(0,0)</Female>
</bodyTypes>
</north>
<south>
<layerOffset>-0.276</layerOffset>
<bodyTypes>
<Female>(0,0)</Female>
</bodyTypes>
</south>
<east>
<layerOffset>-0.276</layerOffset>
<bodyTypes>
<Female>(0,0)</Female>
</bodyTypes>
</east>
</offsets>
</li>
<offsets>
<north>
<layerOffset>-0.276</layerOffset>
<bodyTypes>
<Female>(0,0)</Female>
</bodyTypes>
</north>
<south>
<layerOffset>-0.276</layerOffset>
<bodyTypes>
<Female>(0,0)</Female>
</bodyTypes>
</south>
<east>
<layerOffset>-0.276</layerOffset>
<bodyTypes>
<Female>(0,0)</Female>
</bodyTypes>
</east>
</offsets>
</li>
<li>
<drawSize>1</drawSize>
<path>Paniel/Ear/PanielLeftEar</path>
<shaderType>CutoutComplex</shaderType>
<inFrontOfBody>false</inFrontOfBody>
<colorChannel>skin</colorChannel>
<alignWithHead>true</alignWithHead>
<conditions>
<drawSize>1</drawSize>
<path>Paniel/Ear/PanielLeftEar</path>
<shaderType>CutoutComplex</shaderType>
<inFrontOfBody>false</inFrontOfBody>
<colorChannel>skin</colorChannel>
<alignWithHead>true</alignWithHead>
<conditions>
<BodyPart>
<bodyPartLabel>left auditory sensor</bodyPartLabel>
</BodyPart>
</conditions>
<offsets>
<north>
<layerOffset>-0.279</layerOffset>
<bodyTypes>
<Female>(0,0)</Female>
</bodyTypes>
</north>
<south>
<layerOffset>-0.324</layerOffset>
<bodyTypes>
<Female>(0,0)</Female>
</bodyTypes>
</south>
<east>
<layerOffset>-0.327</layerOffset>
<bodyTypes>
<Female>(0,0)</Female>
</bodyTypes>
</east>
</offsets>
</li>
<offsets>
<north>
<layerOffset>-0.279</layerOffset>
<bodyTypes>
<Female>(0,0)</Female>
</bodyTypes>
</north>
<south>
<layerOffset>-0.324</layerOffset>
<bodyTypes>
<Female>(0,0)</Female>
</bodyTypes>
</south>
<east>
<layerOffset>-0.327</layerOffset>
<bodyTypes>
<Female>(0,0)</Female>
</bodyTypes>
</east>
</offsets>
</li>
<li>
<drawSize>1</drawSize>
<path>Paniel/Ear/PanielRightEar</path>
<shaderType>CutoutComplex</shaderType>
<inFrontOfBody>false</inFrontOfBody>
<colorChannel>skin</colorChannel>
<alignWithHead>true</alignWithHead>
<conditions>
<li>
<drawSize>1</drawSize>
<path>Paniel/Ear/PanielRightEar</path>
<shaderType>CutoutComplex</shaderType>
<inFrontOfBody>false</inFrontOfBody>
<colorChannel>skin</colorChannel>
<alignWithHead>true</alignWithHead>
<conditions>
<BodyPart>
<bodyPartLabel>right auditory sensor</bodyPartLabel>
</BodyPart>
</conditions>
<offsets>
<north>
<layerOffset>-0.279</layerOffset>
<bodyTypes>
<Female>(0,0)</Female>
</bodyTypes>
</north>
<south>
<layerOffset>-0.324</layerOffset>
<bodyTypes>
<Female>(0,0)</Female>
</bodyTypes>
</south>
<east>
<layerOffset>-0.327</layerOffset>
<bodyTypes>
<Female>(0,0)</Female>
</bodyTypes>
</east>
</offsets>
</li>
<offsets>
<north>
<layerOffset>-0.279</layerOffset>
<bodyTypes>
<Female>(0,0)</Female>
</bodyTypes>
</north>
<south>
<layerOffset>-0.324</layerOffset>
<bodyTypes>
<Female>(0,0)</Female>
</bodyTypes>
</south>
<east>
<layerOffset>-0.327</layerOffset>
<bodyTypes>
<Female>(0,0)</Female>
</bodyTypes>
</east>
</offsets>
</li>
<li>
<drawSize>1</drawSize>
<path>Paniel/Tail/PanielTail</path>
<shaderType>CutoutComplex</shaderType>
<inFrontOfBody>false</inFrontOfBody>
<colorChannel>skin</colorChannel>
<defaultOffset>Tail</defaultOffset>
<li>
<drawSize>1</drawSize>
<path>Paniel/Tail/PanielTail</path>
<shaderType>CutoutComplex</shaderType>
<inFrontOfBody>false</inFrontOfBody>
<colorChannel>skin</colorChannel>
<defaultOffset>Tail</defaultOffset>
<conditions>
<BodyPart>
<bodyPart>PNTail</bodyPart>
</BodyPart>
</conditions>
<offsets>
<north>
<layerOffset>0</layerOffset>
<bodyTypes>
<Female>(0,0.55)</Female>
</bodyTypes>
</north>
<south>
<layerOffset>0</layerOffset>
<bodyTypes>
<Female>(-0.42,0.22)</Female>
</bodyTypes>
</south>
<east>
<layerOffset>0</layerOffset>
<bodyTypes>
<Female>(-0.42,0.22)</Female>
</bodyTypes>
</east>
</offsets>
</li>
<offsets>
<north>
<layerOffset>0</layerOffset>
<bodyTypes>
<Female>(0,0.55)</Female>
</bodyTypes>
</north>
<south>
<layerOffset>0</layerOffset>
<bodyTypes>
<Female>(-0.42,0.22)</Female>
</bodyTypes>
</south>
<east>
<layerOffset>0</layerOffset>
<bodyTypes>
<Female>(-0.42,0.22)</Female>
</bodyTypes>
</east>
</offsets>
</li>
</bodyAddons>
</alienPartGenerator>
@ -317,7 +317,7 @@
</weaponList>
<foodList>
<li>PN_AutomatonFuel</li>
</foodList>
<whiteGeneTags>
@ -562,9 +562,9 @@
<label>fully-manufactured</label>
<visible>false</visible>
<silhouetteGraphicData>
<texPath>Things/Pawn/Humanlike/Silhouettes/Silhouette_HumanAdult</texPath>
<graphicClass>Graphic_Single</graphicClass>
<drawSize>1</drawSize>
</silhouetteGraphicData>
<texPath>Things/Pawn/Humanlike/Silhouettes/Silhouette_HumanAdult</texPath>
<graphicClass>Graphic_Single</graphicClass>
<drawSize>1</drawSize>
</silhouetteGraphicData>
</LifeStageDef>
</Defs>

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<DrugPolicyDef>
<defName>PN_fuelOneDrinkPerDay</defName>
<label>Automaton</label>
<entries>
<li>
<drug>PN_AutomatonFuel</drug>
<allowedForAddiction>true</allowedForAddiction>
<allowScheduled>true</allowScheduled>
<takeToInventory>1</takeToInventory>
<daysFrequency>1</daysFrequency>
</li>
</entries>
</DrugPolicyDef>
</Defs>

View File

@ -0,0 +1,130 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<ThingCategoryDef>
<defName>PN_Fuel</defName>
<label>Automaton Fuel</label>
<parent>Drugs</parent>
<iconPath>UI/Icons/PNCT_PNFuel</iconPath>
</ThingCategoryDef>
<!--==================================== 오토마톤 연료 ====================================-->
<ThingDef ParentName="DrugPillBase">
<defName>PN_AutomatonFuel</defName>
<label>PnL fuel</label>
<description>Warning: Do not use on humans.\nThis fuel is for automaton only.\n\nThe fuel used by the automaton. Added a large amount of Psychite for mental stability.</description>
<tickerType>Normal</tickerType>
<graphicData>
<texPath>Things/Item/PNFuel</texPath>
<graphicClass>Graphic_StackCount</graphicClass>
<drawSize>1.0</drawSize>
</graphicData>
<uiIconForStackCount>1</uiIconForStackCount>
<stackLimit>150</stackLimit>
<rotatable>false</rotatable>
<statBases>
<MaxHitPoints>50</MaxHitPoints>
<MarketValue>6.1</MarketValue>
<Mass>0.05</Mass>
<Flammability>2.0</Flammability>
<DeteriorationRate>1.0</DeteriorationRate>
</statBases>
<techLevel>Ultra</techLevel>
<ingestible>
<drugCategory>Medical</drugCategory>
<baseIngestTicks>210</baseIngestTicks>
<ingestSound>Ingest_Drink</ingestSound>
<ingestHoldOffsetStanding>
<northDefault>
<offset>(0.18,0,0)</offset>
</northDefault>
</ingestHoldOffsetStanding>
<ingestCommandString>Drink {0}</ingestCommandString>
<ingestReportString>Drinking {0}.</ingestReportString>
<useEatingSpeedStat>false</useEatingSpeedStat>
<chairSearchRadius>25</chairSearchRadius>
<outcomeDoers>
</outcomeDoers>
</ingestible>
<comps>
<li Class="CompProperties_Drug">
<chemical>PN_Chemical_Fuel</chemical>
<addictiveness>0.000000001</addictiveness>
<needLevelOffset>0.20</needLevelOffset>
<listOrder>1028</listOrder>
</li>
<li Class="CompProperties_Explosive">
<explosiveRadius>1.1</explosiveRadius>
<explosiveDamageType>Flame</explosiveDamageType>
<explosiveExpandPerStackcount>0.037</explosiveExpandPerStackcount>
<startWickOnDamageTaken>
<li>Flame</li>
</startWickOnDamageTaken>
<startWickHitPointsPercent>0.333</startWickHitPointsPercent>
<preExplosionSpawnThingDef>Filth_Fuel</preExplosionSpawnThingDef>
<preExplosionSpawnChance>1</preExplosionSpawnChance>
<wickTicks>70~150</wickTicks>
</li>
</comps>
<tradeTags Inherit="false">
<li>PN_Fuel</li>
</tradeTags>
<tradeability>Buyable</tradeability>
<thingCategories Inherit="false">
<li>PN_Fuel</li>
</thingCategories>
</ThingDef>
<!--==================================== 오토마톤 연료 효과 ====================================-->
<ChemicalDef>
<defName>PN_Chemical_Fuel</defName>
<label>Automaton Fuel</label>
<addictionHediff>PN_AutomatonFuel_Addiction</addictionHediff>
<canBinge>false</canBinge>
<onGeneratedAddictedToleranceChance>0</onGeneratedAddictedToleranceChance>
<generateAddictionGenes>false</generateAddictionGenes>
</ChemicalDef>
<HediffDef ParentName="AddictionBase">
<defName>PN_AutomatonFuel_Addiction</defName>
<hediffClass>Hediff_Addiction</hediffClass>
<label>Automaton Fuel</label>
<description>A condition that requires PnL fuel.</description>
<defaultLabelColor>(222,90,90)</defaultLabelColor>
<causesNeed>PN_Need_Fuel</causesNeed>
<scenarioCanAdd>false</scenarioCanAdd>
<everCurableByItem>false</everCurableByItem>
<isBad>false</isBad>
<comps>
</comps>
<stages>
<li>
<label>stable</label>
</li>
<li>
<label>required</label>
<capMods>
<li>
<capacity>Consciousness</capacity>
<setMax>0.3</setMax>
</li>
<li>
<capacity>Moving</capacity>
<setMax>0.3</setMax>
</li>
<li>
<capacity>Sight</capacity>
<setMax>0.3</setMax>
</li>
<li>
<capacity>Manipulation</capacity>
<setMax>0.3</setMax>
</li>
</capMods>
<hungerRateFactor>8.0</hungerRateFactor>
</li>
</stages>
</HediffDef>
</Defs>

View File

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<NeedDef ParentName="DrugAddictionNeedBase">
<defName>PN_Need_Fuel</defName>
<needClass>Need_Chemical</needClass>
<label>Automaton Fuel</label>
<description>The amount of fuel used by the automaton. When the gauge reaches zero, The automaton will enter emergency power mode and become very slow.</description>
<listPriority>984</listPriority>
<fallPerDay>0.20</fallPerDay>
<freezeWhileSleeping>true</freezeWhileSleeping>
<showForCaravanMembers>true</showForCaravanMembers>
<major>true</major>
</NeedDef>
<!--<NeedDef>
<defName>PN_Need_Maintenance</defName>
<needClass>AutomataRace.Need_Maintenance</needClass>
<label>Maintenance</label>
<description>The maintenance status of the automaton.\n\nIf it is low, it will cause malfunction.\n\nMaintenance is required every year (60 rimworld days).</description>
<onlyIfCausedByHediff>true</onlyIfCausedByHediff>
<listPriority>985</listPriority>
<fallPerDay>0.01333</fallPerDay>
<showForCaravanMembers>true</showForCaravanMembers>
</NeedDef>-->
</Defs>