Table of Contents

Interface IHealable

Namespace
FishMMO.Shared.Core
Assembly
FishMMO.Shared.dll

Interface for entities that can be healed by a character or other source. Implement this to allow objects to receive healing.

public interface IHealable

Methods

Heal(ICharacter, int, bool, bool)

Applies healing to the entity.

int Heal(ICharacter healer, int amount, bool ignoreAchievements = false, bool periodic = false)

Parameters

healer ICharacter

The character performing the healing.

amount int

The amount of healing to apply.

ignoreAchievements bool

If true, achievement progress is not affected by this healing event.

periodic bool

True for a heal-over-time tick. Reported as CombatEventKind.PeriodicHeal so it pairs separately from direct heals — see IDamageable.Damage's periodic remarks.

Returns

int

The amount the server would report for this heal — the requested amount when it had any effect, zero when it had none (dead target, empty amount, or the resource was already full). Matches the combat-event amount so a predicted label paired against the report is the same number.