mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Unicorn casting speed now scales with their level
This commit is contained in:
parent
dce29e46a6
commit
0e067e2a24
2 changed files with 3 additions and 3 deletions
|
@ -37,7 +37,7 @@ public class UnicornCastingAbility extends AbstractSpellCastingAbility {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getWarmupTime(Pony player) {
|
public int getWarmupTime(Pony player) {
|
||||||
return 20;
|
return (int)(20 - Math.min(17F, player.getLevel().get() * 0.75F));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -51,12 +51,12 @@ public class UnicornTeleportAbility implements Ability<Pos> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getWarmupTime(Pony player) {
|
public int getWarmupTime(Pony player) {
|
||||||
return 20;
|
return (int)(20 - Math.min(17F, player.getLevel().get() * 0.75F));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getCooldownTime(Pony player) {
|
public int getCooldownTime(Pony player) {
|
||||||
return 50;
|
return (int)(50 - Math.min(45F, player.getLevel().get() * 0.75F));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue