- name: exampleofhealth
  regex: <Talent identifier="exampleofhealth">!anyvalue="(?<maximumhealthmultiplier>!num)"!anyMultiplier" value="(?<maximumhealthmultiplierv>!num)"
  lua: |
    maximumhealthmultiplier=round(maximumhealthmultiplier*2, 2)
    maximumhealthmultiplierv=round(maximumhealthmultiplier/100, 2)
  files:
    - '**/TalentsDoctor.xml'

- name: healthinsurance
  regex: <Talent identifier="healthinsurance">!anyvalue="(?<hpthreshold>!num)"!anyvalue="(?<moneyreward>!num)"!anyvalue="(?<itemdiscount>!num)"!anyvalue="(?<itemdiscountv>!num)"!anyvitalitypercentage="(?<hpthresholdv>!num)"!anyGiveMoney amount="(?<emoneyrewardv>!num)"
  lua: |
    hpthreshold=round(hpthreshold*2, 2)
    moneyreward=round(moneyreward*2*2, 2)
    itemdiscount=round(itemdiscount*2, 2)
    itemdiscountv=round(itemdiscount/100, 2)
    hpthresholdv=round(hpthreshold/100, 2)
    moneyrewardv=moneyreward
  files:
    - '**/TalentsDoctor.xml'

- name: laresistance
  regex: <Talent identifier="laresistance">!anyvalue="(?<opiateaddictionresistance>!num)"!anyvalue="(?<chemaddictionresistance>!num)"!anymultiplier="(?<opiateaddictionresistancev>!num)"!anymultiplier="(?<chemaddictionresistancev>!num)"
  lua: |
    opiateaddictionresistance=round(opiateaddictionresistance*2, 2)
    chemaddictionresistance=round(chemaddictionresistance*2, 2)
    opiateaddictionresistancev=round(opiateaddictionresistance/100, 2)
    chemaddictionresistancev=round(chemaddictionresistance/100, 2)
  files:
    - '**/TalentsDoctor.xml'

- name: nobodyimportantdies
  regex: <Talent identifier="nobodyimportantdies">!anyvalue="(?<potency>!num)"!anyvalue="(?<penalty>!num)"!anymultiplyvalue="(?<penaltyv>!num)"!anymultiplyvalue="(?<potencyv>!num)"
  lua: |
    potency=round(potency*2*1.5, 2)
    penalty=round(penalty/2, 2)
    penaltyv=round(1-penalty/100, 2)
    potencyv=round(1+potency/100, 2)
  files:
    - '**/TalentsDoctor.xml'

- name: selfcare
  regex: <Talent identifier="selfcare">!anyvalue="(?<potency>!num)"!anyvalue="(?<potencyv>!num)"
  lua: |
    potency=round(potency*2*1.5, 2)
    potencyv=round(potency/100, 2)
  files:
    - '**/TalentsDoctor.xml'

- name: stayinalive
  regex: <Talent identifier="stayinalive">!anyvalue="(?<potency>!num)"
  lua: |
    potency=round(potency*2, 2)
  files:
    - '**/TalentsDoctor.xml'
- name: stayinalive
  regex: <Affliction!anyidentifier="stayinalive"!anyvalue="(?<amount>!num)"
  lua: |
    amount=round(amount*2, 2)
  files:
    - '**/AfflictionsDoctor.xml'

- name: blooddonor
  regex: <Talent identifier="blooddonor">!anyamount="(?<amount>!num)"
  lua: |
    amount=round(amount*2, 0)
  files:
    - '**/TalentsDoctor.xml'

# Don't die on me ?
# Fireman's carry ?

- name: geneharvester
  regex: <Talent identifier="geneharvester">!anyvalue="(?<probability>!num)"!anyrandomchance="(?<randomchance>!num)"
  lua: |
    probability=round(probability*2*1.5, 2)
    randomchance=round(probability/100, 2)
  files:
    - '**/TalentsDoctor.xml'

# We don't know how to change these yet
- name: bloodybusiness
  regex: <Talent identifier="bloodybusiness">!anyvalue="(?<psychosisreduction>!num)"!anyamount="(?<psychosisreductionv>!num)"!anySpawnItem!any(?<minamount>\s)/>
  lua: |
    psychosisreduction=psychosisreduction
    psychosisreductionv=psychosisreductionv
    minamount=string.format(' MinAmount=\"%d\" ', round(1*2*2, 0))
  files:
    - '**/TalentsDoctor.xml'

- name: genesplicer
  regex: <Talent identifier="genesplicer">!anyvalue="(?<potency>!num)"!anyvalue="(?<potencyv>!num)"
  lua: |
    potency=round(potency*2, 2)
    potencyv=potency
  files:
    - '**/TalentsDoctor.xml'

- name: blackmarketgenes
  regex: <Talent identifier="blackmarketgenes">!anyvalue="(?<itemprice>!num)"!anyvalue="(?<itempricev>!num)"!anyvalue="(?<itempricev2>!num)"
  lua: |
    itemprice=round(itemprice*2, 2)
    itempricev=round(itemprice/100, 2)
    itempricev2=round(itemprice/100, 2)
  files:
    - '**/TalentsDoctor.xml'

