Added Inspiration ticks, effects for Multi-Tier Performance Abilities

(BugFix) Build-A-Buff applies correct stats now
-- NOTE: Stats that the player does not have yet may not show in
character sheet but the server will recognize still recognize their new
stats
(Added) Inspiration Ticks
(BugFix) Inspiration Buffs time corresponds to the players inspiration
ticks.
(BugFix) "Watch" on radial menu working again
(Added) Put in the effects for the multi-tiered performance abilities
(Feature) You can now type /[performance effect] [tier number] to use
that specific effect
(BugFix) showFlyText boolean for showing to observers or not (fixes
other players exp gain shown to other players)
(Code) Few minor additions/fixes
This commit is contained in:
Waverunner
2014-03-22 11:47:37 -04:00
parent ca4e0559a1
commit ffc9aec1b1
24 changed files with 242 additions and 69 deletions
+24
View File
@@ -21,6 +21,8 @@
******************************************************************************/
package resources.common;
import java.math.BigDecimal;
import engine.resources.scene.*;
public class MathUtilities {
@@ -43,5 +45,27 @@ public class MathUtilities {
q1.w * q2.z + q1.z * q2.w + q1.x * q2.y - q1.y * q2.x);
}
/**
* Converts seconds to a whole hour.
* @author Waverunner
* @param seconds
* @return hour(s)
*/
public static int secondsToWholeHours(int seconds) {
BigDecimal dec = new BigDecimal(seconds);
return dec.divide(new BigDecimal(3600), BigDecimal.ROUND_FLOOR).intValue();
}
/**
* Converts seconds to minutes of the hour.
* @author Waverunner
* @param seconds
* @return hour(s)
*/
public static int secondsToHourMinutes(int seconds) {
BigDecimal dec = new BigDecimal(seconds);
return dec.remainder(new BigDecimal(3600)).divide(new BigDecimal(60), BigDecimal.ROUND_FLOOR).intValue();
}
}