Change ignition to use Maths

This commit is contained in:
nossr50 2012-02-23 06:03:49 -08:00
parent 498e3eb35c
commit 66e0cc33bf

View File

@ -65,18 +65,11 @@ public class Archery
PlayerProfile PPa = Users.getProfile(attacker); PlayerProfile PPa = Users.getProfile(attacker);
if(Math.random() * 100 >= 75) if(Math.random() * 100 >= 75)
{ {
int ignition = 20; int ignition = 20;
if(PPa.getSkillLevel(SkillType.ARCHERY) >= 200) ignition += (PPa.getSkillLevel(SkillType.ARCHERY)/200)*20;
ignition+=20;
if(PPa.getSkillLevel(SkillType.ARCHERY) >= 400) if(ignition > 120)
ignition+=20; ignition = 120;
if(PPa.getSkillLevel(SkillType.ARCHERY) >= 600)
ignition+=20;
if(PPa.getSkillLevel(SkillType.ARCHERY) >= 800)
ignition+=20;
if(PPa.getSkillLevel(SkillType.ARCHERY) >= 1000)
ignition+=20;
if(x instanceof Player) if(x instanceof Player)
{ {