Make the rest into ymls

This commit is contained in:
2025-03-28 01:47:31 +01:00
parent 7961ef7fa8
commit 62d7c989d3
13 changed files with 1353 additions and 1125 deletions

243
cooksecurity.yml Normal file
View File

@@ -0,0 +1,243 @@
- name: buff
regex: <Talent identifier="buff">!anyvalue="(?<duration>!num)"!anyvalue!anyvalue="(?<resistance>!num)"!anyvalue!anyvalue="(?<durationv>!num)"!anymultiplier="(?<resistancev>!num)"
lua: |
duration=round(duration*2, 2)
resistance=round(resistance*2, 2)
durationv=duration
resistancev=1-round(resistance/100, 2)
files:
- '**/TalentsSecurity.xml'
- name: firstaidtraining
regex: <Talent identifier="firstaidtraining">!anyvalue="(?<skillbonus>!num)"!anyvalue!anyvalue="(?<potency>!num)"!anyvalue="(?<skillbonusv>!num)"!anyvalue="(?<potencyv>!num)"
lua: |
skillbonus=round(skillbonus*2, 2)
potency=round(potency*2, 2)
skillbonusv=skillbonus
potencyv=round(potency/100, 2)
files:
- '**/TalentsSecurity.xml'
- name: physicalconditioning
regex: <Talent identifier="physicalconditioning">!anyvalue="(?<movementspeed>!num)"!anyvalue!anyvalue="(?<oxygenlowresistance>!num)"!anyvalue!anyvalue="(?<movementspeedv>!num)"!anymultiplier="(?<oxygenlowresistancev>!num)"
lua: |
movementspeed=round(movementspeed*2, 2)
oxygenlowresistance=round(oxygenlowresistance*2, 2)
movementspeedv=round(movementspeed/100, 2)
oxygenlowresistancev=1-round(oxygenlowresistance/100, 2)
files:
- '**/TalentsSecurity.xml'
- name: protectandserve
regex: <Talent identifier="protectandserve">!anyvalue="(?<xpbonus>!num)"!anyvalue="(?<reputationbonus>!num)"!anymultiplyvalue="(?<xpbonusv>!num)"!anyaddedvalue="(?<reputationbonusv>!num)"
lua: |
xpbonus=round(xpbonus*2, 2)
xpbonusv=round(1+xpbonus/100, 2)
reputationbonus=round(reputationbonus*2, 2)
reputationbonusv=round(1+reputationbonus/100, 2)
files:
- '**/TalentsSecurity.xml'
- name: swole
regex: <Talent identifier="swole">!anyvalue="(?<maxhp>!num)"!anyvalue!anyvalue="(?<meleepower>!num)"!anyvalue!anyvalue="(?<maxhpv>!num)"!anyvalue="(?<meleepowerv>!num)"
lua: |
maxhp=round(maxhp*2, 2)
meleepower=round(meleepower*2, 2)
maxhpv=round(maxhp/100, 2)
meleepowerv=round(meleepower/100, 2)
files:
- '**/TalentsSecurity.xml'
- name: bootcamp
regex: <Talent identifier="bootcamp">!anyvalue="(?<bonusxp>!num)"!anyvalue="(?<levelthreshold>!num)"!anyvalue="(?<skillbonus>!num)"!anyminlevel="(?<levelthresholdv>!num)"!anyvalue="(?<skillbonusv>!num)"!anymaxlevel="(?<maxlevel>!num)"!anymultiplyvalue="(?<bonusxpv>!num)"
lua: |
bonusxp=round(bonusxp*2, 2)
levelthreshold=round(levelthreshold*2, 0)
skillbonus=round(skillbonus*2, 2)
levelthresholdv=levelthreshold
skillbonusv=skillbonus
maxlevel=levelthreshold-1
bonusxpv=round(1+bonusxp/100, 2)
files:
- '**/TalentsSecurity.xml'
- name: bythebook
regex: <Talent identifier="bythebook">!anyvalue="(?<money>!num)"!anyvalue="(?<xp>!num)"!anyvalue="(?<moneymax>!num)"!anyvalue="(?<xpmax>!num)"
lua: |
money=round(money*1.5, 0)
xp=round(xp*1.5, 0)
moneymax=money*8
xpmax=xp*8
files:
- '**/TalentsSecurity.xml'
- name: weaponsmith
regex: <Talent identifier="weaponsmith">!anyvalue="(?<qualitybonus>!num)"!anyvalue!anyvalue="(?<qualitybonusv>!num)"
lua: |
qualitybonus=round(qualitybonus*2, 0)
qualitybonusv=qualitybonus
files:
- '**/TalentsSecurity.xml'
- name: scavenger
regex: <Talent identifier="scavenger">!anyvalue="(?<chance>!num)"!anyrandomchance="(?<chancev>!num)"!anyPerItem="(?<chancev2>!num)"
lua: |
chance=round(chance*2, 2)
chancev=round(chance/100, 2)
chancev2=round(chancev2*2, 2)
files:
- '**/TalentsSecurity.xml'
- name: slayer
regex: <Talent identifier="slayer">!anyvalue="(?<attackpower>!num)"!anyvalue="(?<attackpower2>!num)"!anyaddeddamagemultiplier="(?<attackpowerv>!num)"!anyaddeddamagemultiplier="(?<attackpowerv2>!num)"
lua: |
attackpower=round(attackpower*2, 2)
attackpower2=round(attackpower2*2, 2)
attackpowerv=round(attackpower/100, 2)
-- The other 25%, in the sea, are added on top of the first 25%
-- To result in 50% which is in the tooltip
-- So to maintain accuracy of the tooltip we have to increase this one by only half of our multiplier
attackpowerv2=round(attackpower2/2/100, 2)
files:
- '**/TalentsSecurity.xml'
- name: daringdolphin
regex: <Talent identifier="daringdolphin">!anyvalue="(?<swimmingspeed>!num)"!anyvalue!anyvalue="(?<swimmingspeedv>!num)"
lua: |
swimmingspeed=round(swimmingspeed*2, 2)
swimmingspeedv=round(swimmingspeed/100, 2)
files:
- '**/TalentsSecurity.xml'
- name: easyturtle
regex: <Talent identifier="easyturtle">!anyvalue="(?<resistance>!num)"!anymultiplier="(?<resistancev>!num)"
lua: |
resistance=round(resistance*2, 2)
resistancev=round(1-resistance/100, 2)
files:
- '**/TalentsSecurity.xml'
- name: specops
regex: <Talent identifier="specops">!anyaddeddamagemultiplier="(?<addeddamagemultiplier>!num)"
lua: |
addeddamagemultiplier=round(addeddamagemultiplier*2, 2)
files:
- '**/TalentsSecurity.xml'
- name: beatcop
regex: <Talent identifier="beatcop">!anyvalue="(?<stunpower>!num)"!anyaddedmultiplier="(?<stunpowerv>!num)"!anyaddedmultiplier="(?<stunpowerv2>!num)"
lua: |
stunpower=round(stunpower*2, 2)
-- Here it's again fucking weird, the first modifier is 2x the value
-- So we respect that too
stunpowerv=round(stunpower*2/100, 2)
stunpowerv2=round(stunpower/100, 2)
files:
- '**/TalentsSecurity.xml'
- name: stonewall
regex: <Talent identifier="stonewall">!anyvalue="(?<physicaldamagereduction>!num)"!anyvalue="(?<stunresistance>!num)"!anyvalue="(?<duration>!num)"!anyamount="(?<durationv>!num)"
lua: |
physicaldamagereduction=round(physicaldamagereduction*2, 2)
stunresistance=round(stunresistance*2, 2)
duration=round(duration*2, 0)
durationv=duration
files:
- '**/TalentsSecurity.xml'
- name: stonewall
regex: <Affliction!anyidentifier="stonewall"!anymaxstrength="(?<durationv>!num)"!anymaxstrength="(?<durationv2>!num)"!anyminresistance="(?<stunresistancev>!num)"!anymaxresistance="(?<stunresistancev2>!num)"
lua: |
durationv=round(durationv*2, 0)
durationv2=round(durationv2*2, 0)
stunresistancev=round(stunresistancev*2, 2)
stunresistancev2=round(stunresistancev2*2, 2)
files:
- '**/AfflictionsSecurity.xml'
# Crusty Seaman
- name: inordinateexsanguination
regex: <Talent identifier="inordinateexsanguination">!anyvalue="(?<damagebonus>!num)"!anymultiplier="(?<damagebonusv>!num)"
lua: |
damagebonus=round(damagebonus*2, 2)
damagebonusv=round(damagebonus/100, 2)
files:
- '**/TalentsSecurity.xml'
- name: implacable
regex: <Talent identifier="implacable">!anyvalue="(?<powerincrease>!num)"!anyvalue="(?<duration>!num)"
lua: |
powerincrease=round(powerincrease*2, 2)
duration=round(duration*2, 0)
files:
- '**/TalentsSecurity.xml'
- name: implacable
regex: <Affliction!anyidentifier="implacable"!anyduration="(?<durationv>!num)"!anyvalue="(?<powerincreasev>!num)"
lua: |
durationv=round(durationv*2, 0)
powerincreasev=round(powerincreasev*2, 2)
files:
- '**/AfflictionsSecurity.xml'
- name: rifleman
regex: <Talent identifier="rifleman">!anyvalue="(?<damagebonus>!num)"!anymultiplier="(?<damagebonusv>!num)"
lua: |
damagebonus=round(damagebonus*2, 2)
damagebonusv=round(damagebonus/100, 2)
files:
- '**/TalentsSecurity.xml'
- name: commando
regex: <Talent identifier="commando">!anyvalue="(?<spreadreduction>!num)"!anyvalue="(?<powerincrease>!num)"!anymultiplier="(?<powerincreasev>!num)"!anyvalue="(?<spreadreductionv>!num)"
lua: |
spreadreduction=round(spreadreduction*2, 2)
powerincrease=round(powerincrease*2, 2)
powerincreasev=round(powerincrease/100, 2)
spreadreductionv=round(spreadreduction/100, 2)
files:
- '**/TalentsSecurity.xml'
- name: tandemfire
regex: <Talent identifier="tandemfire">!anyvalue="(?<damagebonus>!num)"
lua: |
damagebonus=round(damagebonus*2, 2)
files:
- '**/TalentsSecurity.xml'
- name: tandemfire
regex: <Affliction!anyidentifier="tandemfire"!anyvalue="(?<damagebonusv>!num)"
lua: |
damagebonusv=round(damagebonusv*2, 2)
files:
- '**/AfflictionsSecurity.xml'
- name: extrapowder
regex: <Talent identifier="extrapowder">!anyvalue="(?<radius>!num)"!anyvalue="(?<damagebonus>!num)"!anyvalue="(?<qualitybonus>!num)"!anyvalue="(?<radiusv>!num)"!anyvalue="(?<damagebonusv>!num)"!anyvalue="(?<qualitybonusv>!num)"
lua: |
radius=round(radius*2*1.5, 2)
damagebonus=round(damagebonus*2, 2)
qualitybonus=round(qualitybonus*2, 0)
radiusv=round(radius/100, 2)
damagebonusv=round(damagebonus/100, 2)
qualitybonusv=qualitybonus
files:
- '**/TalentsSecurity.xml'
- name: gunrunner
regex: <Talent identifier="gunrunner">!anyvalue="(?<movementspeedcarry>!num)"!anyvalue="(?<movementspeedaim>!num)"!anyvalue="(?<movementspeedaimv>!num)"!anyvalue="(?<movementspeedcarryv>!num)"
lua: |
movementspeedcarry=round(movementspeedcarry*2, 2)
movementspeedaim=round(movementspeedaim*2, 2)
movementspeedaimv=round(movementspeedaim/100, 2)
movementspeedcarryv=round(movementspeedcarry/100, 2)
files:
- '**/TalentsSecurity.xml'
- name: warlord
regex: <Talent identifier="warlord">!anyvalue="(?<damagebonus>!num)"!anyvalue="(?<damagebonusmax>!num)"!anymultiplier="(?<damagebonusv>!num)"!anyaddeddamagemultiplier="(?<damagebonusmaxv>!num)"
lua: |
damagebonus=round(damagebonus*2, 2)
damagebonusmax=round(damagebonus*5, 2)
damagebonusv=round(damagebonus/100, 2)
damagebonusmaxv=round(damagebonusmax/100, 2)
files:
- '**/TalentsSecurity.xml'