buff-debuff
# Buff / Debuff System
A general-purpose buff pipeline for duration, stacks, ticks, and priority. Poison, stun, attack-speed boosts, and custom gameplay effects can be implemented by inheriting from BuffEffect.
Structure
Quick Start
1. Create a BuffDefinition
Create -> AchUtils/Buff/Buff Definition
2. Create a BuffSystem Instance
BuffSystem is not a MonoBehaviour. Create it from the owner that needs it, then call Tick every frame to update durations and ticks.
3. Apply and Remove Buffs
API
BuffSystem
BuffDefinition Inspector
BuffInstance
Built-In Effects
DamageOverTimeEffect
The target must implement IDamageable.
StunEffect
The target must implement IStunnable.
StatModifyEffect
Adds and removes a stat modifier through StatSheetComponent.
Custom Effects
Examples
Stat integration
StatModifyEffect integrates with Stat Modifier. The target needs StatSheetComponent.