Page 1 of 1

Change to SpellProcess.h and SpellProcess.cpp

Posted: Fri Dec 05, 2008 2:20 pm
by Scatman
Hey LE, John and I were testing out some spells he made the other day and came to one that required and also took HP away from the caster as well as power. We realized we could do this with the hp_req field but noticed there wasn't any support yet in SpellProcess.cpp. I told John I'd take a look at it and I added two new functions and added them where they go. We tested it out on John's dev server and everything was fine. Here are the diffs. Let me know if there's anything you don't like about it.

Posted: Fri Dec 05, 2008 3:31 pm
by LethalEncounter
Looks like the diff file got messed up somehow but I think I have your changes merged into the baseline. Great work :)

Posted: Fri Dec 05, 2008 3:33 pm
by John Adams
Oop, that might have been my fault. I pasted his changes to my code and did a diff off 169. The only custom code I have is in Commands.cpp for the /level cap... but yeah it's a pretty easy read. I'm sure you got it. :)