Mark constants in abilities `static`.

No need to have instance-local constants.
This commit is contained in:
Andreas Troelsen 2020-04-09 11:37:30 +02:00
parent c9b0f85bee
commit 9245e53509
18 changed files with 23 additions and 23 deletions

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {