ignore defense WSs

Post Reply
ciradan
Posts: 25
Joined: Fri Jul 27, 2012 7:47 pm

ignore defense WSs

Post by ciradan » Wed Dec 26, 2012 5:20 pm

The patch enables that the four WSs (Wheeling Thrust, One-inch Punch, Piercing Arrow and Split Shot) actually ignore part of the enemy's defense.

Considering WT there wasn't much information to be found. What seems to be certain is that 100% TP ignores 50% of the defense. I guessed that 200% would ignore 75% and 300% would ignore 100%.
If you don't like this guesswork just change the ignoredDef calculation in wheeling_thrust.lua to a flat 50%.
Attachments
ignore_def_WSs.patch
(5.66 KiB) Downloaded 396 times

Racsr
Posts: 10
Joined: Thu Dec 20, 2012 12:15 pm

Re: ignore defense WSs

Post by Racsr » Sat Dec 29, 2012 9:41 pm

Hey, nice patch. Thanks for sharing. :)

User avatar
whasf
Site Admin
Posts: 1312
Joined: Thu Jul 19, 2012 9:11 pm

Re: ignore defense WSs

Post by whasf » Sat Dec 29, 2012 9:57 pm

link this is yours :)
-- Whasf

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: ignore defense WSs

Post by kjLotus » Sun Dec 30, 2012 6:10 am

i don't know how safe your implementation would be in the context of many characters executing the scripts at the same time - i'm not sure how the lua is run by cpp and what kind of behaviour it exhibits (if lua's global vars are shared among everyone, there may be no guarantee that ignoredDef stays the same by the time it gets used in doPhysicalWeaponskill / doRangedWeaponskill)

i'm thinking we could condense canCrit/crit100/crit200/crit300/acc100/acc200/acc300 with ignoreDef (and something similar to crit100/200/300) into a table and use that as one param instead

ciradan
Posts: 25
Joined: Fri Jul 27, 2012 7:47 pm

Re: ignore defense WSs

Post by ciradan » Sun Dec 30, 2012 11:18 am

But aren't the ftp multiplier globals as well?
It's what it looked to me, so I thought implementing the ignored def like that wouldn't make too much problems.

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: ignore defense WSs

Post by kjLotus » Sun Dec 30, 2012 2:47 pm

ciradan wrote:But aren't the ftp multiplier globals as well?
It's what it looked to me, so I thought implementing the ignored def like that wouldn't make too much problems.
oh, guess i'll fix that too :D

i'll do the refactoring i mentioned before and include your patch in a bit

Post Reply