[wpdev-commits] xmlscripts/scripts/combat aos.py,1.16,1.17
Brought to you by:
rip,
thiagocorrea
From: Sebastian H. <dar...@us...> - 2004-09-19 20:39:55
|
Update of /cvsroot/wpdev/xmlscripts/scripts/combat In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32166/combat Modified Files: aos.py Log Message: implemented hit and defense boni for weapons and stuff Index: aos.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/combat/aos.py,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** aos.py 5 Sep 2004 21:02:54 -0000 1.16 --- aos.py 19 Sep 2004 20:39:46 -0000 1.17 *************** *** 86,94 **** # Calculate the hit chance bonus = 0 # Get the weapon "accuracy" status ! bonus += 0 # Get the attackers AttackChance bonus attackChance = (attackerValue + 20.0) * (100 + bonus) # Calculate the defense chance ! bonus = 0 # Get the defenders defend chance defendChance = (defenderValue + 20.0) * (100 + bonus) --- 86,94 ---- # Calculate the hit chance bonus = 0 # Get the weapon "accuracy" status ! bonus += properties.fromchar(attacker, HITBONUS) # Get the attackers AttackChance bonus attackChance = (attackerValue + 20.0) * (100 + bonus) # Calculate the defense chance ! bonus = properties.fromchar(defender, DEFENSEBONUS) # Get the defenders defend chance defendChance = (defenderValue + 20.0) * (100 + bonus) |