New ability xml?

Started by Jay425, September 19, 2021, 01:20:30 PM

Previous topic - Next topic

Jay425

Can some one look over this and tell me if they see any mistakes and also i plan on putting fire damage for fist here or would i have to put the flame damage def in another def file?

<AbilityDef ParentName="PsycastBase">
    <defName>Firefist</defName>
    <label>Firefist</label>
    <description>A fire punch from the Mera Mera no Mi.</description>
    <level>1</level>
    <iconPath>UI/Abilities/FireFist</iconPath>
    <hotKey>Misc1</hotKey>
    <statBases>
      <Ability_EntropyGain>8</Ability_EntropyGain>
      <Ability_PsyfocusCost>0.02</Ability_PsyfocusCost>
      <Ability_Duration>120</Ability_Duration>
    </statBases>
    <verbProperties>
      <warmupTime>0.25</warmupTime>
      <range>2</range>
      <targetParams>
        <canTargetSelf>False</canTargetSelf>
        <canTargetAnimals>True</canTargetAnimals>
      </targetParams>
    </verbProperties>
    <comps>
      <li Class = "CompProperties_AbilityGiveHediff">
        <compClass>CompAbilityEffect_GiveHediff</compClass>
        <hediffDef>FireFist</hediffDef>
        <durationMultiplier>PsychicSensitivity</durationMultiplier>
        <psychic>True</psychic>
        <applicableToMechs>False</applicableToMechs>
      </li>
      <li Class="CompProperties_AbilityFleckOnTarget">
      </li>
    </comps>
  </AbilityDef>