Add debug to if statements.
This commit is contained in:
parent
9caa25538c
commit
a26c3d127e
Binary file not shown.
@ -1,6 +1,6 @@
|
|||||||
name: TwosideKeeper
|
name: TwosideKeeper
|
||||||
main: sig.plugin.TwosideKeeper.TwosideKeeper
|
main: sig.plugin.TwosideKeeper.TwosideKeeper
|
||||||
version: 3.7.3cr8
|
version: 3.7.3cr9
|
||||||
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.
|
||||||
|
@ -208,6 +208,7 @@ public enum MonsterDifficulty {
|
|||||||
//First do a common roll.
|
//First do a common roll.
|
||||||
if (Math.random()<TwosideKeeper.COMMON_DROP_RATE &&
|
if (Math.random()<TwosideKeeper.COMMON_DROP_RATE &&
|
||||||
this.loot_regular.length>0) {
|
this.loot_regular.length>0) {
|
||||||
|
TwosideKeeper.log(">Attempting Common roll.", 1);
|
||||||
//This is a common roll.
|
//This is a common roll.
|
||||||
ItemStack gen_loot = DistributeRandomLoot(this.loot_regular, isRanger);
|
ItemStack gen_loot = DistributeRandomLoot(this.loot_regular, isRanger);
|
||||||
TwosideKeeper.log("Adding "+gen_loot.toString()+" to loot table.", 4);
|
TwosideKeeper.log("Adding "+gen_loot.toString()+" to loot table.", 4);
|
||||||
@ -217,6 +218,7 @@ public enum MonsterDifficulty {
|
|||||||
//Rare Loot roll.
|
//Rare Loot roll.
|
||||||
if (Math.random()<TwosideKeeper.RARE_DROP_RATE &&
|
if (Math.random()<TwosideKeeper.RARE_DROP_RATE &&
|
||||||
this.loot_rare.length>0) {
|
this.loot_rare.length>0) {
|
||||||
|
TwosideKeeper.log(">Attempting Rare roll.", 1);
|
||||||
//This is a common roll.
|
//This is a common roll.
|
||||||
ItemStack gen_loot = DistributeRandomLoot(this.loot_rare, isRanger);
|
ItemStack gen_loot = DistributeRandomLoot(this.loot_rare, isRanger);
|
||||||
TwosideKeeper.log("Adding "+gen_loot.toString()+" to loot table.", 4);
|
TwosideKeeper.log("Adding "+gen_loot.toString()+" to loot table.", 4);
|
||||||
@ -248,6 +250,7 @@ public enum MonsterDifficulty {
|
|||||||
//Legendary Loot roll.
|
//Legendary Loot roll.
|
||||||
if (Math.random()<TwosideKeeper.LEGENDARY_DROP_RATE &&
|
if (Math.random()<TwosideKeeper.LEGENDARY_DROP_RATE &&
|
||||||
this.loot_legendary.length>0) {
|
this.loot_legendary.length>0) {
|
||||||
|
TwosideKeeper.log(">Attempting Legendary roll.", 1);
|
||||||
//This is a common roll.
|
//This is a common roll.
|
||||||
ItemStack gen_loot = DistributeRandomLoot(this.loot_legendary, isRanger);
|
ItemStack gen_loot = DistributeRandomLoot(this.loot_legendary, isRanger);
|
||||||
TwosideKeeper.log("Adding "+gen_loot.toString()+" to loot table.", 4);
|
TwosideKeeper.log("Adding "+gen_loot.toString()+" to loot table.", 4);
|
||||||
@ -277,7 +280,7 @@ 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) {
|
||||||
switch (this) {
|
switch (this) {
|
||||||
case NORMAL:
|
case NORMAL:
|
||||||
TwosideKeeper.log(ChatColor.DARK_GREEN+" Spawn a Mysterious Essence!", 1);
|
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));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user