mirror of
https://github.com/ACEmulator/ACE
synced 2026-08-17 12:26:06 -04:00
* Adding Void magic * Mapping BaseRangeConstant to SpellBase * Fixing DoTs to only use the top layer enchantments * Added limiter for switching between war and void magic
12 lines
281 B
C#
12 lines
281 B
C#
using System;
|
|
|
|
namespace ACE.Common.Extensions
|
|
{
|
|
public static class FloatExtensions
|
|
{
|
|
public static int Round(this float num, int decimalPlaces = 0)
|
|
{
|
|
return (int)Math.Round(num, decimalPlaces, MidpointRounding.AwayFromZero);
|
|
}
|
|
}
|
|
}
|