Esempio n. 1
0
        private static IItem CreateCursedDoll(Vector2 worldIndex, World world)
        {
            ITemporaryEffect effect = new ReducedVisionTemporaryEffect(10, 99999);

            return(new Item("Cursed Doll", world, worldIndex, new DestroyUseStrategy(), new ApplyTemporaryEffectGetStrategy(effect), new RemoveTemporaryEffectGiveStrategy(effect.Id), ItemCategories.Treasure, ItemTypes.CursedDoll));
        }
Esempio n. 2
0
        private static IItem CreatePotionOfBlindness(Vector2 worldIndex, World world)
        {
            ITemporaryEffect effect = new ReducedVisionTemporaryEffect(100, 25);

            return(new Item("Potion of Blindness", world, worldIndex, new ApplyTemporaryEffect(effect), new StandardGetStrategy(), new StandardGiveStrategy(), ItemCategories.Potion, ItemTypes.PotionOfBlindness));
        }