[wpdev-commits] wolfpack/ai ai_mage.cpp,1.2,1.3
Brought to you by:
rip,
thiagocorrea
From: Sebastian H. <dar...@us...> - 2004-10-16 19:09:23
|
Update of /cvsroot/wpdev/wolfpack/ai In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13030/ai Modified Files: ai_mage.cpp Log Message: fixes Index: ai_mage.cpp =================================================================== RCS file: /cvsroot/wpdev/wolfpack/ai/ai_mage.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ai_mage.cpp 16 Oct 2004 18:28:05 -0000 1.2 --- ai_mage.cpp 16 Oct 2004 19:09:14 -0000 1.3 *************** *** 174,178 **** */ int getRandomHarmfulSpell() { ! static const mageryPerCircle = (1000.0 / 7.0); unsigned char maxCircle = QMIN(8, QMAX(1, (unsigned char)((m_npc->skillValue(MAGERY) + 200) / mageryPerCircle))); int selected = RandomNum(1, maxCircle * 2) - 1; // Select a random spell --- 174,178 ---- */ int getRandomHarmfulSpell() { ! static const float mageryPerCircle = (1000.0 / 7.0); unsigned char maxCircle = QMIN(8, QMAX(1, (unsigned char)((m_npc->skillValue(MAGERY) + 200) / mageryPerCircle))); int selected = RandomNum(1, maxCircle * 2) - 1; // Select a random spell |