Implementing Poison in Stendhal: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>Richgar
imported>Richgar
Changed the values for axes and swords in the equation. They seemed a bit low.
Line 65: Line 65:
* I came up with an equation for calculating infliction chance for poison.
* I came up with an equation for calculating infliction chance for poison.
'''[1-0.625/(Weapon*Poison)]*√(Weapon/6)*[DamageTaken/DefenderHP-(DamageTaken/DefenderHP)^2]^(1/15)''' where the Weapon and Poison values are:
'''[1-0.625/(Weapon*Poison)]*√(Weapon/6)*[DamageTaken/DefenderHP-(DamageTaken/DefenderHP)^2]^(1/15)''' where the Weapon and Poison values are:
'''Club 1.25; Axe 2; Sword 3; Arrow 6; Dagger 7; || Regular Poison 0.5; Greater 1.5; Deadly 2.5; Disease 4; Mega 9;'''
'''Club 1.25; Axe 3; Sword 4.5; Arrow 6; Dagger 7; || Regular Poison 0.5; Greater 1.5; Deadly 2.5; Disease 4; Mega 9;'''
The weapon values are based on the weapon's penetration and the poison values are based on the approximate strength. Regular poison is ineffective on club type weapons and all poisons are most effective with daggers. DamageTaken is the damage the defender takes from the melee hit (taken). DefenderHP is the health of the defender before the hit (similar to tempHP). The second part in brackets represents a downward parabola. So if no damage is taken, i.e. miss or block, or if the enemy is killed in one strike, there is no chance of inflicting poison. The greatest chance of inflicting poison is by using a dagger with mega poison and inflicting a devastating wound that halves the enemy's hp. - Richgar
The weapon values are based on the weapon's penetration and the poison values are based on the approximate strength. Regular poison is ineffective on club type weapons and all poisons are most effective with daggers. DamageTaken is the damage the defender takes from the melee hit (taken). DefenderHP is the health of the defender before the hit (similar to tempHP). The second part in brackets represents a downward parabola. So if no damage is taken, i.e. miss or block, or if the enemy is killed in one strike, there is no chance of inflicting poison. The greatest chance of inflicting poison is by using a dagger with mega poison and inflicting a devastating wound that halves the enemy's hp. - Richgar