Reply to Re: Bug list/things I should fix
If you don't have an account, just leave the password field blank.
April 14th 2013, 01:08 PM
shevek
I'll check again to see what the problem could be.
One thing that probably shouldn't be a problem, but isn't right either:
I'm not sure what this function returns (I think 0), but the result is in any case that the touch damage is set to the value -1, not that it returns the value.
This probably isn't a problem, unless Dink touches the master before the first power boost spell (at which point the touch damage is set to a "normal" value). If Dink touches the master while touch damage is -1, I think the script gets aborted (but I'm not sure; there's no touch() procedure, so the script may also keep running.)
But I've also found the real problem, which is indeed a bracket. You're not closing the bracket for the resist-check, which means nothing happens if Dink is not resistant. Instead, you have an extra bracket for the if (&mana >= 3) check, which means that nothing more will happen if mana < 3.
One thing that probably shouldn't be a problem, but isn't right either:
int &dam = sp_touch_damage(¤t_sprite, -1);
I'm not sure what this function returns (I think 0), but the result is in any case that the touch damage is set to the value -1, not that it returns the value.
This probably isn't a problem, unless Dink touches the master before the first power boost spell (at which point the touch damage is set to a "normal" value). If Dink touches the master while touch damage is -1, I think the script gets aborted (but I'm not sure; there's no touch() procedure, so the script may also keep running.)
But I've also found the real problem, which is indeed a bracket. You're not closing the bracket for the resist-check, which means nothing happens if Dink is not resistant. Instead, you have an extra bracket for the if (&mana >= 3) check, which means that nothing more will happen if mana < 3.