예제 #1
0
 public void TriggerPlayerHitsTarget(Creature player, Target target, CastedSpell castedSpell)
 {
     if (player.NeedToBreakBeforeFiringEvent(EventType.SpellEvents, Name))
     {
         Debugger.Break();
     }
     Expressions.Do(OnPlayerHitsTarget, player, target, castedSpell);
 }
예제 #2
0
 public void TriggerSpellCastDieRollStopped(Creature player, Target target, CastedSpell castedSpell, RollResults dice)
 {
     if (player.NeedToBreakBeforeFiringEvent(EventType.SpellEvents, Name))
     {
         Debugger.Break();
     }
     Expressions.Do(OnSpellCastDieRollStopped, player, target, castedSpell, dice);
 }
예제 #3
0
 public void TriggerTargetSaves(Creature player, Target target, CastedSpell castedSpell, object customData = null)
 {
     if (player.NeedToBreakBeforeFiringEvent(EventType.SpellEvents, Name))
     {
         Debugger.Break();
     }
     Expressions.Do(OnTargetSaves, player, target, castedSpell, null, customData);
 }
예제 #4
0
 private void TriggerRollComplete(string arguments, Creature player)
 {
     if (player.NeedToBreakBeforeFiringEvent(EventType.FeatureEvents, Name))
     {
         Debugger.Break();
     }
     if (!string.IsNullOrWhiteSpace(OnRollComplete))
     {
         Expressions.Do(DndUtils.InjectParameters(OnRollComplete, Parameters, arguments), player);
     }
 }
예제 #5
0
 private void TriggerAfterPlayerSwingsWeapon(string arguments, Creature player)
 {
     if (player.NeedToBreakBeforeFiringEvent(EventType.FeatureEvents, Name))
     {
         Debugger.Break();
     }
     if (!string.IsNullOrWhiteSpace(AfterPlayerSwingsWeapon))
     {
         Expressions.Do(DndUtils.InjectParameters(AfterPlayerSwingsWeapon, Parameters, arguments), player);
     }
 }
예제 #6
0
 private void TriggerPlayerCastsSpell(string arguments, Creature player, CastedSpell spell)
 {
     if (Name == "WildMagicSurge")
     {
         //System.Diagnostics.Debugger.Break();
     }
     if (player.NeedToBreakBeforeFiringEvent(EventType.FeatureEvents, Name))
     {
         Debugger.Break();
     }
     if (!string.IsNullOrWhiteSpace(OnPlayerCastsSpell))
     {
         Expressions.Do(DndUtils.InjectParameters(OnPlayerCastsSpell, Parameters, arguments), player, null, spell);
     }
 }