- name: genetampering
  regex: <Talent identifier="genetampering">!anyvalue="(?<hpamount>!num)"!anyvalue="(?<movementspeed>!num)"
  lua: |
    hpamount=round(hpamount*2, 2)
    movementspeed=round(movementspeed*2, 2)
  files:
    - '**/TalentsDoctor.xml'
- name: genetampering
  regex: <Affliction!anyidentifier="genetampering"!anyvalue="(?<movementspeedv>!num)"!anyvalue="(?<hpamountv>!num)"
  lua: |
    movementspeedv=round(movementspeedv*2, 2)
    hpamountv=round(hpamountv*2, 2)
  files:
    - '**/AfflictionsDoctor.xml'

# Genetic genius ?

- name: medicalexpertise
  regex: <Talent identifier="medicalexpertise">!anyvalue!anyvalue="(?<medicalskillbonus>!num)"!anyvalue="(?<medicalskillbonusv>!num)"!anyamount="(?<bleedingamount>!num)"!anyamount="(?<burnamount>!num)"
  lua: |
    medicalskillbonus=round(medicalskillbonus*2, 2)
    medicalskillbonusv=round(medicalskillbonusv*2, 2)
    bleedingamount=round(bleedingamount*1.5, 2)
    burnamount=round(burnamount*1.5, 2)
  files:
    - '**/TalentsDoctor.xml'

- name: emergencyresponse
  regex: <Talent identifier="emergencyresponse">!anyvalue="(?<movementspeed>!num)"
  lua: |
    movementspeed=round(movementspeed*1.5, 2)
  files:
    - '**/TalentsDoctor.xml'
- name: emergencyresponse_selfbuff
  regex: <Affliction!anyidentifier="emergencyresponse_selfbuff"!anyvalue="(?<movementspeedv>!num)"
  lua: |
    movementspeedv=round(movementspeedv*1.5, 2)
  files:
    - '**/AfflictionsDoctor.xml'

- name: medicalassistance
  regex: <Talent identifier="medicalassistance">!anyvalue="(?<medicalskillbonus>!num)"
  lua: |
    medicalskillbonus=round(medicalskillbonus*2, 2)
  files:
    - '**/TalentsDoctor.xml'
- name: medicalassistance
  regex: <Affliction!anyidentifier="medicalassistance"!anyvalue="(?<medicalskillbonusv>!num)"
  lua: |
    medicalskillbonusv=round(medicalskillbonusv*2, 2)
  files:
    - '**/AfflictionsDoctor.xml'

- name: drsubmarine
  regex: <Talent identifier="drsubmarine">!anyvalue="(?<potency>!num)"!anyvalue="(?<potencyv>!num)"
  lua: |
    potency=round(potency*2, 2)
    potencyv=round(potency/100, 2)
  files:
    - '**/TalentsDoctor.xml'

- name: vitaminsupplements
  regex: <Talent identifier="vitaminsupplements">!anyvalue="(?<hpboost>!num)"
  lua: |
    hpboost=round(hpboost*2, 2)
  files:
    - '**/TalentsDoctor.xml'
- name: bedsidemanner
  regex: <Affliction!anyidentifier="bedsidemanner"!anyvalue="(?<hpboostv>!num)"
  lua: |
    hpboostv=round(hpboostv*2, 2)
  files:
    - '**/AfflictionsDoctor.xml'

- name: plaguedoctor
  regex: <Talent identifier="plaguedoctor">!anyvalue="(?<resistance>!num)"!anymultiplier="(?<resistancev>!num)"
  lua: |
    resistance=round(resistance*2, 2)
    resistancev=round(resistance/100, 2)
  files:
    - '**/TalentsDoctor.xml'

- name: labcontacts
  regex: <Talent identifier="labcontacts">!anyvalue="(?<discount>!num)"!anyvalue="(?<fabricationspeed>!num)"!anyvalue="(?<fabricationspeedv>!num)"!anyvalue="(?<discountv>!num)"
  lua: |
    discount=round(discount*2, 2)
    fabricationspeed=round(fabricationspeed*2, 2)
    fabricationspeedv=round(fabricationspeed/100, 2)
    discountv=round(discount/100, 2)
  files:
    - '**/TalentsDoctor.xml'

- name: supersoldiers
  regex: <Talent identifier="supersoldiers">!anyvalue="(?<buffduration>!num)"!anyvalue="(?<buffdurationv>!num)"
  lua: |
    buffduration=round(buffduration*2, 2)
    buffdurationv=round(buffduration/100, 2)
  files:
    - '**/TalentsDoctor.xml'

- name: whatastench
  regex: <Talent identifier="whatastench">!anyvalue="(?<damage>!num)"!anyaddedmultiplier="(?<damagev>!num)"
  lua: |
    damage=round(damage*2, 2)
    damagev=round(damage/100, 2)
  files:
    - '**/TalentsDoctor.xml'

- name: macrodosing
  regex: <Talent identifier="macrodosing">!anyvalue="(?<buffduration>!num)"!anyvalue="(?<poisonpower>!num)"!anyApplyingMultiplier!anyvalue="(?<buffdurationv>!num)"!anyvalue="(?<poisonpowerv>!num)"
  lua: |
    buffduration=round(buffduration*2, 2)
    poisonpower=round(poisonpower*2, 2)
    buffdurationv=round(buffduration/100, 2)
    poisonpowerv=round(poisonpower/100, 2)
  files:
    - '**/TalentsDoctor.xml'
