diff --git a/cooksecurity.sh b/cooksecurity.sh index 760ac13e..d1b4dd4c 100644 --- a/cooksecurity.sh +++ b/cooksecurity.sh @@ -1,214 +1,168 @@ bigmodifier=2 smallmodifier=1.5 -# modify '!anyvalue="(?!num)"!anyvalue!anyvalue="(?!num)"!anyvalue!anyvalue="(?!num)"!anymultiplier="(?!num)"' \ -# "duration=round(duration*$bigmodifier, 2) -# resistance=round(resistance*$bigmodifier, 2) -# durationv=duration -# resistancev=1-round(resistance/100, 2)" \ -# **/TalentsSecurity.xml - -# modify '!anyvalue="(?!num)"!anyvalue!anyvalue="(?!num)"!anyvalue="(?!num)"!anyvalue="(?!num)"' \ -# "skillbonus=round(skillbonus*$bigmodifier, 2) -# potency=round(potency*$bigmodifier, 2) -# skillbonusv=skillbonus -# potencyv=round(potency/100, 2)" \ -# **/TalentsSecurity.xml - -# modify '!anyvalue="(?!num)"!anyvalue!anyvalue="(?!num)"!anyvalue!anyvalue="(?!num)"!anymultiplier="(?!num)"' \ -# "movementspeed=round(movementspeed*$bigmodifier, 2) -# oxygenlowresistance=round(oxygenlowresistance*$bigmodifier, 2) -# movementspeedv=round(movementspeed/100, 2) -# oxygenlowresistancev=1-round(oxygenlowresistance/100, 2)" \ -# **/TalentsSecurity.xml - -# modify '!anyvalue="(?!num)"!anyvalue="(?!num)"!anymultiplyvalue="(?!num)"!anyaddedvalue="(?!num)"' \ -# "xpbonus=round(xpbonus*$bigmodifier, 2) -# xpbonusv=round(1+xpbonus/100, 2) -# reputationbonus=round(reputationbonus*$bigmodifier, 2) -# reputationbonusv=round(1+reputationbonus/100, 2)" \ -# **/TalentsSecurity.xml - -# modify '!anyvalue="(?!num)"!anyvalue!anyvalue="(?!num)"!anyvalue!anyvalue="(?!num)"!anyvalue="(?!num)"' \ -# "maxhp=round(maxhp*$bigmodifier, 2) -# meleepower=round(meleepower*$bigmodifier, 2) -# maxhpv=round(maxhp/100, 2) -# meleepowerv=round(meleepower/100, 2)" \ -# **/TalentsSecurity.xml - -# modify '!anyvalue="(?!num)"!anyvalue="(?!num)"!anyvalue="(?!num)"!anyminlevel="(?!num)"!anyvalue="(?!num)"!anymaxlevel="(?!num)"!anymultiplyvalue="(?!num)"' \ -# "bonusxp=round(bonusxp*$bigmodifier, 2) -# levelthreshold=round(levelthreshold*$bigmodifier, 0) -# skillbonus=round(skillbonus*$bigmodifier, 2) -# levelthresholdv=levelthreshold -# skillbonusv=skillbonus -# maxlevel=levelthreshold-1 -# bonusxpv=round(1+bonusxp/100, 2)" \ -# **/TalentsSecurity.xml - -# modify '!anyvalue="(?!num)"!anyvalue="(?!num)"!anyvalue="(?!num)"!anyvalue="(?!num)"' \ -# "money=round(money*$smallmodifier, 0) -# xp=round(xp*$smallmodifier, 0) -# moneymax=money*8 -# xpmax=xp*8" \ -# **/TalentsSecurity.xml - -# modify '!anyvalue="(?!num)"!anyvalue!anyvalue="(?!num)"' \ -# "qualitybonus=round(qualitybonus*$bigmodifier, 0) -# qualitybonusv=qualitybonus" \ -# **/TalentsSecurity.xml - -# modify '!anyvalue="(?!num)"!anyrandomchance="(?!num)"!anyPerItem="(?!num)"' \ -# "chance=round(chance*$bigmodifier, 2) -# chancev=round(chance/100, 2) -# chancev2=round(chancev2*$bigmodifier, 2)" \ -# **/TalentsSecurity.xml - -# modify '!anyvalue="(?!num)"!anyvalue="(?!num)"!anyaddeddamagemultiplier="(?!num)"!anyaddeddamagemultiplier="(?!num)"' \ -# "attackpower=round(attackpower*$bigmodifier, 2) -# attackpower2=round(attackpower2*$bigmodifier, 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)" \ -# **/TalentsSecurity.xml - -# modify '!anyvalue="(?!num)"!anyvalue!anyvalue="(?!num)"' \ -# "swimmingspeed=round(swimmingspeed*$bigmodifier, 2) -# swimmingspeedv=round(swimmingspeed/100, 2)" \ -# **/TalentsSecurity.xml - -# modify '!anyvalue="(?!num)"!anymultiplier="(?!num)"' \ -# "resistance=round(resistance*$bigmodifier, 2) -# resistancev=round(1-resistance/100, 2)" \ -# **/TalentsSecurity.xml - -# modify '!anyaddeddamagemultiplier="(?!num)"' \ -# "addeddamagemultiplier=round(addeddamagemultiplier*$bigmodifier, 2)" \ -# **/TalentsSecurity.xml - -# modify '!anyvalue="(?!num)"!anyaddedmultiplier="(?!num)"!anyaddedmultiplier="(?!num)"' \ -# "stunpower=round(stunpower*$bigmodifier, 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)" \ -# **/TalentsSecurity.xml - -# modify '!anyvalue="(?!num)"!anyvalue="(?!num)"!anyvalue="(?!num)"!anyamount="(?!num)"' \ -# "physicaldamagereduction=round(physicaldamagereduction*$bigmodifier, 2) -# stunresistance=round(stunresistance*$bigmodifier, 2) -# duration=round(duration*$bigmodifier, 0) -# durationv=duration" \ -# **/TalentsSecurity.xml -# modify '!num)"!anymaxstrength="(?!num)"!anyminresistance="(?!num)"!anymaxresistance="(?!num)"' \ -# "durationv=round(durationv*$bigmodifier, 0) -# durationv2=round(durationv2*$bigmodifier, 0) -# stunresistancev=round(stunresistancev*$bigmodifier, 2) -# stunresistancev2=round(stunresistancev2*$bigmodifier, 2)" \ -# **/AfflictionsSecurity.xml - -# Crusty Seaman - -# modify '!anyvalue="(?!num)"!anymultiplier="(?!num)"' \ -# "damagebonus=round(damagebonus*$bigmodifier, 2) -# damagebonusv=round(damagebonus/100, 2)" \ -# **/TalentsSecurity.xml - -# modify '!anyvalue="(?!num)"!anyvalue="(?!num)"' \ -# "powerincrease=round(powerincrease*$bigmodifier, 2) -# duration=round(duration*$bigmodifier, 0)" \ -# **/TalentsSecurity.xml -# modify '!num)"!anyvalue="(?!num)"' \ -# "durationv=round(durationv*$bigmodifier, 0) -# powerincreasev=round(powerincreasev*$bigmodifier, 2)" \ -# **/AfflictionsSecurity.xml - -# modify '!anyvalue="(?!num)"!anymultiplier="(?!num)"' \ -# "damagebonus=round(damagebonus*$bigmodifier, 2) -# damagebonusv=round(damagebonus/100, 2)" \ -# **/TalentsSecurity.xml - -# modify '!anyvalue="(?!num)"!anyvalue="(?!num)"!anymultiplier="(?!num)"!anyvalue="(?!num)"' \ -# "spreadreduction=round(spreadreduction*$bigmodifier, 2) -# powerincrease=round(powerincrease*$bigmodifier, 2) -# powerincreasev=round(powerincrease/100, 2) -# spreadreductionv=round(spreadreduction/100, 2)" \ -# **/TalentsSecurity.xml - -# modify '!anyvalue="(?!num)"' \ -# "damagebonus=round(damagebonus*$bigmodifier, 2)" \ -# **/TalentsSecurity.xml -# modify '!num)"' \ -# "damagebonusv=round(damagebonusv*$bigmodifier, 2)" \ -# **/AfflictionsSecurity.xml - -exit 0 - -# ---------------------------------------------------------- -# ---------------------------------------------------------- -# ---------------------------------------------------------- -# ---------------------------------------------------------- -# ---------------------------------------------------------- -# ---------------------------------------------------------- -# ---------------------------------------------------------- -# ---------------------------------------------------------- -# ---------------------------------------------------------- -# ---------------------------------------------------------- -# ---------------------------------------------------------- -# ---------------------------------------------------------- - -# Primary talents -modify '!anyvalue="(?!num)"!anymultiplyvalue="(?!num)"' \ -"xpbonus=round(xpbonus*$bigmodifier, 2) -xpbonusv=round(1+xpbonus/100, 2)" \ +modify '!anyvalue="(?!num)"!anyvalue!anyvalue="(?!num)"!anyvalue!anyvalue="(?!num)"!anymultiplier="(?!num)"' \ +"duration=round(duration*$bigmodifier, 2) +resistance=round(resistance*$bigmodifier, 2) +durationv=duration +resistancev=1-round(resistance/100, 2)" \ **/TalentsSecurity.xml - -modify '!anyvalue="(?!num)"!anyaddeddamagemultiplier="(?!num)"' \ -"damagebonus=round(damagebonus*$bigmodifier, 2) -damagebonusv=round(damagebonus/100, 2)" \ -**/TalentsSecurity.xml - -modify '!anyvalue="(?!num)"!anyvalue="(?!num)"' \ -"ammogain=round(ammogain*$bigmodifier, 2) -ammogainv=round(ammogain/100, 2)" \ -**/TalentsSecurity.xml - -# Frogman specialization -modify '!anyvalue="(?!num)"!anyaddeddamagemultiplier="(?!num)"' \ -"damagebonus=round(damagebonus*$bigmodifier, 2) -damagebonusv=round(damagebonus/100, 2)" \ -**/TalentsSecurity.xml - -# Enforcer specialization -modify '!anyvalue="(?!num)"!anymultiplier="(?!num)"' \ -"stunmultiplier=round(stunmultiplier*$bigmodifier, 2) -stunmultiplierv=round(stunmultiplier/100, 2)" \ -**/TalentsSecurity.xml - -modify '!anyvalue="(?!num)"!anymultiplier="(?!num)"' \ -"damageresistance=round(damageresistance*$bigmodifier, 2) -damageresistancev=round(1-damageresistance/100, 2)" \ -**/TalentsSecurity.xml - -# Gunner specialization -modify '!anyvalue="(?!num)"!anyaddeddamagemultiplier="(?!num)"' \ -"damagebonus=round(damagebonus*$bigmodifier, 2) -damagebonusv=round(damagebonus/100, 2)" \ -**/TalentsSecurity.xml - -modify '!anyvalue="(?!num)"!anyvalue="(?!num)"!anyvalue="(?!num)"!anyvalue="(?!num)"' \ +modify '!anyvalue="(?!num)"!anyvalue!anyvalue="(?!num)"!anyvalue="(?!num)"!anyvalue="(?!num)"' \ "skillbonus=round(skillbonus*$bigmodifier, 2) -fabricationbonus=round(fabricationbonus*$bigmodifier, 2) +potency=round(potency*$bigmodifier, 2) skillbonusv=skillbonus -fabricationbonusv=fabricationbonus" \ +potencyv=round(potency/100, 2)" \ **/TalentsSecurity.xml -modify '!anyvalue="(?!num)"!anyvalue="(?!num)"!anymultiplier="(?!num)"!anyaddeddamagemultiplier="(?!num)"' \ -"stunmultiplier=round(stunmultiplier*$bigmodifier, 2) -damagebonus=round(damagebonus*$bigmodifier, 2) -stunmultiplierv=round(stunmultiplier/100, 2) +modify '!anyvalue="(?!num)"!anyvalue!anyvalue="(?!num)"!anyvalue!anyvalue="(?!num)"!anymultiplier="(?!num)"' \ +"movementspeed=round(movementspeed*$bigmodifier, 2) +oxygenlowresistance=round(oxygenlowresistance*$bigmodifier, 2) +movementspeedv=round(movementspeed/100, 2) +oxygenlowresistancev=1-round(oxygenlowresistance/100, 2)" \ +**/TalentsSecurity.xml + +modify '!anyvalue="(?!num)"!anyvalue="(?!num)"!anymultiplyvalue="(?!num)"!anyaddedvalue="(?!num)"' \ +"xpbonus=round(xpbonus*$bigmodifier, 2) +xpbonusv=round(1+xpbonus/100, 2) +reputationbonus=round(reputationbonus*$bigmodifier, 2) +reputationbonusv=round(1+reputationbonus/100, 2)" \ +**/TalentsSecurity.xml + +modify '!anyvalue="(?!num)"!anyvalue!anyvalue="(?!num)"!anyvalue!anyvalue="(?!num)"!anyvalue="(?!num)"' \ +"maxhp=round(maxhp*$bigmodifier, 2) +meleepower=round(meleepower*$bigmodifier, 2) +maxhpv=round(maxhp/100, 2) +meleepowerv=round(meleepower/100, 2)" \ +**/TalentsSecurity.xml + +modify '!anyvalue="(?!num)"!anyvalue="(?!num)"!anyvalue="(?!num)"!anyminlevel="(?!num)"!anyvalue="(?!num)"!anymaxlevel="(?!num)"!anymultiplyvalue="(?!num)"' \ +"bonusxp=round(bonusxp*$bigmodifier, 2) +levelthreshold=round(levelthreshold*$bigmodifier, 0) +skillbonus=round(skillbonus*$bigmodifier, 2) +levelthresholdv=levelthreshold +skillbonusv=skillbonus +maxlevel=levelthreshold-1 +bonusxpv=round(1+bonusxp/100, 2)" \ +**/TalentsSecurity.xml + +modify '!anyvalue="(?!num)"!anyvalue="(?!num)"!anyvalue="(?!num)"!anyvalue="(?!num)"' \ +"money=round(money*$smallmodifier, 0) +xp=round(xp*$smallmodifier, 0) +moneymax=money*8 +xpmax=xp*8" \ +**/TalentsSecurity.xml + +modify '!anyvalue="(?!num)"!anyvalue!anyvalue="(?!num)"' \ +"qualitybonus=round(qualitybonus*$bigmodifier, 0) +qualitybonusv=qualitybonus" \ +**/TalentsSecurity.xml + +modify '!anyvalue="(?!num)"!anyrandomchance="(?!num)"!anyPerItem="(?!num)"' \ +"chance=round(chance*$bigmodifier, 2) +chancev=round(chance/100, 2) +chancev2=round(chancev2*$bigmodifier, 2)" \ +**/TalentsSecurity.xml + +modify '!anyvalue="(?!num)"!anyvalue="(?!num)"!anyaddeddamagemultiplier="(?!num)"!anyaddeddamagemultiplier="(?!num)"' \ +"attackpower=round(attackpower*$bigmodifier, 2) +attackpower2=round(attackpower2*$bigmodifier, 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)" \ +**/TalentsSecurity.xml + +modify '!anyvalue="(?!num)"!anyvalue!anyvalue="(?!num)"' \ +"swimmingspeed=round(swimmingspeed*$bigmodifier, 2) +swimmingspeedv=round(swimmingspeed/100, 2)" \ +**/TalentsSecurity.xml + +modify '!anyvalue="(?!num)"!anymultiplier="(?!num)"' \ +"resistance=round(resistance*$bigmodifier, 2) +resistancev=round(1-resistance/100, 2)" \ +**/TalentsSecurity.xml + +modify '!anyaddeddamagemultiplier="(?!num)"' \ +"addeddamagemultiplier=round(addeddamagemultiplier*$bigmodifier, 2)" \ +**/TalentsSecurity.xml + +modify '!anyvalue="(?!num)"!anyaddedmultiplier="(?!num)"!anyaddedmultiplier="(?!num)"' \ +"stunpower=round(stunpower*$bigmodifier, 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)" \ +**/TalentsSecurity.xml + +modify '!anyvalue="(?!num)"!anyvalue="(?!num)"!anyvalue="(?!num)"!anyamount="(?!num)"' \ +"physicaldamagereduction=round(physicaldamagereduction*$bigmodifier, 2) +stunresistance=round(stunresistance*$bigmodifier, 2) +duration=round(duration*$bigmodifier, 0) +durationv=duration" \ +**/TalentsSecurity.xml +modify '!num)"!anymaxstrength="(?!num)"!anyminresistance="(?!num)"!anymaxresistance="(?!num)"' \ +"durationv=round(durationv*$bigmodifier, 0) +durationv2=round(durationv2*$bigmodifier, 0) +stunresistancev=round(stunresistancev*$bigmodifier, 2) +stunresistancev2=round(stunresistancev2*$bigmodifier, 2)" \ +**/AfflictionsSecurity.xml + +Crusty Seaman + +modify '!anyvalue="(?!num)"!anymultiplier="(?!num)"' \ +"damagebonus=round(damagebonus*$bigmodifier, 2) damagebonusv=round(damagebonus/100, 2)" \ **/TalentsSecurity.xml + +modify '!anyvalue="(?!num)"!anyvalue="(?!num)"' \ +"powerincrease=round(powerincrease*$bigmodifier, 2) +duration=round(duration*$bigmodifier, 0)" \ +**/TalentsSecurity.xml +modify '!num)"!anyvalue="(?!num)"' \ +"durationv=round(durationv*$bigmodifier, 0) +powerincreasev=round(powerincreasev*$bigmodifier, 2)" \ +**/AfflictionsSecurity.xml + +modify '!anyvalue="(?!num)"!anymultiplier="(?!num)"' \ +"damagebonus=round(damagebonus*$bigmodifier, 2) +damagebonusv=round(damagebonus/100, 2)" \ +**/TalentsSecurity.xml + +modify '!anyvalue="(?!num)"!anyvalue="(?!num)"!anymultiplier="(?!num)"!anyvalue="(?!num)"' \ +"spreadreduction=round(spreadreduction*$bigmodifier, 2) +powerincrease=round(powerincrease*$bigmodifier, 2) +powerincreasev=round(powerincrease/100, 2) +spreadreductionv=round(spreadreduction/100, 2)" \ +**/TalentsSecurity.xml + +modify '!anyvalue="(?!num)"' \ +"damagebonus=round(damagebonus*$bigmodifier, 2)" \ +**/TalentsSecurity.xml +modify '!num)"' \ +"damagebonusv=round(damagebonusv*$bigmodifier, 2)" \ +**/AfflictionsSecurity.xml + +modify '!anyvalue="(?!num)"!anyvalue="(?!num)"!anyvalue="(?!num)"!anyvalue="(?!num)"!anyvalue="(?!num)"!anyvalue="(?!num)"' \ +"radius=round(radius*$bigmodifier*1.5, 2) +damagebonus=round(damagebonus*$bigmodifier, 2) +qualitybonus=round(qualitybonus*$bigmodifier, 0) +radiusv=round(radius/100, 2) +damagebonusv=round(damagebonus/100, 2) +qualitybonusv=qualitybonus" \ +**/TalentsSecurity.xml + +modify '!anyvalue="(?!num)"!anyvalue="(?!num)"!anyvalue="(?!num)"!anyvalue="(?!num)"' \ +"movementspeedcarry=round(movementspeedcarry*$bigmodifier, 2) +movementspeedaim=round(movementspeedaim*$bigmodifier, 2) +movementspeedaimv=round(movementspeedaim/100, 2) +movementspeedcarryv=round(movementspeedcarry/100, 2)" \ +**/TalentsSecurity.xml + +modify '!anyvalue="(?!num)"!anyvalue="(?!num)"!anymultiplier="(?!num)"!anyaddeddamagemultiplier="(?!num)"' \ +"damagebonus=round(damagebonus*$bigmodifier, 2) +damagebonusmax=round(damagebonus*5, 2) +damagebonusv=round(damagebonus/100, 2) +damagebonusmaxv=round(damagebonusmax/100, 2)" \ +**/TalentsSecurity.xml \ No newline at end of file