Skip to content

🎨 Rules — Built-in Modifiers (Victim)

📦 Folder Overview

This folder contains victim-side authoring helpers that contribute to rule behaviour.

These components are not rules themselves. They act as wrappers that modify rule state.


🎯 Purpose

Victim modifiers exist to:

  • Provide inspector-driven control over incoming damage behaviour
  • Allow effects to be added or removed at runtime
  • Keep rule logic separate from authoring concerns

🧩 What Lives Here

ReflectBuff

Behaviour:

  • Requires ReflectStacksRule
  • On enable → contributes reflect percentage
  • On disable → removes contribution
OnEnable   _rule.Push(percent)
OnDisable  _rule.Pop(percent)

Purpose:

  • Enables reflect behaviour through inspector configuration
  • Keeps reflect logic inside the rule (ReflectStacksRule)

⚠️ Important Notes

Boundaries

Victim modifiers should not:

  • Implement rule logic
  • Modify health directly
  • Depend on HealthSystem
  • Introduce gameplay systems

If behaviour becomes complex, it belongs in a rule.


🧠 Usage Guidance

  • Use modifiers for inspector-driven configuration
  • Keep them as thin wrappers over rules
  • Enable or disable them to control behaviour dynamically

  • Damage Rules
  • Rules Abstractions
  • Rule Hubs