[wpdev-commits] xmlscripts/scripts/combat aos.py,1.21,1.22
Brought to you by:
rip,
thiagocorrea
From: Sebastian H. <dar...@us...> - 2004-10-04 15:02:45
|
Update of /cvsroot/wpdev/xmlscripts/scripts/combat In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10341/combat Modified Files: aos.py Log Message: damage fix for combat Index: aos.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/combat/aos.py,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** aos.py 1 Oct 2004 10:44:31 -0000 1.21 --- aos.py 4 Oct 2004 15:02:17 -0000 1.22 *************** *** 124,129 **** bonus += 10 ! # Only players get strength boni ! if not char.npc: # Strength bonus bonus += char.strength * 0.3 --- 124,129 ---- bonus += 10 ! # Only players get strength boni (or human npcs!) ! if not char.npc or weapon: # Strength bonus bonus += char.strength * 0.3 *************** *** 133,149 **** bonus += 5 ! # Anatomy bonus ! bonus += char.skill[ANATOMY] * 0.05 ! ! # Grant another 5 percent for anatomy grandmasters ! if char.skill[ANATOMY] >= 1000: ! bonus += 5 ! ! # Tactics bonus ! bonus += char.skill[TACTICS] * 0.0625 ! # Add another 6.25 percent for grandmasters ! if char.skill[TACTICS] >= 1000: ! bonus += 6.25 damage = damage + damage * bonus / 100.0 --- 133,149 ---- bonus += 5 ! # Anatomy bonus ! bonus += char.skill[ANATOMY] * 0.05 ! ! # Grant another 5 percent for anatomy grandmasters ! if char.skill[ANATOMY] >= 1000: ! bonus += 5 ! # Tactics bonus ! bonus += char.skill[TACTICS] * 0.0625 ! ! # Add another 6.25 percent for grandmasters ! if char.skill[TACTICS] >= 1000: ! bonus += 6.25 damage = damage + damage * bonus / 100.0 |