mirror of
https://github.com/ACEmulator/ACE
synced 2026-08-17 12:26:06 -04:00
* Adding enchantments for items wielded by monsters / NPCs * Adding support for more motion states (still needs data fixes) * Adding DR/DRR from base properties for ToD monsters * Adding centralized damage calculation function * Adding support for monster armor layering * updating RL calcs * additional RL updates * removing debug logic * Adding line for monster ranged combat * porting fix from 1445 * Adjusting Armor Rending to also reduce physical armor
27 lines
489 B
C#
27 lines
489 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace ACE.Server.Entity
|
|
{
|
|
public class Range
|
|
{
|
|
public float Min;
|
|
public float Max;
|
|
public float Avg;
|
|
|
|
public Range() { }
|
|
|
|
public Range(float min, float max)
|
|
{
|
|
Min = min;
|
|
Max = max;
|
|
Avg = (Min + Max) / 2.0f;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"{Min} - {Max}";
|
|
}
|
|
}
|
|
}
|