mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-11 01:13:05 -04:00
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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user