Rune spells
This is a really simple code structure.
First, put: Code:
Then: Code:
rune = 0; Then, put this into ChangeHP() in attack.cpp: Code:
int16 ramt = GetRune(); Code:
int16 ramt = GetRune(); Code:
SetRune(CalcSpellValue(spells[spell_id].formula[i], spells[spell_id].base[i], spells[spell_id].max[i], caster_level)); |
OMG this code has so many problems i cant even start to think about it
did you actually test this?? |
Yes, it works fine. What problems do you refer to?
|
well ok, actually its just one thing
in case you dont have any special code for damage calculation that you didnt post, the rune buff icon will almost never fade when expired by hitting. except in the few cases where damage equals exactly the amount of rune hp left the line should read Code:
if (ramt <= 0) |
Does it properly say that the person absorbs the damage tho?
|
Yeah, that's what damage = -6 is for. It says "Your magical skin absorbs the blow!"
And you're right neo. Fixing that. I actually just forgot a ramt = 0; when adapting the code. |
All times are GMT -4. The time now is 11:46 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.