Browse Source

Changed Unarmed to start with a damage bonus

nossr50 13 years ago
parent
commit
336adf9530

+ 3 - 1
Changelog.txt

@@ -25,7 +25,9 @@ Version 1.3.00-dev
  = Prettied up new config files
  ! 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 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 mob spawn tracking to use Unique Entity ID instead of Entity Object
  ! Changed stats command name to mcstats for better plugin compatibility

+ 3 - 3
src/main/java/com/gmail/nossr50/commands/skills/UnarmedCommand.java

@@ -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") }));

+ 4 - 4
src/main/java/com/gmail/nossr50/skills/Unarmed.java

@@ -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);
 	}