Make the hit frequency of Milk Spiral a spreadsheet value
This commit is contained in:
parent
f99b20bd25
commit
03ac44fb85
@ -34,8 +34,9 @@ public class PerkCowMilkSpiral extends SmashPerk
|
|||||||
private int _cooldownSmash;
|
private int _cooldownSmash;
|
||||||
private int _hitBoxRadius;
|
private int _hitBoxRadius;
|
||||||
private int _damage;
|
private int _damage;
|
||||||
|
private int _hitFrequency;
|
||||||
|
|
||||||
private Set<DataCowMilkSpiral> _active = new HashSet<>();
|
private final Set<DataCowMilkSpiral> _active = new HashSet<>();
|
||||||
|
|
||||||
public PerkCowMilkSpiral()
|
public PerkCowMilkSpiral()
|
||||||
{
|
{
|
||||||
@ -49,6 +50,7 @@ public class PerkCowMilkSpiral extends SmashPerk
|
|||||||
_cooldownSmash = getPerkTime("Cooldown Smash");
|
_cooldownSmash = getPerkTime("Cooldown Smash");
|
||||||
_hitBoxRadius = getPerkInt("Hit Box Radius");
|
_hitBoxRadius = getPerkInt("Hit Box Radius");
|
||||||
_damage = getPerkInt("Damage");
|
_damage = getPerkInt("Damage");
|
||||||
|
_hitFrequency = getPerkInt("Hit Frequency (ms)");
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
@ -113,7 +115,7 @@ public class PerkCowMilkSpiral extends SmashPerk
|
|||||||
|
|
||||||
for (Player player : Manager.GetGame().GetPlayers(true))
|
for (Player player : Manager.GetGame().GetPlayers(true))
|
||||||
{
|
{
|
||||||
if (player.equals(data.Player) || !Recharge.Instance.use(player, GetName() + " Rate", 250, false, false))
|
if (player.equals(data.Player) || !Recharge.Instance.use(player, GetName() + " Rate", _hitFrequency, false, false))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user