mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-25 20:15:50 +01:00
Mark constants in abilities static
.
No need to have instance-local constants.
This commit is contained in:
parent
c9b0f85bee
commit
9245e53509
@ -21,13 +21,13 @@ public class ChainLightning implements Ability
|
||||
* How many blocks the chain lightning can spread over.
|
||||
* Must be greater than 0.
|
||||
*/
|
||||
private final int RADIUS = 4;
|
||||
private static final int RADIUS = 4;
|
||||
|
||||
/**
|
||||
* How many server ticks between each lightning strike.
|
||||
* Must be greater than 0.
|
||||
*/
|
||||
private final int TICKS = 10;
|
||||
private static final int TICKS = 10;
|
||||
|
||||
@Override
|
||||
public void execute(Arena arena, MABoss boss) {
|
||||
|
@ -17,7 +17,7 @@ public class DisorientDistant implements Ability
|
||||
/**
|
||||
* How far away players must be to be affected by the ability.
|
||||
*/
|
||||
private final int RADIUS = 8;
|
||||
private static final int RADIUS = 8;
|
||||
|
||||
@Override
|
||||
public void execute(Arena arena, MABoss boss) {
|
||||
|
@ -18,7 +18,7 @@ public class DisorientNearby implements Ability
|
||||
/**
|
||||
* How close players must be to be affected by the ability.
|
||||
*/
|
||||
private final int RADIUS = 5;
|
||||
private static final int RADIUS = 5;
|
||||
|
||||
@Override
|
||||
public void execute(Arena arena, MABoss boss) {
|
||||
|
@ -17,7 +17,7 @@ public class DisorientTarget implements Ability
|
||||
/**
|
||||
* If the boss has no target, should a random player be selected?
|
||||
*/
|
||||
private final boolean RANDOM = false;
|
||||
private static final boolean RANDOM = false;
|
||||
|
||||
@Override
|
||||
public void execute(Arena arena, MABoss boss) {
|
||||
|
@ -17,7 +17,7 @@ public class FetchDistant implements Ability
|
||||
/**
|
||||
* How far away players must be to be affected by the ability.
|
||||
*/
|
||||
private final int RADIUS = 8;
|
||||
private static final int RADIUS = 8;
|
||||
|
||||
@Override
|
||||
public void execute(Arena arena, MABoss boss) {
|
||||
|
@ -17,7 +17,7 @@ public class FetchNearby implements Ability
|
||||
/**
|
||||
* How close players must be to be affected by the ability.
|
||||
*/
|
||||
private final int RADIUS = 5;
|
||||
private static final int RADIUS = 5;
|
||||
|
||||
@Override
|
||||
public void execute(Arena arena, MABoss boss) {
|
||||
|
@ -16,7 +16,7 @@ public class FetchTarget implements Ability
|
||||
/**
|
||||
* If the boss has no target, should a random player be selected?
|
||||
*/
|
||||
private final boolean RANDOM = true;
|
||||
private static final boolean RANDOM = true;
|
||||
|
||||
@Override
|
||||
public void execute(Arena arena, MABoss boss) {
|
||||
|
@ -16,12 +16,12 @@ public class FireAura implements Ability
|
||||
/**
|
||||
* How close players must be to be affected by the ability.
|
||||
*/
|
||||
private final int RADIUS = 5;
|
||||
private static final int RADIUS = 5;
|
||||
|
||||
/**
|
||||
* How many ticks the players should be on fire for.
|
||||
*/
|
||||
private final int TICKS = 20;
|
||||
private static final int TICKS = 20;
|
||||
|
||||
@Override
|
||||
public void execute(Arena arena, MABoss boss) {
|
||||
|
@ -17,7 +17,7 @@ public class LightningAura implements Ability
|
||||
/**
|
||||
* How close players must be to be affected by the ability.
|
||||
*/
|
||||
private final int RADIUS = 5;
|
||||
private static final int RADIUS = 5;
|
||||
|
||||
@Override
|
||||
public void execute(Arena arena, MABoss boss) {
|
||||
|
@ -17,17 +17,17 @@ public class LivingBomb implements Ability
|
||||
/**
|
||||
* How many ticks before the bomb goes off.
|
||||
*/
|
||||
private final int FUSE = 60;
|
||||
private static final int FUSE = 60;
|
||||
|
||||
/**
|
||||
* How close players must be to be affected by the bomb.
|
||||
*/
|
||||
private final int RADIUS = 3;
|
||||
private static final int RADIUS = 3;
|
||||
|
||||
/**
|
||||
* How many ticks players affected by the bomb should burn.
|
||||
*/
|
||||
private final int AFTERBURN = 40;
|
||||
private static final int AFTERBURN = 40;
|
||||
|
||||
@Override
|
||||
public void execute(final Arena arena, MABoss boss) {
|
||||
|
@ -22,7 +22,7 @@ public class ObsidianBomb implements Ability
|
||||
/**
|
||||
* How many ticks before the bomb goes off.
|
||||
*/
|
||||
private final int FUSE = 80;
|
||||
private static final int FUSE = 80;
|
||||
|
||||
@Override
|
||||
public void execute(final Arena arena, MABoss boss) {
|
||||
|
@ -18,7 +18,7 @@ public class PullDistant implements Ability
|
||||
/**
|
||||
* How far away players must be to be affected by the ability.
|
||||
*/
|
||||
private final int RADIUS = 8;
|
||||
private static final int RADIUS = 8;
|
||||
|
||||
@Override
|
||||
public void execute(Arena arena, MABoss boss) {
|
||||
|
@ -18,7 +18,7 @@ public class PullNearby implements Ability
|
||||
/**
|
||||
* How close players must be to be affected by the ability.
|
||||
*/
|
||||
private final int RADIUS = 5;
|
||||
private static final int RADIUS = 5;
|
||||
|
||||
@Override
|
||||
public void execute(Arena arena, MABoss boss) {
|
||||
|
@ -18,7 +18,7 @@ public class PullTarget implements Ability
|
||||
/**
|
||||
* If the boss has no target, should a random player be selected?
|
||||
*/
|
||||
private final boolean RANDOM = false;
|
||||
private static final boolean RANDOM = false;
|
||||
|
||||
@Override
|
||||
public void execute(Arena arena, MABoss boss) {
|
||||
|
@ -39,13 +39,13 @@ public class RootTarget implements Ability
|
||||
* How many times the player will be warped back to his original position.
|
||||
* Must be greater than 0.
|
||||
*/
|
||||
private final int ITERATIONS = 30;
|
||||
private static final int ITERATIONS = 30;
|
||||
|
||||
/**
|
||||
* How many server ticks between each iteration of
|
||||
* Must be greater than 0.
|
||||
*/
|
||||
private final int TICKS = 1;
|
||||
private static final int TICKS = 1;
|
||||
|
||||
@Override
|
||||
public void execute(Arena arena, MABoss boss) {
|
||||
|
@ -18,7 +18,7 @@ public class ThrowDistant implements Ability
|
||||
/**
|
||||
* How far away players must be to be affected by the ability.
|
||||
*/
|
||||
private final int RADIUS = 8;
|
||||
private static final int RADIUS = 8;
|
||||
|
||||
@Override
|
||||
public void execute(Arena arena, MABoss boss) {
|
||||
|
@ -18,7 +18,7 @@ public class ThrowNearby implements Ability
|
||||
/**
|
||||
* How close players must be to be affected by the ability.
|
||||
*/
|
||||
private final int RADIUS = 5;
|
||||
private static final int RADIUS = 5;
|
||||
|
||||
@Override
|
||||
public void execute(Arena arena, MABoss boss) {
|
||||
|
@ -18,7 +18,7 @@ public class ThrowTarget implements Ability
|
||||
/**
|
||||
* If the boss has no target, should a random player be selected?
|
||||
*/
|
||||
private final boolean RANDOM = false;
|
||||
private static final boolean RANDOM = false;
|
||||
|
||||
@Override
|
||||
public void execute(Arena arena, MABoss boss) {
|
||||
|
Loading…
Reference in New Issue
Block a user