Changed method name and classes effected

This commit is contained in:
jack lin 2014-07-29 23:34:46 +12:00
parent c2878ba36a
commit 468ffa3325
11 changed files with 1422 additions and 1139 deletions

File diff suppressed because it is too large Load diff

View file

@ -38,7 +38,7 @@ public class ArcOfFire {
Location location = player.getLocation();
int arc = (int) Methods.firebendingDayAugment(defaultarc,
int arc = (int) Methods.getFirebendingDayAugment(defaultarc,
player.getWorld());
for (int i = -arc; i <= arc; i += stepsize) {

View file

@ -31,12 +31,12 @@ public class Extinguish {
}
}
double range = Methods.firebendingDayAugment(defaultrange, player.getWorld());
double range = Methods.getFirebendingDayAugment(defaultrange, player.getWorld());
if (Methods.isMeltable(player.getTargetBlock(null, (int) range))) {
new HeatMelt(player);
return;
}
double radius = Methods.firebendingDayAugment(defaultradius, player.getWorld());
double radius = Methods.getFirebendingDayAugment(defaultradius, player.getWorld());
for (Block block : Methods.getBlocksAroundPoint(
player.getTargetBlock(null, (int) range).getLocation(), radius)) {
if (Methods.isRegionProtectedFromBuild(player, "Blaze",

View file

@ -73,7 +73,7 @@ public class FireBlast {
if (player.getEyeLocation().getBlock().isLiquid() || Fireball.isCharging(player)) {
return;
}
range = Methods.firebendingDayAugment(range, player.getWorld());
range = Methods.getFirebendingDayAugment(range, player.getWorld());
// timers.put(player, System.currentTimeMillis());
this.player = player;
location = player.getEyeLocation();
@ -95,7 +95,7 @@ public class FireBlast {
return;
}
safe = safeblocks;
range = Methods.firebendingDayAugment(range, player.getWorld());
range = Methods.getFirebendingDayAugment(range, player.getWorld());
// timers.put(player, System.currentTimeMillis());
this.player = player;
this.location = location.clone();
@ -219,7 +219,7 @@ public class FireBlast {
}
if (entity instanceof LivingEntity) {
entity.setFireTicks(50);
Methods.damageEntity(player, entity, (int) Methods.firebendingDayAugment((double) damage, entity.getWorld()));
Methods.damageEntity(player, entity, (int) Methods.getFirebendingDayAugment((double) damage, entity.getWorld()));
new Enflamed(entity, player);
instances.remove(id);
}

View file

@ -55,7 +55,7 @@ public class FireJet {
}
}
factor = Methods.firebendingDayAugment(defaultfactor, player.getWorld());
factor = Methods.getFirebendingDayAugment(defaultfactor, player.getWorld());
Block block = player.getLocation().getBlock();
if (FireStream.isIgnitable(player, block) || block.getType() == Material.AIR || AvatarState.isAvatarState(player)) {
player.setVelocity(player.getEyeLocation().getDirection().clone().normalize().multiply(factor));

View file

@ -41,7 +41,7 @@ public class FireStream {
private double range;
public FireStream(Location location, Vector direction, Player player, int range) {
this.range = Methods.firebendingDayAugment(range, player.getWorld());
this.range = Methods.getFirebendingDayAugment(range, player.getWorld());
this.player = player;
origin = location.clone();
this.location = origin.clone();

View file

@ -53,7 +53,7 @@ public class Fireball {
chargetime = 0;
maxdamage = AvatarState.getValue(maxdamage);
}
range = Methods.firebendingDayAugment(range, player.getWorld());
range = Methods.getFirebendingDayAugment(range, player.getWorld());
if (!player.getEyeLocation().getBlock().isLiquid()) {
id = ID;
instances.put(id, this);
@ -203,7 +203,7 @@ public class Fireball {
float yield = 1;
if (!AvatarState.isAvatarState(player)) {
if (Methods.isDay(player.getWorld())) {
Methods.firebendingDayAugment(yield, player.getWorld());
Methods.getFirebendingDayAugment(yield, player.getWorld());
} else {
yield *= 1.;
}

View file

@ -16,9 +16,9 @@ public class HeatMelt {
public HeatMelt(Player player) {
Location location = Methods.getTargetedLocation(player,
(int) Methods.firebendingDayAugment(range, player.getWorld()));
(int) Methods.getFirebendingDayAugment(range, player.getWorld()));
for (Block block : Methods.getBlocksAroundPoint(location,
(int) Methods.firebendingDayAugment(radius, player.getWorld()))) {
(int) Methods.getFirebendingDayAugment(radius, player.getWorld()))) {
if (Methods.isMeltable(block)) {
Melt.melt(player, block);
} else if (isHeatable(block)) {

View file

@ -71,7 +71,7 @@ public class Illumination {
} else if (player.getWorld() != block.getWorld()) {
revert();
} else if (player.getLocation().distance(block.getLocation()) > Methods
.firebendingDayAugment(range, player.getWorld())) {
.getFirebendingDayAugment(range, player.getWorld())) {
revert();
}
}

View file

@ -63,7 +63,7 @@ public class Lightning {
}
private Location getTargetLocation() {
int distance = (int) Methods.firebendingDayAugment(defaultdistance,
int distance = (int) Methods.getFirebendingDayAugment(defaultdistance,
player.getWorld());
Location targetlocation;
@ -110,7 +110,7 @@ public class Lightning {
return;
}
int distance = (int) Methods.firebendingDayAugment(defaultdistance,
int distance = (int) Methods.getFirebendingDayAugment(defaultdistance,
player.getWorld());
long warmup = (int) ((double) defaultwarmup / ProjectKorra.plugin.getConfig().getDouble("Properties.Fire.DayFactor"));
if (AvatarState.isAvatarState(player))

View file

@ -64,11 +64,11 @@ public class WallOfFire {
World world = player.getWorld();
if (Methods.isDay(player.getWorld())) {
width = (int) Methods.firebendingDayAugment((double) width, world);
height = (int) Methods.firebendingDayAugment((double) height, world);
duration = (long) Methods.firebendingDayAugment((double) duration,
width = (int) Methods.getFirebendingDayAugment((double) width, world);
height = (int) Methods.getFirebendingDayAugment((double) height, world);
duration = (long) Methods.getFirebendingDayAugment((double) duration,
world);
damage = (int) Methods.firebendingDayAugment((double) damage, world);
damage = (int) Methods.getFirebendingDayAugment((double) damage, world);
}
time = System.currentTimeMillis();