From 0e067e2a24314ecead2c94bea32312530685d316 Mon Sep 17 00:00:00 2001 From: Sollace Date: Tue, 12 Mar 2024 11:57:39 +0000 Subject: [PATCH] Unicorn casting speed now scales with their level --- .../unicopia/ability/UnicornCastingAbility.java | 2 +- .../unicopia/ability/UnicornTeleportAbility.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/ability/UnicornCastingAbility.java b/src/main/java/com/minelittlepony/unicopia/ability/UnicornCastingAbility.java index 5726a36e..64a0e4bf 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/UnicornCastingAbility.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/UnicornCastingAbility.java @@ -37,7 +37,7 @@ public class UnicornCastingAbility extends AbstractSpellCastingAbility { @Override public int getWarmupTime(Pony player) { - return 20; + return (int)(20 - Math.min(17F, player.getLevel().get() * 0.75F)); } @Override diff --git a/src/main/java/com/minelittlepony/unicopia/ability/UnicornTeleportAbility.java b/src/main/java/com/minelittlepony/unicopia/ability/UnicornTeleportAbility.java index ea81884b..3401632f 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/UnicornTeleportAbility.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/UnicornTeleportAbility.java @@ -51,12 +51,12 @@ public class UnicornTeleportAbility implements Ability { @Override public int getWarmupTime(Pony player) { - return 20; + return (int)(20 - Math.min(17F, player.getLevel().get() * 0.75F)); } @Override public int getCooldownTime(Pony player) { - return 50; + return (int)(50 - Math.min(45F, player.getLevel().get() * 0.75F)); } @Override