From 66e0cc33bff21b4b6d4d0f862cfb203df136b2ce Mon Sep 17 00:00:00 2001 From: nossr50 Date: Thu, 23 Feb 2012 06:03:49 -0800 Subject: [PATCH] Change ignition to use Maths --- .../java/com/gmail/nossr50/skills/Archery.java | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/skills/Archery.java b/src/main/java/com/gmail/nossr50/skills/Archery.java index 8f5e0bd6d..4b7a2bd0e 100644 --- a/src/main/java/com/gmail/nossr50/skills/Archery.java +++ b/src/main/java/com/gmail/nossr50/skills/Archery.java @@ -65,18 +65,11 @@ public class Archery PlayerProfile PPa = Users.getProfile(attacker); if(Math.random() * 100 >= 75) { + int ignition = 20; + ignition += (PPa.getSkillLevel(SkillType.ARCHERY)/200)*20; - int ignition = 20; - if(PPa.getSkillLevel(SkillType.ARCHERY) >= 200) - ignition+=20; - if(PPa.getSkillLevel(SkillType.ARCHERY) >= 400) - ignition+=20; - 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(ignition > 120) + ignition = 120; if(x instanceof Player) {