Exemplo n.º 1
0
        public KillTask KillTask(Character giver, Character taker, Motivation motivation)
        {
            var target       = vd.GetRandomTarget();
            var targetNumber = rand.Next(19) + 1;

            var reward       = id.GetRandomReward();
            var rewardNumber = rand.Next(19) + 1;

            var task = new KillTask
            {
                Title       = $"Kill {targetNumber} {target}",
                Description = "{{kill task}}",

                Giver      = giver,
                Taker      = taker,
                Motivation = motivation,

                Target      = target,
                Count       = targetNumber,
                Reward      = reward,
                RewardCount = rewardNumber
            };

            return(task);
        }
Exemplo n.º 2
0
        public DeliverTask DeliverTask(Character giver, Character taker, Motivation motivation)
        {
            var destination = cg.Character();

            var item = id.GetRandomDelivery();

            var reward       = id.GetRandomReward();
            var rewardNumber = rand.Next(19) + 1;

            var task = new DeliverTask
            {
                Title       = $"Deliver {item} to {destination}",
                Description = "{{deliver task}}",

                Giver      = giver,
                Taker      = taker,
                Motivation = motivation,

                Destination = destination,
                Item        = item,
                Reward      = reward,
                RewardCount = rewardNumber
            };

            return(task);
        }
Exemplo n.º 3
0
        public CollectTask CollectTask(Character giver, Character taker, Motivation motivation)
        {
            var fetch       = id.GetRandomItem();
            var fetchNumber = rand.Next(19) + 1;

            var reward       = id.GetRandomReward(fetch);
            var rewardNumber = rand.Next(19) + 1;

            var task = new CollectTask
            {
                Title       = "Retrieve a " + fetch.Name,
                Description = "{{collect task}}",

                Giver      = giver,
                Taker      = taker,
                Motivation = motivation,

                Item        = fetch,
                Count       = fetchNumber,
                Reward      = reward,
                RewardCount = rewardNumber
            };

            return(task);
        }