Output Mysterious Essence chance. And remove mob vs mob messages.
This commit is contained in:
parent
8b6b35387c
commit
b03b64125e
Binary file not shown.
@ -2627,13 +2627,14 @@ public class GenericFunctions {
|
|||||||
}
|
}
|
||||||
aPlugin.API.sendEntityHurtAnimation(target);
|
aPlugin.API.sendEntityHurtAnimation(target);
|
||||||
TwosideKeeper.log("Call event with "+dmg, 5);
|
TwosideKeeper.log("Call event with "+dmg, 5);
|
||||||
if (damager!=null) {
|
LivingEntity shooter = NewCombat.getDamagerEntity(damager);
|
||||||
if (!(damager instanceof Monster) || !(target instanceof Monster)) {
|
if (shooter!=null) {
|
||||||
TwosideKeeper.log(GenericFunctions.GetEntityDisplayName(damager)+"->"+
|
if (!(shooter instanceof Monster) || !(target instanceof Monster)) {
|
||||||
|
TwosideKeeper.log(GenericFunctions.GetEntityDisplayName(shooter)+"->"+
|
||||||
GenericFunctions.GetEntityDisplayName(target)+ChatColor.WHITE+": Damage dealt was "+dmg,2);
|
GenericFunctions.GetEntityDisplayName(target)+ChatColor.WHITE+": Damage dealt was "+dmg,2);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!(damager instanceof Monster) || !(target instanceof Monster)) {
|
if (!(target instanceof Monster)) {
|
||||||
TwosideKeeper.log(reason+"->"+
|
TwosideKeeper.log(reason+"->"+
|
||||||
GenericFunctions.GetEntityDisplayName(target)+ChatColor.WHITE+": Damage dealt was "+dmg,2);
|
GenericFunctions.GetEntityDisplayName(target)+ChatColor.WHITE+": Damage dealt was "+dmg,2);
|
||||||
}
|
}
|
||||||
|
@ -254,7 +254,7 @@ public enum MonsterDifficulty {
|
|||||||
double randomness = Math.random();
|
double randomness = Math.random();
|
||||||
TwosideKeeper.log(ChatColor.DARK_GREEN+" Randomness is "+randomness, 3);
|
TwosideKeeper.log(ChatColor.DARK_GREEN+" Randomness is "+randomness, 3);
|
||||||
if (randomness<=0.2) {
|
if (randomness<=0.2) {
|
||||||
TwosideKeeper.log(ChatColor.DARK_GREEN+" Spawn a core!", 3);
|
TwosideKeeper.log(ChatColor.DARK_GREEN+" Spawn a Core!", 3);
|
||||||
switch (this) {
|
switch (this) {
|
||||||
case DANGEROUS:
|
case DANGEROUS:
|
||||||
droplist.add(sig.plugin.TwosideKeeper.Artifact.createArtifactItem(ArtifactItem.ANCIENT_CORE));
|
droplist.add(sig.plugin.TwosideKeeper.Artifact.createArtifactItem(ArtifactItem.ANCIENT_CORE));
|
||||||
@ -273,7 +273,10 @@ public enum MonsterDifficulty {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Math.random()<=0.6) {
|
randomness = Math.random();
|
||||||
|
TwosideKeeper.log(ChatColor.DARK_GREEN+" Randomness is "+randomness, 3);
|
||||||
|
if (randomness<=0.6) {
|
||||||
|
TwosideKeeper.log(ChatColor.DARK_GREEN+" Spawn a Mysterious Essence!", 3);
|
||||||
switch (this) {
|
switch (this) {
|
||||||
case NORMAL:
|
case NORMAL:
|
||||||
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