Beispiel #1
0
 /// <summary>
 /// Abilitieses the modified.
 /// </summary>
 /// <param name="sender">Sender of the event.</param>
 /// <param name="args">Arguments that modified the ability</param>
 private void AbilityModified(object sender, AbilityModifiedEventArgs args)
 {
     if (args.Ability.Name == AbilityScoreTypes.Dexterity)
     {
         this.UpdateInitiative();
     }
 }
Beispiel #2
0
 /// <summary>
 /// Raises the modified event.
 /// </summary>
 /// <param name="changed">The ability score that changed</param>
 private void OnModified(AbilityScore changed)
 {
     if (this.Modified != null)
     {
         var args = new AbilityModifiedEventArgs();
         args.Ability = changed;
         this.Modified(this, args);
     }
 }