- name: crewlayabout
  regex: <Talent identifier="crewlayabout">!anyvalue="(?<repairspeedpenalty>!num)"!anyvalue="(?<skillpenalty>!num)"!anyvalue="(?<repairspeedbonus>!num)"!anyvalue="(?<skillbonus>!num)"!anydistance="(?<distance>!num)"!anySkillBonus!anyvalue="(?<skillpenaltyv>!num)"!anyvalue="(?<skillpenaltyv1>!num)"!anyvalue="(?<skillpenaltyv2>!num)"!anyvalue="(?<skillpenaltyv3>!num)"!anyvalue="(?<skillpenaltyv4>!num)"!anyvalue="(?<repairspeedpenaltyv>!num)
  lua: |
    repairspeedpenalty=round(repairspeedpenalty/2, 2)
    skillpenalty=round(skillpenalty/2, 0)
    repairspeedbonus=round(repairspeedbonus*2, 2)
    skillbonus=round(skillbonus*2, 0)
    distance=round(distance*2, 0)
    skillpenaltyv=skillpenalty
    skillpenaltyv1=skillpenalty
    skillpenaltyv2=skillpenalty
    skillpenaltyv3=skillpenalty
    skillpenaltyv4=skillpenalty
    repairspeedpenaltyv=round(-repairspeedpenalty/100, 2)
  files:
    - "**/TalentsAssistant.xml"

- name: pickinguptheslack
  regex: <Affliction!anyidentifier="pickinguptheslack"!anyvalue="(?<skillbonusv1>!num)"!anyvalue="(?<skillbonusv2>!num)"!anyvalue="(?<skillbonusv3>!num)"!anyvalue="(?<skillbonusv4>!num)"!anyvalue="(?<skillbonusv5>!num)"!anyvalue="(?<repairspeed>!num)
  lua: |
    skillbonusv1=round(skillbonusv1*2, 0)
    skillbonusv2=round(skillbonusv2*2, 0)
    skillbonusv3=round(skillbonusv3*2, 0)
    skillbonusv4=round(skillbonusv4*2, 0)
    skillbonusv5=round(skillbonusv5*2, 0)
    repairspeed=round(repairspeed*2, 2)
  files:
    - "**/AfflictionsAssistant.xml"

- name: mailman
  regex: <Talent identifier="mailman">!anyvalue="(?<xpbonus>!num)"!anyvalue="(?<moneybonus>!num)"!anymultiplyvalue="(?<xpbonusv>!num)"!anyamount="(?<moneybonusv>!num)"
  lua: |
    xpbonus=round(xpbonus*2, 2)
    moneybonus=round(moneybonus*2, 0)
    xpbonusv=round(1+xpbonus/100, 2)
    moneybonusv=moneybonus
  files:
    - "**/TalentsAssistant.xml"

- name: mule
  regex: <Talent identifier="mule">!anyvalue="(?<carryweight>!num)"!anyvalue="(?<carryweightv>!num)"
  lua: |
    carryweight=round(carryweight*2, 0)
    carryweightv=round(carryweightv*2, 0)
  files:
    - "**/TalentsAssistant.xml"

- name: playingcatchup
  regex: <Talent identifier="playingcatchup">!anyvalue="(?<levelthreshold>!num)"!anyvalue="(?<experiencevalue>!num)"!anylevelsbehind="(?<levelthresholdv>!num)"!anymultiplyvalue="(?<experiencevaluev>!num)"
  lua: |
    levelthreshold=round(levelthreshold*2, 0)
    experiencevalue=round(experiencevalue*2, 2)
    levelthresholdv=levelthreshold
    experiencevaluev=round(1+experiencevalue/100, 2)
  files:
    - "**/TalentsAssistant.xml"

- name: skedaddle
  regex: <Talent identifier="skedaddle">!anyvalue="(?<movementspeed>!num)"!anyvalue="(?<movementspeedshort>!num)"!anyvalue="(?<duration>!num)"!anyvalue="(?<movementspeedv>!num)"
  lua: |
    movementspeed=round(movementspeed*1.5, 2)
    movementspeedshort=round(movementspeedshort*1.5, 2)
    duration=round(duration*1.5, 0)
    movementspeedv=round(movementspeed/100, 2)
  files:
    - "**/TalentsAssistant.xml"
