모듈 추가

This commit is contained in:
Cocopomel
2021-09-15 22:26:07 +09:00
parent 35f2b9dee0
commit 06ec280963
10 changed files with 340 additions and 25 deletions

View File

@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<!--==================================== 장교 모듈 ====================================-->
<AbilityDef>
<defName>PN_OfficerCommandAbility</defName>
<label>officer command</label>
<description>Create an aura that boosts the combat skills of everyone nearby. The effect lasts 24 hours and remains attached to the leader for the duration.</description>
<jobDef>CastAbilityOnThing</jobDef>
<targetRequired>False</targetRequired>
<canUseAoeToGetTargets>False</canUseAoeToGetTargets>
<iconPath>UI/Abilities/CombatCommand</iconPath>
<warmupMoteSocialSymbol>UI/Abilities/CombatCommand</warmupMoteSocialSymbol>
<stunTargetWhileCasting>True</stunTargetWhileCasting>
<showPsycastEffects>False</showPsycastEffects>
<displayGizmoWhileUndrafted>True</displayGizmoWhileUndrafted>
<disableGizmoWhileUndrafted>False</disableGizmoWhileUndrafted>
<groupDef>PNModule_day</groupDef>
<hotKey>Misc12</hotKey>
<uiOrder>3</uiOrder>
<warmupStartSound>CombatCommand_Warmup</warmupStartSound>
<statBases>
<Ability_Duration>333</Ability_Duration>
<Ability_EffectRadius>9.9</Ability_EffectRadius>
</statBases>
<verbProperties>
<verbClass>Verb_CastAbility</verbClass>
<warmupTime>0.5</warmupTime>
<range>9.9</range>
<drawAimPie>False</drawAimPie>
<requireLineOfSight>False</requireLineOfSight>
<targetParams>
<canTargetSelf>true</canTargetSelf>
<canTargetPawns>false</canTargetPawns>
<canTargetBuildings>false</canTargetBuildings>
<canTargetAnimals>false</canTargetAnimals>
<canTargetHumans>false</canTargetHumans>
<canTargetMechs>false</canTargetMechs>
</targetParams>
</verbProperties>
<comps>
<li Class="CompProperties_AbilityGiveHediff">
<compClass>CompAbilityEffect_GiveHediff</compClass>
<hediffDef>PN_OfficerCommand</hediffDef>
<onlyBrain>True</onlyBrain>
<onlyApplyToSelf>True</onlyApplyToSelf>
<replaceExisting>true</replaceExisting>
</li>
</comps>
</AbilityDef>
</Defs>

View File

@@ -3,26 +3,16 @@
<!--==================================== 전투 지휘 모듈 ====================================-->
<HediffDef ParentName="PN_Give_Base">
<label>filter(CCModule)</label>
<defName>PN_Give_CCModule</defName>
<comps>
<li Class="MoharHediffs.HediffCompProperties_HediffExclusive">
<hediffToApply>PN_CombatCommand</hediffToApply>
<bodyDef>PanielBody</bodyDef>
<bodyPartDef>PNBrain</bodyPartDef>
</li>
</comps>
</HediffDef>
<HediffDef ParentName="RoleStatBuff">
<defName>PN_CombatCommand</defName>
<label>combat command module</label>
<defName>PN_OfficerCommand</defName>
<label>module active (officer)</label>
<description>By encouraging and commanding nearby allies, this person can enhance their focus in combat and thus their battle performance.</description>
<hediffClass>HediffWithComps</hediffClass>
<comps>
<!--<li Class="HediffCompProperties_RemoveIfApparelDropped" />-->
<!--<li Class="HediffCompProperties_DisappearsOnDeath"/>-->
<li Class="HediffCompProperties_Disappears">
<showRemainingTime>True</showRemainingTime>
</li>
<li Class="HediffCompProperties_DisappearsOnDeath"/>
<li Class="HediffCompProperties_GiveHediffsInRange">
<range>9.9</range>
<mote>Mote_CombatCommand</mote>
@@ -33,16 +23,37 @@
<canTargetMechs>false</canTargetMechs>
<onlyTargetColonists>true</onlyTargetColonists>
</targetingParameters>
<hediff>PN_CombatCommandBuff</hediff>
<hediff>PN_OfficerCommandBuff</hediff>
</li>
<li Class="MoharHediffs.HediffCompProperties_PostRemoveTrigger_HediffAdd">
<triggeredHediff>
<li>PN_OfficerCommandOverload</li>
</triggeredHediff>
</li>
</comps>
<stages>
<li>
<capMods>
<li>
<capacity>Consciousness</capacity>
<offset>-0.40</offset>
</li>
</capMods>
<statOffsets>
</statOffsets>
<statFactors>
</statFactors>
</li>
</stages>
<isBad>false</isBad>
</HediffDef>
<HediffDef ParentName="RoleStatBuff">
<defName>PN_CombatCommandBuff</defName>
<label>combat command</label>
<description>Combat abilities are boosted thanks to being near someone who is using the combat command ability.</description>
<defName>PN_OfficerCommandBuff</defName>
<label>officer command</label>
<description>Combat abilities are boosted thanks to being near someone who is using the officer command ability.</description>
<hediffClass>HediffWithComps</hediffClass>
<comps>
<li Class="HediffCompProperties_Disappears">
@@ -68,4 +79,29 @@
</li>
</stages>
</HediffDef>
<HediffDef>
<defName>PN_OfficerCommandOverload</defName>
<label>module overloaded</label>
<labelNoun>module overloaded</labelNoun>
<description>module overloaded</description>
<hediffClass>HediffWithComps</hediffClass>
<comps>
<li Class="HediffCompProperties_Disappears">
<disappearsAfterTicks>40000</disappearsAfterTicks>
<showRemainingTime>True</showRemainingTime>
</li>
<li Class="HediffCompProperties_DisappearsOnDeath"/>
</comps>
<stages>
<li>
<capMods>
<li>
<capacity>Consciousness</capacity>
<offset>-0.40</offset>
</li>
</capMods>
</li>
</stages>
</HediffDef>
</Defs>

View File

@@ -1,4 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
</Defs>

View File

@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<ThingDef ParentName="PN_ApparelModuleSpacer">
<defName>PN_OfficerModule</defName>
<label>officer module</label>
<description>...</description>
<costList>
<ComponentSpacer>3</ComponentSpacer>
<Plasteel>80</Plasteel>
<Uranium>10</Uranium>
</costList>
<comps>
<li Class="CompProperties_CauseHediff_Apparel">
<hediff>PN_OfficerModuleHediff</hediff>
<part>PNTorso</part>
</li>
</comps>
</ThingDef>
<HediffDef ParentName="PN_ApparelModuleHediffBase">
<defName>PN_OfficerModuleHediff</defName>
<label>officer module</label>
<description>...</description>
<stages>
</stages>
<comps>
<li Class="HediffCompProperties_GiveAbility">
<abilityDef>PN_OfficerCommandAbility</abilityDef>
</li>
</comps>
</HediffDef>
</Defs>