Beispiel #1
0
        private void copyPersonalityClicked(object sender, RoutedEventArgs e)
        {
            CopyPersonalityWindow window = new CopyPersonalityWindow(Personality);

            if (window.ShowDialog() == true)
            {
                string      PersonalityName        = window.PersonalityName == null ? null : window.PersonalityName.Trim();
                string      PersonalityDescription = window.PersonalityDescription == null ? null : window.PersonalityDescription.Trim();
                Personality newPersonality         = Personality.Copy(PersonalityName, PersonalityDescription);
                Personalities.Add(newPersonality);
                Personality = newPersonality;
            }
        }
 private void copyPersonalityClicked(object sender, RoutedEventArgs e)
 {
     EDDI.Instance.SpeechResponderModalWait = true;
     CopyPersonalityWindow window = new CopyPersonalityWindow(Personality);
     if (window.ShowDialog() == true)
     {
         string PersonalityName = window.PersonalityName?.Trim();
         string PersonalityDescription = window.PersonalityDescription?.Trim();
         Personality newPersonality = Personality.Copy(PersonalityName, PersonalityDescription);
         Personalities.Add(newPersonality);
         Personality = newPersonality;
     }
     EDDI.Instance.SpeechResponderModalWait = false;
 }
Beispiel #3
0
 public Elemental(ElementType elementType)
 {
     SetElement(elementType);
     Personalities.Add(new Personality.Elemental());
     TypeOfMob = MobType.Other;
 }
Beispiel #4
0
 public Hydra() : base()
 {
     Personalities.Add(new Personality.Hydra());
     RoundOfDamage = new RoundOfDamage();
     AddAttribute(MobileAttribute.NoDisarm);
 }