Page 1 of 1

Shield Mastery

Posted: Wed Apr 30, 2014 2:57 pm
by Jupiter065
Hi all, first time contributor. I was playing Paladin yesterday and I noticed that Shield Mastery wasn't working. Rather than just complaining about it, I decided to try to implement it, so I did!

I've updated modifiers.h and added a new mod, MOD_SHIELD_MASTERY_TP (485), whose value is the bonus TP granted by Shield Mastery.
I've updated traits.sql and modified the entries for Shield Mastery to use the above mod.
I've modified battleutils.cpp to check for Shield Mastery and a shield block before trying to interrupt spells, and to grant bonus TP on a shield block with shield mastery based on the MOD_SHIELD_MASTERY_TP mod value (providing the unblocked damage, i.e. the damage before blocking but after stoneskin/phalanx would be greater than 0).

I look forward to any feedback and to trying it out on the test server!

Re: Shield Mastery

Posted: Wed Apr 30, 2014 3:02 pm
by kjLotus
i see you had a pull request and closed it, contributions have to be done via pull request now :)

Re: Shield Mastery

Posted: Wed Apr 30, 2014 3:03 pm
by Jupiter065
Ok, I'll do up another one.