Changed Unarmed to start with a damage bonus

This commit is contained in:
nossr50 2012-02-23 10:23:04 -08:00
parent 85640f88b2
commit 336adf9530
3 changed files with 10 additions and 8 deletions

View File

@ -25,7 +25,9 @@ Version 1.3.00-dev
= Prettied up new config files = Prettied up new config files
! Changed mcMMO user information to be stored for 2 minutes after log out to reduce lag on rejoins ! Changed mcMMO user information to be stored for 2 minutes after log out to reduce lag on rejoins
! Changed the name of Unarmed Apprentice/Mastery to Iron Arm Style ! Changed the name of Unarmed Apprentice/Mastery to Iron Arm Style
! Changed Unarmed to gain bonus damage every 50 skill levels, capping out at what Unarmed Mastery was before ! Changed Unarmed to start with a +3 DMG bonus from Iron Arm Style to make leveling it more viable
! Changed Unarmed to gain bonus damage every 50 skill levels
! Changed Unarmed to gain more bonus damage total than before
! Changed Tree Feller to take down entire trees ! Changed Tree Feller to take down entire trees
! Changed mob spawn tracking to use Unique Entity ID instead of Entity Object ! Changed mob spawn tracking to use Unique Entity ID instead of Entity Object
! Changed stats command name to mcstats for better plugin compatibility ! Changed stats command name to mcstats for better plugin compatibility

View File

@ -42,10 +42,10 @@ public class UnarmedCommand implements CommandExecutor {
ticks++; ticks++;
} }
int bonus = PP.getSkillLevel(SkillType.UNARMED)/50; int bonus = 3 + (PP.getSkillLevel(SkillType.UNARMED)/50);
if(bonus > 6) if(bonus > 8)
bonus = 6; bonus = 8;
player.sendMessage(mcLocale.getString("m.SkillHeader", new Object[] { mcLocale.getString("m.SkillUnarmed") })); player.sendMessage(mcLocale.getString("m.SkillHeader", new Object[] { mcLocale.getString("m.SkillUnarmed") }));
player.sendMessage(mcLocale.getString("m.XPGain", new Object[] { mcLocale.getString("m.XPGainUnarmed") })); player.sendMessage(mcLocale.getString("m.XPGain", new Object[] { mcLocale.getString("m.XPGainUnarmed") }));

View File

@ -65,13 +65,13 @@ public class Unarmed {
public static void unarmedBonus(Player attacker, EntityDamageByEntityEvent event) public static void unarmedBonus(Player attacker, EntityDamageByEntityEvent event)
{ {
PlayerProfile PPa = Users.getProfile(attacker); PlayerProfile PPa = Users.getProfile(attacker);
int bonus = 0; int bonus = 3;
//Add 1 DMG for every 50 skill levels //Add 1 DMG for every 50 skill levels
bonus = PPa.getSkillLevel(SkillType.UNARMED)/50; bonus += PPa.getSkillLevel(SkillType.UNARMED)/50;
if(bonus > 6) if(bonus > 8)
bonus = 6; bonus = 8;
event.setDamage(event.getDamage()+bonus); event.setDamage(event.getDamage()+bonus);
} }