<?xml version="1.0" encoding="ISO-8859-1"?>
<document signature="Hero Lab Data">
  <thing id="clsLock" name="Warlock (Melee)" description="Warlocks channel arcane might wrested from primeval entities. They commune with infernal intelligences and fey spirits, scour enemies with potent blasts of eldritch power, and bedevil foes with hexing curses. Armed with esoteric secrets and dangerous lore, warlocks are clever and resourceful foes." compset="Class" uniqueness="unique">
    <fieldval field="clsRoleTxt" value="Your attack powers are highly damaging and often weaken or hamper the target in some way. You can elude attacks by flying, teleporting, or turning invisible."/>
    <fieldval field="clsSrcTxt" value="You gain your magical power from a pact you forge with a powerful, supernatural force or an unnamed entity."/>
    <fieldval field="clsSkills" value="4"/>
    <fieldval field="clsRef" value="1"/>
    <fieldval field="clsWill" value="1"/>
    <fieldval field="clsStartHP" value="12"/>
    <fieldval field="clsHPLev" value="5"/>
    <fieldval field="clsSurges" value="6"/>
    <tag group="KeyAbility" tag="attrInt" name="Intelligence" abbrev="Intelligence"/>
    <tag group="PowerSrc" tag="Arcane" name="Arcane" abbrev="Arcane"/>
    <tag group="Skill" tag="skArcana" name="Arcana" abbrev="Arcana"/>
    <tag group="Skill" tag="skBluff" name="Bluff" abbrev="Bluff"/>
    <tag group="Skill" tag="skHistory" name="History" abbrev="History"/>
    <tag group="Skill" tag="skInsight" name="Insight" abbrev="Insight"/>
    <tag group="Skill" tag="skIntimida" name="Intimidate" abbrev="Intimidate"/>
    <tag group="Skill" tag="skReligion" name="Religion" abbrev="Religion"/>
    <tag group="Skill" tag="skStreetwi" name="Streetwise" abbrev="Streetwise"/>
    <tag group="Skill" tag="skThievery" name="Thievery" abbrev="Thievery"/>
    <tag group="WpCatRqMel" tag="wcSimple" name="Simple" abbrev="Simple"/>
    <tag group="WpCatRqRng" tag="wcSimple" name="Simple" abbrev="Simple"/>
    <tag group="ArmorProf" tag="apCloth" name="Cloth Armor" abbrev="Cloth Armor"/>
    <tag group="ArmorProf" tag="apLeather" name="Leather Armor" abbrev="Leather Armor"/>
    <tag group="ClassRole" tag="Striker" name="Striker" abbrev="Striker"/>
    <tag group="ImplemType" tag="itPactBlad" name="Pact Blade" abbrev="Pact Blade"/>
    <tag group="ImplemType" tag="itRod" name="Rod" abbrev="Rod"/>
    <tag group="ImplemType" tag="itWand" name="Wand" abbrev="Wand"/>
    <tag group="KeyAbility" tag="attrCha" name="Charisma" abbrev="Charisma"/>
    <tag group="KeyAbility" tag="attrCon" name="Constitution" abbrev="Constitution"/>
    <tag group="Class" tag="clsWarlock"/>
    <bootstrap thing="fWlkDarPac"></bootstrap>
    <bootstrap thing="fWlkElePac"></bootstrap>
    <bootstrap thing="fWlkFeyPac"></bootstrap>
    <bootstrap thing="fWlkInfPac"></bootstrap>
    <bootstrap thing="fWlkSorPac"></bootstrap>
    <bootstrap thing="fWlkStaPac"></bootstrap>
    <bootstrap thing="fWlkVesPac"></bootstrap>
    <bootstrap thing="fWlkPriSho"></bootstrap>
    <bootstrap thing="fWlkShaWal"></bootstrap>
    <bootstrap thing="pWlkWarCur"></bootstrap>
    <bootstrap thing="fWlkEldSrk"></bootstrap>
    <bootstrap thing="fWlkEldPac"></bootstrap>
    <eval phase="Setup" priority="5"><![CDATA[
      ~our at-will powers are selected based on which pact we choose, so find
      ~our 'at will power' mechanics array and subtract the bottom 2 levels
      ~of every row
      var findmech as string
      findmech = "PwrAtWill"
      call FindMech
      doneif (state.isfocus = 0)
      var i as number
      var j as number
      for i = 1 to focus.field[ClPwrTable].matrixrows - 1

        ~collapse this row 'down' two slots, so slot 3 -> slot 1, slot 4 ->
        ~slot 2, etc. This removes the two lowest-level at-will powers that
        ~we're allowed.
        for j = 0 to focus.field[ClPwrTable].matrixcols - 3
          focus.field[ClPwrTable].matrixvalue[i,j] = focus.field[ClPwrTable].matrixvalue[i,j+2]
          next
        focus.field[ClPwrTable].matrixvalue[i,focus.field[ClPwrTable].matrixcols - 2] = 0
        focus.field[ClPwrTable].matrixvalue[i,focus.field[ClPwrTable].matrixcols - 1] = 0
        next]]>
      <before name="Level final"/>
      </eval>
    </thing>
  <thing id="fWlkEldSrk" name="Eldritch Strike" description="All warlocks know the eldritch blast at-will power. This power can be used as a basic attack. You gain this power as well as another at-will power as determined by your Eldritch Pact." compset="ClassFeat">
    <fieldval field="usrCandid1" value="thingid.attrCon | thingid.attrCha"/>
    <tag group="Hide" tag="Special" name="Special" abbrev="Special"/>
    <bootstrap thing="pWlkEldStr"></bootstrap>
    <eval phase="Setup" priority="1000">perform field[usrChosen1].chosen.setfocus
      doneif (state.isfocus = 0)
      perform focus.pulltags[Attack.?]
      perform focus.pulltags[DamageAttr.?]
      perform hero.childfound[pWlkEldBla].pushtags[Attack.?]
      perform hero.childfound[pWlkEldBla].pushtags[DamageAttr.?]

      ~do the same for Eldritch Strike if we have it
      perform hero.child[pWlkEldStr].pushtags[Attack.?]
      perform hero.child[pWlkEldStr].pushtags[DamageAttr.?]</eval>
    </thing>
  </document>
