Table of Contents

Interface IAbilityModifier

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

A rule that scales one of an ability's numbers by something about where and when it is cast: the weather (the Climate and Weather module's WeatherAbilityModifier), and whatever other modules add.

public interface IAbilityModifier

Remarks

Held on templates and events as [SerializeReference], so the ability data names no module: a removed module's rules drop out and every number is unscaled (Phase 4 of the core and modules plan, 2026-11-17). A rule must be a pure function of the context, which both peers evaluate alike, because ability numbers are predicted.

Methods

Affects(AbilityScalingTarget)

Whether this rule scales target.

bool Affects(AbilityScalingTarget target)

Parameters

target AbilityScalingTarget

Returns

bool

Multiplier(AbilityModifierContext, AbilityScalingTarget)

The multiplier for target in this context; 1 changes nothing.

float Multiplier(AbilityModifierContext context, AbilityScalingTarget target)

Parameters

context AbilityModifierContext
target AbilityScalingTarget

Returns

float