The Dink Network

Reply to Re: Bug list/things I should fix

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
April 14th 2013, 01:08 PM
anon.gif
shevek
Ghost They/Them
 
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:

int &dam = sp_touch_damage(&current_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.