mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-27 03:04:44 +02:00
Changed Unarmed to start with a damage bonus
This commit is contained in:
@ -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