Add in more debug.

This commit is contained in:
sigonasr2 2016-08-05 20:01:58 -05:00
parent d836f2977a
commit 271ae86959
5 changed files with 6 additions and 5 deletions

Binary file not shown.

View File

@ -1,6 +1,6 @@
name: TwosideKeeper name: TwosideKeeper
main: sig.plugin.TwosideKeeper.TwosideKeeper main: sig.plugin.TwosideKeeper.TwosideKeeper
version: 3.7.3cr6 version: 3.7.3cr7
commands: commands:
money: money:
description: Tells the player the amount of money they are holding. description: Tells the player the amount of money they are holding.

View File

@ -2560,7 +2560,7 @@ public class GenericFunctions {
if (Math.random() <= repairamt%1) { if (Math.random() <= repairamt%1) {
repairamt++; repairamt++;
} }
if (p.getLocation().getY()>=0 && p.getLocation().getBlock().getLightFromSky()==0) { if (p.getLocation().getY()>=0 && p.getLocation().getY()<=255 && p.getLocation().getBlock().getLightFromSky()==0) {
repairamt/=2.0d; repairamt/=2.0d;
//TwosideKeeper.log("In Darkness.",2); //TwosideKeeper.log("In Darkness.",2);
} }

View File

@ -192,6 +192,7 @@ public enum MonsterDifficulty {
} }
public List<ItemStack> RandomizeDrops(double dropmult, boolean isBoss, boolean isRanger) { public List<ItemStack> RandomizeDrops(double dropmult, boolean isBoss, boolean isRanger) {
TwosideKeeper.log(ChatColor.AQUA+"->Entering RandomizeDrops()", 1);
List<ItemStack> droplist = new ArrayList<ItemStack>(); List<ItemStack> droplist = new ArrayList<ItemStack>();
dropmult += 1; //Base dropmult is 1.0. dropmult += 1; //Base dropmult is 1.0.
if (Math.random() < dropmult % 1) if (Math.random() < dropmult % 1)
@ -276,9 +277,9 @@ public enum MonsterDifficulty {
randomness = Math.random(); randomness = Math.random();
TwosideKeeper.log(ChatColor.DARK_GREEN+" Randomness is "+randomness, 1); TwosideKeeper.log(ChatColor.DARK_GREEN+" Randomness is "+randomness, 1);
if (randomness<=0.6) { if (randomness<=0.6) {
TwosideKeeper.log(ChatColor.DARK_GREEN+" Spawn a Mysterious Essence!", 1);
switch (this) { switch (this) {
case NORMAL: case NORMAL:
TwosideKeeper.log(ChatColor.DARK_GREEN+" Spawn a Mysterious Essence!", 1);
droplist.add(sig.plugin.TwosideKeeper.Artifact.createArtifactItem(ArtifactItem.MYSTERIOUS_ESSENCE)); droplist.add(sig.plugin.TwosideKeeper.Artifact.createArtifactItem(ArtifactItem.MYSTERIOUS_ESSENCE));
break; break;
} }

View File

@ -703,12 +703,12 @@ public class TwosideKeeper extends JavaPlugin implements Listener {
}*/ }*/
for (int i3=0;i3<p.getEquipment().getArmorContents().length;i3++) { for (int i3=0;i3<p.getEquipment().getArmorContents().length;i3++) {
if (ArtifactAbility.containsEnchantment(ArtifactAbility.SHADOWWALKER, p.getEquipment().getArmorContents()[i3]) && if (ArtifactAbility.containsEnchantment(ArtifactAbility.SHADOWWALKER, p.getEquipment().getArmorContents()[i3]) &&
p.isOnGround() && p.getLocation().getY()>=0 && p.getLocation().add(0,0,0).getBlock().getLightLevel()<=4) { p.isOnGround() && p.getLocation().getY()>=0 && p.getLocation().getY()<=255 && p.getLocation().add(0,0,0).getBlock().getLightLevel()<=4) {
p.addPotionEffect(new PotionEffect(PotionEffectType.SPEED,20,1)); p.addPotionEffect(new PotionEffect(PotionEffectType.SPEED,20,1));
} }
} }
if (ArtifactAbility.containsEnchantment(ArtifactAbility.SHADOWWALKER, p.getEquipment().getItemInMainHand()) && if (ArtifactAbility.containsEnchantment(ArtifactAbility.SHADOWWALKER, p.getEquipment().getItemInMainHand()) &&
p.isOnGround() && p.getLocation().getY()>=0 && p.getLocation().add(0,0,0).getBlock().getLightLevel()<=4) { p.isOnGround() && p.getLocation().getY()>=0 && p.getLocation().getY()<=255 && p.getLocation().add(0,0,0).getBlock().getLightLevel()<=4) {
p.addPotionEffect(new PotionEffect(PotionEffectType.SPEED,20,1)); p.addPotionEffect(new PotionEffect(PotionEffectType.SPEED,20,1));
//log("Apply speed. The light level here is "+p.getLocation().add(0,-1,0).getBlock().getLightLevel(),2); //log("Apply speed. The light level here is "+p.getLocation().add(0,-1,0).getBlock().getLightLevel(),2);
} }