21 lines
436 B
C#
21 lines
436 B
C#
|
|
using System;
|
||
|
|
|
||
|
|
namespace Server.Items
|
||
|
|
{
|
||
|
|
interface IDurability
|
||
|
|
{
|
||
|
|
bool CanFortify { get; }
|
||
|
|
int InitMinHits { get; }
|
||
|
|
int InitMaxHits { get; }
|
||
|
|
int HitPoints { get; set; }
|
||
|
|
int MaxHitPoints { get; set; }
|
||
|
|
void ScaleDurability();
|
||
|
|
|
||
|
|
void UnscaleDurability();
|
||
|
|
}
|
||
|
|
|
||
|
|
interface IWearableDurability : IDurability
|
||
|
|
{
|
||
|
|
int OnHit(BaseWeapon weapon, int damageTaken);
|
||
|
|
}
|
||
|
|
}
|