- name: skedaddle
  regex: <Affliction!anyidentifier="skedaddle"!anyduration="(?<durationv>!num)"!anyminspeedmultiplier="(?<minspeedmultiplierv>!num)"!anymaxspeedmultiplier="(?<maxspeedmultiplierv>!num)"
  lua: |
    durationv=round(durationv*1.5, 0)
    local movementspeed=round((minspeedmultiplierv-1)*1.5, 2)
    minspeedmultiplierv=1+movementspeed
    maxspeedmultiplierv=1+movementspeed
  files:
    - "**/AfflictionsAssistant.xml"

- name: starterquest
  regex: <Talent identifier="starterquest">!anyvalue="(?<xpbonus>!num)"!anyvalue="(?<skillbonus>!num)"!anyxpbonus!anyvalue="(?<xpbonus2>!num)"!anyvalue="(?<skillbonus2>!num)"!anyxpbonus!anyvalue="(?<xpbonus3>!num)"!anyvalue="(?<skillbonus3>!num)"!anyGiveExperience!anyamount="(?<xpbonusv>!num)"!anyvalue="(?<skillbonuxv>!num)"!anyGiveExperience!anyamount="(?<xpbonusv2>!num)"!anyvalue="(?<skillbonuxv2>!num)"!anyGiveExperience!anyamount="(?<xpbonusv3>!num)"!anyvalue="(?<skillbonuxv3>!num)"
  lua: |
    xpbonus=round(xpbonus*2, 0)
    skillbonus=round(skillbonus*2, 0)
    xpbonus2=round(xpbonus2*2, 0)
    skillbonus2=round(skillbonus2*2, 0)
    xpbonus3=round(xpbonus3*2, 0)
    skillbonus3=round(skillbonus3*2, 0)
    xpbonusv=xpbonus
    skillbonuxv=skillbonus
    xpbonusv2=xpbonus2
    skillbonuxv2=skillbonus2
    xpbonusv3=xpbonus3
    skillbonuxv3=skillbonus3
  files:
    - "**/TalentsAssistant.xml"

- name: indenturedservitude
  regex: <Talent identifier="indenturedservitude">!anyvalue="(?<discount>!num)"!anyvalue="(?<otherbonusxp>!num)"!anyvalue="(?<otherbonusxpmax>!num)"!anyvalue="(?<discountv>!num)"!anymultiplyvalue="(?<otherbonusxpv>!num)"
  lua: |
    discount=round(discount*2, 2)
    otherbonusxp=round(otherbonusxp*2, 2)
    otherbonusxpmax=round(otherbonusxp*5, 2)
    discountv=-round(discount/100, 2)
    otherbonusxpv=round(1+otherbonusxp/100, 2)
  files:
    - "**/TalentsAssistant.xml"

- name: inspiringtunes
  regex: <Talent identifier="inspiringtunes">!anyvalue="(?<skillbonus>!num)"!anyvalue="(?<duration>!num)"
  lua: |
    skillbonus=round(skillbonus*2, 0)
    duration=round(duration*1.5, 0)
  files:
    - "**/TalentsAssistant.xml"
- name: inspiringtunes
  regex: <Affliction!anyidentifier="inspiringtunes"!anyduration="(?<durationv>!num)"!anyvalue="(?<skillbonusv1>!num)"!anyvalue="(?<skillbonusv2>!num)"!anyvalue="(?<skillbonusv3>!num)"!anyvalue="(?<skillbonusv4>!num)"!anyvalue="(?<skillbonusv5>!num)"
  lua: |
    durationv=round(durationv*1.5, 0)
    skillbonusv1=round(skillbonusv1*2, 0)
    skillbonusv2=round(skillbonusv2*2, 0)
    skillbonusv3=round(skillbonusv3*2, 0)
    skillbonusv4=round(skillbonusv4*2, 0)
    skillbonusv5=round(skillbonusv5*2, 0)
  files:
    - "**/AfflictionsAssistant.xml"

- name: jengamaster
  regex: <Talent identifier="jengamaster">!anyvalue="(?<maxstack>!num)"!anyvalue="(?<maxstackv>!num)"
  lua: |
    maxstack=round(maxstack*2, 0)
    maxstackv=maxstack
  files:
    - "**/TalentsAssistant.xml"

- name: peerlearning
  regex: <Talent identifier="peerlearning">!anyvalue="(?<xpbonus>!num)"!anymultiplyvalue="(?<xpbonusv>!num)"!anymultiplyvalue="(?<xpbonusv2>!num)"
  lua: |
    xpbonus=round(xpbonus*2, 2)
    xpbonusv=round(1+xpbonus/100, 2)
    xpbonusv2=round(1+xpbonus/100, 2)
  files:
    - "**/TalentsAssistant.xml"

