mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
Change ignition to use Maths
This commit is contained in:
parent
498e3eb35c
commit
66e0cc33bf
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user