Balance changes
This commit is contained in:
parent
b9a72312a8
commit
82182c5d50
@ -6,9 +6,9 @@ import mineplex.core.common.util.UtilEvent.ActionType;
|
||||
import mineplex.core.common.util.UtilInv;
|
||||
import mineplex.core.common.util.UtilPlayer;
|
||||
import mineplex.core.common.util.UtilServer;
|
||||
import mineplex.core.common.util.UtilTextBottom;
|
||||
import mineplex.core.common.util.UtilTime;
|
||||
import mineplex.core.itemstack.ItemBuilder;
|
||||
import mineplex.core.recharge.Recharge;
|
||||
import mineplex.core.updater.UpdateType;
|
||||
import mineplex.core.updater.event.UpdateEvent;
|
||||
import nautilus.game.arcade.events.PlayerKitGiveEvent;
|
||||
@ -316,12 +316,11 @@ public class HeroSkill extends Perk
|
||||
|
||||
public void useActiveSkill(Runnable complete, Player player, long time)
|
||||
{
|
||||
long now = System.currentTimeMillis();
|
||||
long ticks = (long) (time / 1000D);
|
||||
ItemStack itemStack = player.getInventory().getItem(getSlot());
|
||||
itemStack.setAmount((int) (ticks / 20D));
|
||||
UtilInv.addDullEnchantment(itemStack);
|
||||
Recharge.Instance.useForce(player, GetName(), time, true);
|
||||
Recharge.Instance.setDisplayForce(player, GetName(), true);
|
||||
|
||||
Manager.runSyncTimer(new BukkitRunnable()
|
||||
{
|
||||
@ -329,7 +328,17 @@ public class HeroSkill extends Perk
|
||||
@Override
|
||||
public void run()
|
||||
{
|
||||
double percentage =
|
||||
long timeLeft = System.currentTimeMillis() + time - now;
|
||||
double percentage = (double) timeLeft / (double) time;
|
||||
|
||||
if (percentage >= 1)
|
||||
{
|
||||
UtilTextBottom.display(C.cRedB + GetName(), player);
|
||||
cancel();
|
||||
return;
|
||||
}
|
||||
|
||||
UtilTextBottom.displayProgress(GetName(), percentage, player);
|
||||
}
|
||||
}, 0, 1);
|
||||
|
||||
|
@ -96,7 +96,7 @@ public class HeroBardolf extends HeroKit
|
||||
|
||||
if (UtilMath.offsetSquared(wolf.getTarget(), wolf) < 9 && Recharge.Instance.use(data.getOwner(), "Wolf" + wolf.getTarget().getUniqueId(), 500, false, false))
|
||||
{
|
||||
Manager.GetDamage().NewDamageEvent(wolf.getTarget(), data.getOwner(), null, DamageCause.CUSTOM, 2, true, true, false, data.getOwner().getName(), "Wolf");
|
||||
Manager.GetDamage().NewDamageEvent(wolf.getTarget(), data.getOwner(), null, DamageCause.CUSTOM, 1, true, true, false, data.getOwner().getName(), "Wolf");
|
||||
}
|
||||
}
|
||||
else if (ownerOffset > MAX_DIST_SQUARED)
|
||||
|
@ -32,7 +32,7 @@ public class SkillSummonWolf extends HeroSkill
|
||||
};
|
||||
private static final ItemStack SKILL_ITEM = new ItemStack(Material.BONE);
|
||||
private static final int MAX_WOLVES = 5;
|
||||
private static final int HEALTH = 6;
|
||||
private static final int HEALTH = 8;
|
||||
|
||||
public SkillSummonWolf(int slot)
|
||||
{
|
||||
|
@ -133,7 +133,7 @@ public class SkillWarHorse extends HeroSkill
|
||||
}
|
||||
|
||||
owner.sendMessage(F.main("Game", "You hit " + F.name(player.getName()) + "."));
|
||||
Manager.GetDamage().NewDamageEvent(player, owner, null, DamageCause.CUSTOM, 10, false, true, false, UtilEnt.getName(owner), GetName());
|
||||
Manager.GetDamage().NewDamageEvent(player, owner, null, DamageCause.CUSTOM, 4, false, true, false, UtilEnt.getName(owner), GetName());
|
||||
buffManager.apply(new BuffRooting(game, player, 1000));
|
||||
}
|
||||
}
|
||||
|
@ -60,12 +60,12 @@ public class SkillDanaDash extends DashSkill
|
||||
|
||||
if (entity instanceof Player)
|
||||
{
|
||||
damage = 10;
|
||||
damage = 12;
|
||||
UtilAction.velocity(entity, new Vector(Math.random() / 2 - 0.25, 1, Math.random() / 2 - 0.25));
|
||||
}
|
||||
else
|
||||
{
|
||||
damage = 6;
|
||||
damage = 8;
|
||||
UtilAction.velocity(entity, new Vector(Math.random() - 0.5, 0.5, Math.random() - 0.5));
|
||||
}
|
||||
|
||||
|
@ -43,7 +43,7 @@ public class SkillPulseHeal extends HeroSkill
|
||||
Player player = event.getPlayer();
|
||||
useSkill(player);
|
||||
|
||||
for (LivingEntity entity : UtilEnt.getInRadius(player.getLocation(), 5).keySet())
|
||||
for (LivingEntity entity : UtilEnt.getInRadius(player.getLocation(), 7).keySet())
|
||||
{
|
||||
// Don't heal enemies
|
||||
if (!isTeamDamage(entity, player))
|
||||
@ -68,7 +68,7 @@ public class SkillPulseHeal extends HeroSkill
|
||||
@Override
|
||||
public void run()
|
||||
{
|
||||
if (radius > 5)
|
||||
if (radius > 7)
|
||||
{
|
||||
cancel();
|
||||
return;
|
||||
|
@ -151,7 +151,7 @@ public class SkillRally extends HeroSkill
|
||||
|
||||
for (LivingEntity nearby : UtilEnt.getInRadius(player.getLocation(), 3).keySet())
|
||||
{
|
||||
Manager.GetDamage().NewDamageEvent(nearby, player, null, DamageCause.CUSTOM, 5, true, true, false, UtilEnt.getName(player), GetName());
|
||||
Manager.GetDamage().NewDamageEvent(nearby, player, null, DamageCause.CUSTOM, 7, true, true, false, UtilEnt.getName(player), GetName());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -10,6 +10,7 @@ import nautilus.game.arcade.game.games.moba.shop.MobaShop;
|
||||
import nautilus.game.arcade.game.games.moba.shop.MobaShopCategory;
|
||||
import nautilus.game.arcade.game.games.moba.shop.MobaShopMenu;
|
||||
import nautilus.game.arcade.game.games.moba.shop.effects.*;
|
||||
import org.bukkit.Color;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.enchantments.Enchantment;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
@ -74,18 +75,21 @@ public class MobaHunterShop extends MobaShopMenu
|
||||
),
|
||||
new MobaItem(new ItemBuilder(Material.LEATHER_HELMET)
|
||||
.setTitle(C.cGreen + "Leather Cap of Nimble Fingers")
|
||||
.setColor(Color.GREEN)
|
||||
.build(), 400)
|
||||
.addEffects(
|
||||
new MobaCDRAmmoEffect(0.05)
|
||||
),
|
||||
new MobaItem(new ItemBuilder(Material.LEATHER_HELMET)
|
||||
.setTitle(C.cGreen + "Focused Cap")
|
||||
.setColor(Color.PURPLE)
|
||||
.build(), 500)
|
||||
.addEffects(
|
||||
new MobaCDREffect(0.05)
|
||||
),
|
||||
new MobaItem(new ItemBuilder(Material.LEATHER_HELMET)
|
||||
.setTitle(C.cGreen + "Vampiric Helmet")
|
||||
.setColor(Color.RED)
|
||||
.build(), 500)
|
||||
.addEffects(
|
||||
new MobaHPRegenEffect(0.2)
|
||||
@ -101,18 +105,21 @@ public class MobaHunterShop extends MobaShopMenu
|
||||
.build(), 250),
|
||||
new MobaItem(new ItemBuilder(Material.LEATHER_CHESTPLATE)
|
||||
.setTitle(C.cGreen + "Leather Chestplate of Nimble Fingers")
|
||||
.setColor(Color.GREEN)
|
||||
.build(), 750)
|
||||
.addEffects(
|
||||
new MobaCDRAmmoEffect(0.15)
|
||||
),
|
||||
new MobaItem(new ItemBuilder(Material.LEATHER_CHESTPLATE)
|
||||
.setTitle(C.cGreen + "Focused Chestplate")
|
||||
.setColor(Color.PURPLE)
|
||||
.build(), 750)
|
||||
.addEffects(
|
||||
new MobaCDREffect(0.1)
|
||||
),
|
||||
new MobaItem(new ItemBuilder(Material.LEATHER_CHESTPLATE)
|
||||
.setTitle(C.cGreen + "Vampiric Chestplate")
|
||||
.setColor(Color.RED)
|
||||
.build(), 750)
|
||||
.addEffects(
|
||||
new MobaKillHealEffect(3)
|
||||
@ -128,18 +135,21 @@ public class MobaHunterShop extends MobaShopMenu
|
||||
.build(), 250),
|
||||
new MobaItem(new ItemBuilder(Material.LEATHER_LEGGINGS)
|
||||
.setTitle(C.cGreen + "Leather Leggings of Nimble Fingers")
|
||||
.setColor(Color.GREEN)
|
||||
.build(), 750)
|
||||
.addEffects(
|
||||
new MobaCDRAmmoEffect(0.1)
|
||||
),
|
||||
new MobaItem(new ItemBuilder(Material.LEATHER_LEGGINGS)
|
||||
.setTitle(C.cGreen + "Focused Leggings")
|
||||
.setColor(Color.PURPLE)
|
||||
.build(), 750)
|
||||
.addEffects(
|
||||
new MobaCDREffect(0.1)
|
||||
),
|
||||
new MobaItem(new ItemBuilder(Material.LEATHER_LEGGINGS)
|
||||
.setTitle(C.cGreen + "Vampiric Leggings")
|
||||
.setColor(Color.RED)
|
||||
.build(), 700)
|
||||
.addEffects(
|
||||
new MobaKillHealEffect(3)
|
||||
@ -155,18 +165,21 @@ public class MobaHunterShop extends MobaShopMenu
|
||||
.build(), 250),
|
||||
new MobaItem(new ItemBuilder(Material.LEATHER_BOOTS)
|
||||
.setTitle(C.cGreen + "Leather Boots of Nimble Fingers")
|
||||
.setColor(Color.GREEN)
|
||||
.build(), 400)
|
||||
.addEffects(
|
||||
new MobaCDRAmmoEffect(0.05)
|
||||
),
|
||||
new MobaItem(new ItemBuilder(Material.LEATHER_BOOTS)
|
||||
.setTitle(C.cGreen + "Focused Boots")
|
||||
.setColor(Color.PURPLE)
|
||||
.build(), 600)
|
||||
.addEffects(
|
||||
new MobaCDREffect(0.05)
|
||||
),
|
||||
new MobaItem(new ItemBuilder(Material.LEATHER_BOOTS)
|
||||
.setTitle(C.cGreen + "Vampiric Boots")
|
||||
.setColor(Color.RED)
|
||||
.build(), 500)
|
||||
.addEffects(
|
||||
new MobaKillHealEffect(1)
|
||||
|
@ -281,7 +281,9 @@ public class TowerManager implements Listener
|
||||
|
||||
for (Tower tower : _towers)
|
||||
{
|
||||
if (tower.isDead() || tower.getOwner().equals(team) || UtilMath.offsetSquared(tower.getCrystal().getLocation(), location) > PROJECTILE_RANGE_SQUARED)
|
||||
Location crystalLocation = tower.getCrystal().getLocation();
|
||||
|
||||
if (tower.isDead() || tower.getOwner().equals(team) || UtilMath.offsetSquared(crystalLocation, location) > PROJECTILE_RANGE_SQUARED || shouldCancelDamage(tower, shooter))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
@ -76,7 +76,7 @@ public class MobaTraining extends Moba
|
||||
C.cYellow + "of " + C.cGold + "Gold" + C.cYellow + " your team earns."
|
||||
},
|
||||
{
|
||||
C.cYellow + "The is the " + C.cDRedB + "Pumpkin King",
|
||||
C.cYellow + "This is the " + C.cDRedB + "Pumpkin King",
|
||||
C.cYellow + "He spawns at " + C.cGreen + "10 minutes" + C.cYellow + " into the game.",
|
||||
C.cYellow + "The team that kills him will be given increased",
|
||||
C.cYellow + "regeneration and damage."
|
||||
@ -92,7 +92,7 @@ public class MobaTraining extends Moba
|
||||
C.cYellow + "They will fight each other and help destroy enemy Towers."
|
||||
},
|
||||
{
|
||||
C.cYellow + "With the " + C.cGold + "Gold" + C.cYellow + "you earn you can",
|
||||
C.cYellow + "With the " + C.cGold + "Gold" + C.cYellow + " you earn you can",
|
||||
C.cYellow + "spend it on upgrades for your weapons and armor.",
|
||||
C.cYellow + "You can do this via the gold ingot in your inventory",
|
||||
C.cYellow + "during the game or by clicking on the Villager."
|
||||
|
Loading…
Reference in New Issue
Block a user