- name: revengesquad
  regex: <Talent identifier="revengesquad">!anyvalue="(?<resistancebonus>!num)"!anyvalue="(?<duration>!num)"
  lua: |
    resistancebonus=round(resistancebonus*1.5, 2)
    duration=round(duration*2, 2)
  files:
    - "**/TalentsAssistant.xml"
- name: revengesquad
  regex: <Affliction!anyidentifier="revengesquad"!anyduration="(?<durationv>!num)"!anyminresistance="(?<minresistancev>!num)"!anymaxresistance="(?<maxresistancev>!num)"
  lua: |
    durationv=round(durationv*1.5, 0)
    minresistancev=round(minresistancev*1.5, 2)
    maxresistancev=round(maxresistancev*1.5, 2)
  files:
    - "**/AfflictionsAssistant.xml"

- name: thewaitinglist
  regex: <Talent identifier="thewaitinglist">!anyvalue="(?<dying>!num)"!anymultiplier="(?<dyingv1>!num)"!anymultiplier="(?<dyingv2>!num)"!anymultiplier="(?<dyingv3>!num)"
  lua: |
    dying=round(dying*1.2, 2)
    dyingv1=round(1-(dying/100), 2)
    dyingv2=round(1-(dying/100), 2)
    dyingv3=round(1-(dying/100), 2)
  files:
    - "**/TalentsAssistant.xml"

- name: nonthreatening
  regex: <Talent identifier="nonthreatening">!anyvalue="(?<afktime>!num)"!anyeffectdelay="(?<afktimev>!num)"
  lua: |
    afktime=round(afktime/2, 2)
    afktimev=round(afktime, 2)
  files:
    - "**/TalentsAssistant.xml"

- name: tastytarget
  regex: <Talent identifier="tastytarget">!anyvalue="(?<targetingchance>!num)"
  lua: |
    targetingchance=round(targetingchance*2, 2)
  files:
    - "**/TalentsAssistant.xml"
- name: tastytarget
  regex: <Affliction!anyidentifier="tastytarget"!anyminresistance="(?<minresistancev>!num)"!anymaxresistance="(?<maxresistancev>!num)"
  lua: |
    minresistancev=round(minresistancev*2, 2)
    maxresistancev=round(maxresistancev*2, 2)
  files:
    - "**/AfflictionsAssistant.xml"

- name: insurancepolicy
  regex: <Talent identifier="insurancepolicy">!anyvalue="(?<bonus>!num)"!anymoneypermission="(?<bonusv>!num)"
  lua: |
    bonus=round(bonus*2, 2)
    bonusv=round(bonusv*2, 2)
  files:
    - "**/TalentsAssistant.xml"

- name: thefriendswemade
  regex: <Talent identifier="thefriendswemade">!anyvalue="(?<maxcount>!num)"
  lua: |
    maxcount=round(maxcount*2, 0)
  files:
    - "**/TalentsAssistant.xml"
- name: petraptoregg
  regex: <Item!anyidentifier="petraptoregg"!anytotalmaxcount="(?<maxcountv>!num)"
  lua: |
    maxcountv=round(maxcountv*2, 0)
  files:
    - "**/assistant_talent_items.xml"

- name: journeyman
  regex: <Talent identifier="journeyman">!anyvalue="(?<skillbonus>!num)"!anyvalue="(?<bonusxp>!num)"!anySkillBonus!anyvalue="(?<skillbonusv>!num)"!anyvalue="(?<bonusxpv>!num)"!anySkillBonus!anyvalue="(?<skillbonusv2>!num)"!anyvalue="(?<bonusxpv2>!num)"!anySkillBonus!anyvalue="(?<skillbonusv3>!num)"!anyvalue="(?<bonusxpv3>!num)"!anySkillBonus!anyvalue="(?<skillbonusv4>!num)"!anyvalue="(?<bonusxpv4>!num)"!anySkillBonus!anyvalue="(?<skillbonusv5>!num)"!anyvalue="(?<bonusxpv5>!num)"
  lua: |
    skillbonus=round(skillbonus*2, 0)
    bonusxp=round(bonusxp*2, 2)
    skillbonusv=skillbonus
    bonusxpv=round(bonusxp/100, 2)
    skillbonusv2=skillbonus
    bonusxpv2=round(bonusxp/100, 2)
    skillbonusv3=skillbonus
    bonusxpv3=round(bonusxp/100, 2)
    skillbonusv4=skillbonus
    bonusxpv4=round(bonusxp/100, 2)
    skillbonusv5=skillbonus
    bonusxpv5=round(bonusxp/100, 2)
  files:
    - "**/TalentsAssistant.xml"

