GX Poison 100% Chance Effect

Oh hai. I am looking into removing the minimum 5% chance. What I had before was this:

case SC_OBLIVIONCURSE: // 100% - (100 - 0.8 x INT) sc_def = 100 - ( 100 - st->int_* 8 / 10 ); sc_def = max(sc_def, 5); // minimum of 5% break;
Then I removed the third line and I got this:

case SC_OBLIVIONCURSE: // 100% - (100 - 0.8 x INT) sc_def = 100 - ( 100 - st->int_* 8 / 10 ); break;
I am using a character with over 170 int and still get inflicted. Does anything else have to be edited?

Also, I am looking into reducing the duration of all GX poisons, but I've no idea which section to edit.

*edit*

It seems the src is broken, using the code that kerbii provided made it work properly.

 
Last edited by a moderator:
Oh hai. I am looking into removing the minimum 5% chance. What I had before was this:

case SC_OBLIVIONCURSE: // 100% - (100 - 0.8 x INT) sc_def = 100 - ( 100 - st->int_* 8 / 10 ); sc_def = max(sc_def, 5); // minimum of 5% break;
Then I removed the third line and I got this:

case SC_OBLIVIONCURSE: // 100% - (100 - 0.8 x INT) sc_def = 100 - ( 100 - st->int_* 8 / 10 ); break;
I am using a character with over 170 int and still get inflicted. Does anything else have to be edited?

Also, I am looking into reducing the duration of all GX poisons, but I've no idea which section to edit.

*edit*

It seems the src is broken, using the code that kerbii provided made it work properly.
read the above post its already posted there

 
I think this topic should be better in Source requests since we're mainly speaking about source here. Moving!

 
Back
Top