ProcEffect ​
Inherits: CompositeEffect < Effect < DatabaseResource < Resource
Inherited by: AbilityProcEffect, CombatProcEffect, CombatStateProcEffect, DeathProcEffect, EffectEventProcEffect, HealthThresholdProcEffect, ResourceThresholdProcEffect, StatusProcEffect
Base class for all proc effects with shared RNG and consumption logic
Properties ​
float | success_chance | 100.0 |
RngMode | rng_mode | RngMode.PURE_RANDOM |
float | pity_increase_percent | 5.0 |
float | pity_max_chance | 100.0 |
int | streak_max_failures | 5 |
float | procedure_cooldown | 0.0 |
bool | consumed_on_proc | false |
int | stacks_consumed_on_proc | 0 |
Methods ​
void | specific_effect_logic( effect_instance: EffectInstance ) |
void | on_apply_finished( effect_instance: EffectInstance ) |
String | get_rng_mode_description() |
String | get_editor_description() |
Enumerations ​
enum RngMode ​
The options of rng mode: pure random, pity timer, streak breaker, weighted streak.
- PURE_RANDOM =
0- Each roll is independent - PITY_TIMER =
1- Chance increases after each failure - STREAK_BREAKER =
2- Guarantees success after X failures - WEIGHTED_STREAK =
3- Combines pity timer with guaranteed success
Property descriptions ​
Success Chance Settings
float success_chance = 100.0 ​
Base percentage chance for the proc to trigger when the event occurs
RngMode rng_mode = RngMode.PURE_RANDOM ​
RNG mode that controls how success chance is calculated over time
Pity Timer Settings
float pity_increase_percent = 5.0 ​
How much to increase chance per consecutive failure (for PITY_TIMER and WEIGHTED_STREAK modes)
float pity_max_chance = 100.0 ​
Maximum chance the pity timer can reach before capping out
Streak Breaker Settings
int streak_max_failures = 5 ​
Maximum consecutive failures before guaranteed success (for STREAK_BREAKER and WEIGHTED_STREAK modes)
Cooldown & Consumption
float procedure_cooldown = 0.0 ​
Cooldown in seconds before this proc can trigger again, 0 means no cooldown
bool consumed_on_proc = false ​
Whether this effect is completely removed after successfully proccing
int stacks_consumed_on_proc = 0 ​
Number of stacks consumed per proc, 0 means consume all stacks
Method descriptions ​
void specific_effect_logic( effect_instance: EffectInstance ) ​
Child classes override this to set up their specific signal connections
void on_apply_finished( effect_instance: EffectInstance ) ​
Called when the effect ends: takes back what it did.
String get_rng_mode_description() ​
Get description of RNG mode for tooltips
String get_editor_description() ​
A short text for the effect editor that says what the effect does.