diff --git a/TwosideKeeper.jar b/TwosideKeeper.jar index f67336e..ead5a78 100644 Binary files a/TwosideKeeper.jar and b/TwosideKeeper.jar differ diff --git a/src/sig/plugin/TwosideKeeper/HelperStructures/Loot.java b/src/sig/plugin/TwosideKeeper/HelperStructures/Loot.java index cc17369..64aff55 100644 --- a/src/sig/plugin/TwosideKeeper/HelperStructures/Loot.java +++ b/src/sig/plugin/TwosideKeeper/HelperStructures/Loot.java @@ -194,7 +194,7 @@ public class Loot { aPlugin.API.Chests.LOOT_CUSTOM_5.addDrop(new SigDrop(1,5,"[Leader Wither] Hardened Tool",SigDrop.HARDENED,SigDrop.SET,SigDrop.TOOL,LivingEntityDifficulty.DANGEROUS)); aPlugin.API.Chests.LOOT_CUSTOM_5.addDrop(new DropItem(aPlugin.API.getChestItem(Chests.ELITE),5)); aPlugin.API.Chests.LOOT_CUSTOM_5.addDrop(new DropItem(Christmas.getChristmasBox(),5)); - aPlugin.API.Chests.LOOT_CUSTOM_5.setProbability(0.2); + aPlugin.API.Chests.LOOT_CUSTOM_5.setProbability(0.8); aPlugin.API.Chests.LOOT_CUSTOM_5.printDrops(); //aPlugin.API.Chests..addDrop(new DropItem(TwosideKeeper.HUNTERS_COMPASS.getItemStack(),10)); diff --git a/src/sig/plugin/TwosideKeeper/Monster/Wither.java b/src/sig/plugin/TwosideKeeper/Monster/Wither.java index f2efc85..01a5d35 100644 --- a/src/sig/plugin/TwosideKeeper/Monster/Wither.java +++ b/src/sig/plugin/TwosideKeeper/Monster/Wither.java @@ -39,6 +39,10 @@ public class Wither extends CustomMonster{ this.lastSkullShot=TwosideKeeper.getServerTickTime(); } + public List getActiveParticipants() { + return activeplayers; + } + public long getLastSkullShot() { return lastSkullShot; } diff --git a/src/sig/plugin/TwosideKeeper/TwosideKeeper.java b/src/sig/plugin/TwosideKeeper/TwosideKeeper.java index b762da8..d9598ad 100644 --- a/src/sig/plugin/TwosideKeeper/TwosideKeeper.java +++ b/src/sig/plugin/TwosideKeeper/TwosideKeeper.java @@ -6464,19 +6464,31 @@ public class TwosideKeeper extends JavaPlugin implements Listener { GenericFunctions.spawnXP(m.getLocation().add(5,0,-5), 25000); //Spawn 8 chests at different quadrants. - - AttemptToPlaceChest(m.getLocation(),-1,-1,-1,aPlugin.API.Chests.LOOT_CUSTOM_5); + + AttemptToPlaceChest(m.getLocation(),1,1,1,aPlugin.API.Chests.LOOT_CUSTOM_5); AttemptToPlaceChest(m.getLocation(),1,-1,-1,aPlugin.API.Chests.LOOT_CUSTOM_5); + /* + AttemptToPlaceChest(m.getLocation(),-1,-1,-1,aPlugin.API.Chests.LOOT_CUSTOM_5); AttemptToPlaceChest(m.getLocation(),1,-1,1,aPlugin.API.Chests.LOOT_CUSTOM_5); AttemptToPlaceChest(m.getLocation(),-1,-1,1,aPlugin.API.Chests.LOOT_CUSTOM_5); AttemptToPlaceChest(m.getLocation(),-1,1,-1,aPlugin.API.Chests.LOOT_CUSTOM_5); AttemptToPlaceChest(m.getLocation(),-1,1,1,aPlugin.API.Chests.LOOT_CUSTOM_5); - AttemptToPlaceChest(m.getLocation(),1,1,-1,aPlugin.API.Chests.LOOT_CUSTOM_5); - AttemptToPlaceChest(m.getLocation(),1,1,1,aPlugin.API.Chests.LOOT_CUSTOM_5); + AttemptToPlaceChest(m.getLocation(),1,1,-1,aPlugin.API.Chests.LOOT_CUSTOM_5);*/ + + double chance_to_place_reward_chest = 0.0; for (UUID id : custommonsters.keySet()) { if (id.equals(m.getUniqueId())) { sig.plugin.TwosideKeeper.Monster.Wither w = (sig.plugin.TwosideKeeper.Monster.Wither)custommonsters.get(id); + chance_to_place_reward_chest = (w.getActiveParticipants().size()-2)*(1/6d); + Integer[] chest_positions = new Integer[]{ + -1,-1,-1, + 1,-1,1, + -1,-1,1, + -1,1,-1, + -1,1,1, + 1,1,-1}; + PlaceWitherLootChestsWithDefinedLayout(m, chance_to_place_reward_chest, chest_positions); w.DisplaySuccessfulDPSReport(); break; } @@ -6698,6 +6710,14 @@ public class TwosideKeeper extends JavaPlugin implements Listener { custommonsters.remove(m.getUniqueId()); } } + public void PlaceWitherLootChestsWithDefinedLayout(LivingEntity m, double chance_to_place_reward_chest, + Integer[] chest_positions) { + for (int i=0;i