Skip to content

Commit

Permalink
balance: Weaken crystal explosions a little
Browse files Browse the repository at this point in the history
Turns out the previous strengths were way too strong when played on an actual, non-local server, with a ping >1ms
  • Loading branch information
kiriDevs committed Feb 5, 2024
1 parent 28ce803 commit b49251e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void onDimensionSwitch(PlayerChangedWorldEvent event) {
if (dragon == null) return; // The dragon somehow already died
this.plugin.log.info("Changed dragon name");
dragon.customName(Component.text("Elder Dragon").color(NamedTextColor.AQUA));
}, 5); // 5t * 20t/s = 0.25s
}, 40); // 5t * 20t/s = 0.25s

// Limit world border for the first dragon fight
WorldBorder border = player.getWorld().getWorldBorder();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ public void onEntityDamageByEntityEvent(EntityDamageByEntityEvent event) {

// Create a small explosion, then apply customKnockback, schedule big boom for later
World crystalWorld = crystal.getWorld();
crystalWorld.createExplosion(crystalLocation, 7);
crystalWorld.createExplosion(crystalLocation, 3);
player.setVelocity(knockback);
Bukkit.getScheduler().scheduleSyncDelayedTask(this.plugin, () -> {
crystalWorld.createExplosion(crystalLocation, 20);
}, 4); // 4t * 20t/s = 0.25s
crystalWorld.createExplosion(crystalLocation, 12);
}, 6); // 4t * 20t/s = 0.25s

// Reduce crystal health
PersistentDataContainer pdc = crystal.getPersistentDataContainer();
Expand Down

0 comments on commit b49251e

Please sign in to comment.