CombatDurationCondition ​
Inherits: EncounterCondition < Condition < Resource
Checks if the group has been in combat for a specified duration
Properties ​
Condition.CheckLogic | comparison_logic | Condition.CheckLogic.GREATER_EQUAL |
float | target_duration_seconds | 30.0 |
Variables ​
float | combat_start_time | 0.0 |
Methods ​
bool | evaluate_encounter( encounter: EncounterGroup ) |
String | get_encounter_description() |
String | get_encounter_function_description() |
void | set_combat_start_time( start_time: float ) |
void | reset_combat_time() |
Property descriptions ​
Condition.CheckLogic comparison_logic = Condition.CheckLogic.GREATER_EQUAL ​
How the time in combat is compared with the target duration
float target_duration_seconds = 30.0 ​
The time in combat to compare with, in seconds
Variable descriptions ​
float combat_start_time = 0.0 ​
Track when combat started (set by Encounter)
Method descriptions ​
bool evaluate_encounter( encounter: EncounterGroup ) ​
Is the condition met for this encounter?
String get_encounter_description() ​
A short text about what the condition checks on the encounter.
String get_encounter_function_description() ​
The sentence the editor shows for the condition, with {placeholders} for its values.
void set_combat_start_time( start_time: float ) ​
Called by Encounter when group enters combat
void reset_combat_time() ​
Reset combat timing