It doesn't reduce the damage dealt by the affected monster as far as I can tell. I've placed a breakpoint and it actually executes the code, however, watk seems to be zero for every single call which doesn't make much sense to me. Am I doing something wrong? I did exactly the same thing STRIPWEAPON does...so if this isn't working wouldn't that mean that status is broken too?... I tested just in case and yes, divest doesn't seem to reduce the damage I take from spawned ghouls either.
Question
Seravy
I'm trying to change Signum Cruxis to reduce both atk and def of the targets.
I added to status_calc_watk :
if(sc->data[SC_STRIPWEAPON] && bl->type != BL_PC) watk -= watk * sc->data[SC_STRIPWEAPON]->val2/100; if (sc->data[SC_SIGNUMCRUCIS]) watk -= watk * sc->data[SC_SIGNUMCRUCIS]->val2/200;
and also added the SCB_WATK flag :
set_sc( AL_CRUCIS , SC_SIGNUMCRUCIS , EFST_CRUCIS, SCB_DEF|SCB_WATK );
It doesn't reduce the damage dealt by the affected monster as far as I can tell. I've placed a breakpoint and it actually executes the code, however, watk seems to be zero for every single call which doesn't make much sense to me. Am I doing something wrong? I did exactly the same thing STRIPWEAPON does...so if this isn't working wouldn't that mean that status is broken too?... I tested just in case and yes, divest doesn't seem to reduce the damage I take from spawned ghouls either.
Link to comment
Share on other sites
16 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.