private async Task OnAttackedAsync(DamageEvent @event, PassiveProperty <BattleContext, int> property, BattleContext context) { Console.WriteLine("Rage"); property.DataStore = property.DataStore + 1; }
private ActorAbility ModifyAttack(ActorAbility ability, PassiveProperty <BattleContext, int> self) { return(new ActorAbility() { Attack = ability.Attack + self.DataStore, Defence = ability.Defence }); }
set => SetValue(PassiveProperty, value);