Exemple #1
0
        public void ReturnsCorrectValue(Gender gender, string values, string expected)
        {
            var entity = new Mobile(new ProtoMobile()
            {
                Gender = gender
            });

            Assert.Equal(expected, entity.Affix(values));
        }
Exemple #2
0
        public static void ActEnterFrom(this Mobile actor, Direction fromDir)
        {
            var direction =
                fromDir == Direction.Up ? "сверху" :
                fromDir == Direction.Down ? "снизу" :
                fromDir == Direction.Somewhere ? "откуда-то" :
                $"с {fromDir.GetName()}а";

            actor.Perform($"{actor.Name.Nom} приш{actor.Affix("ел|ла|ло")} {direction}.<br>");
        }
Exemple #3
0
 public static void ActDrop(this Mobile actor, Item item)
 {
     actor.Report($"Вы бросили {item.Name.Acc}.<br>");
     actor.Perform($"{actor.Name.Nom} броси{actor.Affix("л|ла|ло")} {item.Name.Acc}.<br>");
 }
Exemple #4
0
 public static void ActTake(this Mobile actor, Item item)
 {
     actor.Report($"Вы взяли {item.Name.Acc}.<br>");
     actor.Perform($"{actor.Name.Nom} взя{actor.Affix("л|ла|ло")} {item.Name.Acc}.<br>");
 }