예제 #1
0
        public IItem PrizeRose()
        {
            IItem rose = new Item();

            rose.Id    = itemId++;
            rose.Level = 0;
            rose.KeyWords.Add("rose");
            rose.SentenceDescription = "rose";
            rose.ShortDescription    = "A beautiful prize {color} rose.";
            rose.LongDescription     = "This is the prize rose that the Kings Gardner has been growing.";
            rose.ExamineDescription  = "The rose has the most perfect flower that is in full boom.  It's no wonder that it is the prize flower in the garden.";

            rose.FlavorOptions.Add("{color}", new List <string>()
            {
                "red", "white", "yellow", "pink", "orange", "lilac", "purple"
            });

            IEnchantment enchantment = new GetEnchantment();

            enchantment.Effect            = new Replenish();
            enchantment.ActivationPercent = 100;
            rose.Enchantments.Add(enchantment);

            enchantment                   = new GetEnchantment();
            enchantment.Effect            = new MoveToOtherDimension();
            enchantment.ActivationPercent = 100;
            rose.Enchantments.Add(enchantment);

            enchantment                   = new DropEnchantment();
            enchantment.Effect            = new ReturnToNormalDimension();
            enchantment.ActivationPercent = 100;
            rose.Enchantments.Add(enchantment);

            return(rose);
        }
예제 #2
0
        public void Setup()
        {
            enchantment = new DropEnchantment();
            effect      = new Mock <IEffect>();
            parameter   = new Mock <IEffectParameter>();

            enchantment.ActivationPercent = 100;
            enchantment.Effect            = effect.Object;
            enchantment.Parameter         = parameter.Object;
        }
예제 #3
0
        public void Setup()
        {
            GlobalReference.GlobalValues = new GlobalValues();

            enchantment = new DropEnchantment();
            effect      = new Mock <IEffect>();
            parameter   = new Mock <IEffectParameter>();

            enchantment.ActivationPercent = 100;
            enchantment.Effect            = effect.Object;
            enchantment.Parameter         = parameter.Object;
        }