mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-25 02:04:44 +02:00
Changed Unarmed to start with a damage bonus
This commit is contained in:
@ -42,10 +42,10 @@ public class UnarmedCommand implements CommandExecutor {
|
||||
ticks++;
|
||||
}
|
||||
|
||||
int bonus = PP.getSkillLevel(SkillType.UNARMED)/50;
|
||||
int bonus = 3 + (PP.getSkillLevel(SkillType.UNARMED)/50);
|
||||
|
||||
if(bonus > 6)
|
||||
bonus = 6;
|
||||
if(bonus > 8)
|
||||
bonus = 8;
|
||||
|
||||
player.sendMessage(mcLocale.getString("m.SkillHeader", new Object[] { mcLocale.getString("m.SkillUnarmed") }));
|
||||
player.sendMessage(mcLocale.getString("m.XPGain", new Object[] { mcLocale.getString("m.XPGainUnarmed") }));
|
||||
|
@ -65,13 +65,13 @@ public class Unarmed {
|
||||
public static void unarmedBonus(Player attacker, EntityDamageByEntityEvent event)
|
||||
{
|
||||
PlayerProfile PPa = Users.getProfile(attacker);
|
||||
int bonus = 0;
|
||||
int bonus = 3;
|
||||
|
||||
//Add 1 DMG for every 50 skill levels
|
||||
bonus = PPa.getSkillLevel(SkillType.UNARMED)/50;
|
||||
bonus += PPa.getSkillLevel(SkillType.UNARMED)/50;
|
||||
|
||||
if(bonus > 6)
|
||||
bonus = 6;
|
||||
if(bonus > 8)
|
||||
bonus = 8;
|
||||
|
||||
event.setDamage(event.getDamage()+bonus);
|
||||
}
|
||||
|
Reference in New Issue
Block a user