Misc formatting. Clarifying something in changelog.

This commit is contained in:
nossr50 2012-02-24 07:19:55 -08:00
parent 3ff9a28fa7
commit 1c4275ce37
3 changed files with 7 additions and 1 deletions

View File

@ -34,7 +34,7 @@ Version 1.3.00-dev
! Changed default values of Woodcutting XP tables ! Changed default values of Woodcutting XP tables
! Changed 'Pine' to be renamed 'Oak' in Woodcutting XP tables ! Changed 'Pine' to be renamed 'Oak' in Woodcutting XP tables
! 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 start with a +3 DMG bonus from Iron Arm Style to make leveling it more viable ! Changed Unarmed to start with a +3 DMG (1 Heart = 2 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 bonus damage every 50 skill levels
! Changed Unarmed to gain more bonus damage total than before ! 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

View File

@ -184,16 +184,19 @@ public class m
for(int i = 0; i < quantity; i++) for(int i = 0; i < quantity; i++)
mcDropItem(location, is); mcDropItem(location, is);
} }
public static void mcRandomDropItem(Location location, ItemStack is, int chance) public static void mcRandomDropItem(Location location, ItemStack is, int chance)
{ {
if(Math.random() * 100 < chance) if(Math.random() * 100 < chance)
mcDropItem(location, is); mcDropItem(location, is);
} }
public static void mcRandomDropItems(Location location, ItemStack is, int chance, int quantity) public static void mcRandomDropItems(Location location, ItemStack is, int chance, int quantity)
{ {
for(int i = 0; i < quantity; i++) for(int i = 0; i < quantity; i++)
mcRandomDropItem(location, is, chance); mcRandomDropItem(location, is, chance);
} }
public static void mcDropItem(Location location, ItemStack itemStack) { public static void mcDropItem(Location location, ItemStack itemStack) {
// We can't get the item until we spawn it and we want to make it cancellable, so we have a custom event. // We can't get the item until we spawn it and we want to make it cancellable, so we have a custom event.
McMMOItemSpawnEvent event = new McMMOItemSpawnEvent(location, itemStack); McMMOItemSpawnEvent event = new McMMOItemSpawnEvent(location, itemStack);

View File

@ -39,12 +39,15 @@ public class Acrobatics {
if(Math.random() * 1000 <= acrovar && !event.isCancelled()) if(Math.random() * 1000 <= acrovar && !event.isCancelled())
{ {
int threshold = 7; int threshold = 7;
if(player.isSneaking()) if(player.isSneaking())
threshold = 14; threshold = 14;
int newDamage = event.getDamage() - threshold; int newDamage = event.getDamage() - threshold;
if(newDamage < 0) if(newDamage < 0)
newDamage = 0; newDamage = 0;
/* /*
* Check for death * Check for death
*/ */