Skip to content

Commit

Permalink
EliteMobs 8.7.16
Browse files Browse the repository at this point in the history
- [New] Added the new story-mode dungeon, The Nether Wastes
- [Fix] Fixed bug that caused the guild bonus blacklister to not work on login
- [Fix] Fixed bug where loot would not drop and console would error when killing a boss in an instanced dungeon
- [Update] Updated EasyMinecraftGoals version

Signed-off-by: MagmaGuy <tiagoarnaut@gmail.com>
  • Loading branch information
MagmaGuy committed Jun 17, 2024
1 parent 8846907 commit 6818cf5
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ processResources {
}

group 'com.magmaguy'
version '8.7.15-SNAPSHOT'
version '8.7.16-SNAPSHOT'

repositories {
maven {
Expand Down Expand Up @@ -126,7 +126,7 @@ dependencies {
compileOnly group: 'com.magmaguy', name: 'FreeMinecraftModels', version: '1.3.0-SNAPSHOT'

//Advanced AI goals
implementation group: 'com.magmaguy', name: 'EasyMinecraftGoals-dist', version: '1.11.1-SNAPSHOT'
implementation group: 'com.magmaguy', name: 'EasyMinecraftGoals-dist', version: '1.11.2-SNAPSHOT'

// Mythic Mobs integration - currently only for arenas
compileOnly group: 'io.lumine', name: 'Mythic-Dist', version: '5.3.5'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ public static String getRankName(int prestige, int rank) {

public static void setMaxHealth(Player player, int activeGuildRank, int prestigeRank) {
if (!AdventurersGuildConfig.isAddMaxHealth()) return;
if (AdventurersGuildConfig.getWorldsWithoutAGBonuses().contains(player.getWorld().getName())) return;
double guildRankBonus = healthBonusValue(prestigeRank, activeGuildRank);
double newMaxHealth = 20 + guildRankBonus;
player.getAttribute(Attribute.GENERIC_MAX_HEALTH).setBaseValue(newMaxHealth);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
package com.magmaguy.elitemobs.config.dungeonpackager.premade;

import com.magmaguy.elitemobs.config.dungeonpackager.DungeonPackagerConfigFields;
import com.magmaguy.elitemobs.utils.DiscordLinks;
import org.bukkit.World;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

public class TheNetherWastes extends DungeonPackagerConfigFields {
public TheNetherWastes(){
super("the_nether_wastes_dungeon",
false,
"&2[lvl 050] &3The Nether Wastes Dungeon",
Arrays.asList("&fAn unexplored part of the Nether.",
"&6Credits: MagmaGuy, Frostcone, Dali_"),
DiscordLinks.freeMinidungeons,
DungeonSizeCategory.DUNGEON,
"em_id_the_nether_wastes",
World.Environment.NORMAL,
true,
"em_id_the_nether_wastes,38.5,84,64.5,-155,0",
"em_id_the_nether_wastes,41.5,82.5,55.5,-167,0",
0,
"Difficulty: &45-man hard content!",
"&bTraverse the wastes and see what you can find.",
"&bYou have left The Nether Wastes!",
List.of("filename=em_id_the_nether_wastes_miniboss_5_shroud_p1.yml"),
"em_id_the_nether_wastes",
50);
setDifficulties(List.of(
Map.of("name", "normal", "levelSync", 52, "id", 0),
Map.of("name", "hard", "levelSync", 50, "id", 1),
Map.of("name", "mythic", "levelSync", 48, "id", 2)));
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package com.magmaguy.elitemobs.config.npcs.premade;

import com.magmaguy.elitemobs.config.npcs.NPCsConfigFields;
import com.magmaguy.elitemobs.npcs.NPCInteractions;
import org.bukkit.entity.Villager;

import java.util.List;

public class TheNetherWastesTeleporter extends NPCsConfigFields {
public TheNetherWastesTeleporter(){
super("the_nether_wastes_teleporter",
true,
"Nether Shroom",
"<[50] The Nether Wastes Teleporter>",
Villager.Profession.ARMORER,
"em_adventurers_guild,295.5,78.18,198.5,180,0",
List.of(""),
List.of(),
List.of(),
true,
1,
NPCInteractions.NPCInteractionType.COMMAND);
setCommand("em dungeontp the_nether_wastes_dungeon.yml");
setDisguise("custom:elitemobs_the_nether_wastes_teleporter");
setCustomDisguiseData("player elitemobs_the_nether_wastes_teleporter setskin {\"id\":\"ebc6f487-4973-4941-9f41-30f957de3a00\",\"name\":\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jH0WmrfHGqde2qRcoGS4u3tlw3YCXXQCa3UuhGEtkdCDBYQSbhs2i5DTcm7zaTGp38Bg=\"}],\"legacy\":false}");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,9 @@ public ItemStack generateDefaultsItemStack(Player player, boolean showItemWorth,

public ItemStack generateItemStack(int itemTier, Player player, EliteEntity eliteEntity) {
ItemStack itemStack = null;
itemTier = limitItemLevel(player, itemTier);
//This can happen when doing drop tables, the loot is not yet assigned to anyone
if (player != null)
itemTier = limitItemLevel(player, itemTier);
switch (this.scalability) {
case FIXED:
itemStack = generateDefaultsItemStack(player, false, eliteEntity);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: EliteMobs
version: 8.7.15
version: 8.7.16
author: MagmaGuy
main: com.magmaguy.elitemobs.EliteMobs
api-version: 1.14
Expand Down

0 comments on commit 6818cf5

Please sign in to comment.