mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +00:00
Changed method name and classes effected
This commit is contained in:
parent
c2878ba36a
commit
468ffa3325
11 changed files with 1422 additions and 1139 deletions
File diff suppressed because it is too large
Load diff
|
@ -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) {
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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.;
|
||||
}
|
||||
|
|
|
@ -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)) {
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue