Example #1
0
        public Entity Gen(EntityGenerationInfo info)
        {
            var tag = BasePropabilities.GetRand(info.Rnd);

            var e = GetBasic(tag);

            return(e);
        }
Example #2
0
        private void Morph(EntityGenerationInfo info, Entity e)
        {
            var roll = info.Rnd.Next(1, 3);

            if (roll == 1)
            {
                e.Name         = $"Cursed {e.Name}";
                e.EntityFlags |= EEntityFlag.Cursed;
            }
        }
Example #3
0
        public Entity Gen(EntityGenerationInfo info)
        {
            var d100 = new Range(1, 100);
            var f    = d100.Rand(info.Rnd);

            if (f <= 40)
            {
                return(_weaponFactory.Gen(info));
            }
            else
            {
                return(_potionFactory.Gen(info));
            }
        }