- Added BattleState class to manage battle flow, including turn management and event handling. - Introduced BuffInstance class to represent buffs applied to combatants. - Created CardInstance class to handle card definitions and cost calculations. - Developed CombatantState class to manage combatant attributes and actions. - Implemented EffectRegistry to apply effects based on event specifications. - Added various handlers (BlockHandler, DamageHandler, DrawHandler, etc.) to process specific events. - Created IntentPlanner and IntentState classes to manage enemy actions and intents. - Established a queue system for handling battle events with BattleEventQueue and BattleEventTask. - Introduced triggers for applying effects based on game events (e.g., OnCardDrawnGainBlockTrigger). - Added necessary UID files for new scripts to ensure proper resource management.
10 lines
281 B
GDScript
10 lines
281 B
GDScript
class_name EffectSpec
|
|
extends Resource
|
|
|
|
@export var type_id: String = ""
|
|
@export var priority: int = 0
|
|
@export var timing: int = EEffectTiming.ON_PLAY
|
|
@export var trigger_event_type: String = ""
|
|
@export var params: Dictionary = {}
|
|
@export var conditions: Array[ConditionSpec] = []
|