- name: logisticssystems
  regex: <Talent identifier="logisticssystems">!anyvalue="(?<maxcount>!num)"!anyvalue="(?<maxcountv>!num)"!anyvalue="(?<maxcountv2>!num)"
  lua: |
    maxcount=round(maxcount*2, 0)
    maxcountv=maxcount
    maxcountv2=maxcount
  files:
    - "**/TalentsAssistant.xml"

- name: disloyalscum
  regex: <Talent identifier="disloyalscum">!anyvalue="(?<bonusxp>!num)"
  lua: |
    bonusxp=round(bonusxp*2, 2)
  files:
    - "**/TalentsAssistant.xml"
- name: disloyalscum
  regex: <Affliction!anyidentifier="disloyalscum"!anyvalue="(?<bonusxpv>!num)"!anyvalue="(?<bonusxpv2>!num)"!anyvalue="(?<bonusxpv3>!num)"
  lua: |
    bonusxpv=round(bonusxpv*2, 2)
    bonusxpv2=bonusxpv
    bonusxpv3=bonusxpv
  files:
    - "**/AfflictionsAssistant.xml"

- name: loyalassistant
  regex: <Talent identifier="loyalassistant">!anyvalue="(?<qualitybonus>!num)"
  lua: |
    qualitybonus=round(qualitybonus*2, 2)
  files:
    - "**/TalentsAssistant.xml"
- name: loyalassistant
  regex: <Affliction!anyidentifier="loyalassistant"!anyvalue="(?<qualitybonusv>!num)"
  lua: |
    qualitybonusv=round(qualitybonusv*2, 0)
  files:
    - "**/AfflictionsAssistant.xml"

- name: enrollintoclowncollege
  regex: <Talent identifier="enrollintoclowncollege">!anyvalue!anyvalue="(?<movementspeed>!num)"!anyvalue!anyvalue="(?<physicalresistance>!num)"
  lua: |
    movementspeed=round(movementspeed*2, 2)
    physicalresistance=round(physicalresistance*2, 2)
  files:
    - "**/TalentsAssistant.xml"
- name: clownpower
  regex: <Affliction!anyidentifier="clownpower"!anyminresistance="(?<minresistancev>!num)"!anymaxresistance="(?<maxresistancev>!num)"!anyvalue="(?<movementspeedv>!num)"
  lua: |
    minresistancev=round(minresistancev*2, 2)
    maxresistancev=round(maxresistancev*2, 2)
    movementspeedv=round(movementspeedv*2, 2)
  files:
    - "**/AfflictionsAssistant.xml"

- name: waterprankster
  regex: <Talent identifier="waterprankster">!anyvalue="(?<swimmingspeed>!num)"!anySwimmingSpeed" value="(?<swimmingspeedv>!num)"
  lua: |
    swimmingspeed=round(swimmingspeed*2, 2)
    swimmingspeedv=round(swimmingspeed/100, 2)
  files:
    - "**/TalentsAssistant.xml"

- name: chonkyhonks
  regex: <Talent identifier="chonkyhonks">!anyvalue="(?<chance>!num)"!anyvalue="(?<duration>!num)"!anyrandomchance="(?<chancev>!num)"!anymaxdistance="(?<maxdistance>!num)"!anystrength="(?<durationv>!num)"
  lua: |
    chance=round(chance*1.5, 2)
    duration=round(duration*2, 2)
    chancev=round(chance/100, 2)
    maxdistance=round(maxdistance*2, 2)
    durationv=round(duration, 2)
  files:
    - "**/TalentsAssistant.xml"

- name: psychoclown
  regex: <Talent identifier="psychoclown">!anyvalue="(?<maxpower>!num)"!anymaxvalue="(?<maxpowerv>!num)"
  lua: |
    maxpower=round(maxpower*2, 2)
    maxpowerv=round(maxpower/100, 2)
  files:
    - "**/TalentsAssistant.xml"

- name: truepotential
  regex: <Talent identifier="truepotential">!anyvalue!anyvalue="(?<duration>!num)"!anystrength="(?<durationv>!num)"
  lua: |
    duration=round(duration*2, 0)
    durationv=duration
  files:
    - "**/TalentsAssistant.xml"
