Exemple #1
0
        private void ApplyPartyAdditions(Reward reward)
        {
            if (reward.PartyAdditions == null || reward.PartyAdditions.Count < 1)
            {
                return;
            }

            foreach (var companion in reward.PartyAdditions)
            {
                Party.AddCompanion(companion);

                var entityDto = new TravelMessenger.EntityMessageDto
                {
                    Message   = BuildPartyAdditionTextItem(companion),
                    Portrait  = companion.Portrait,
                    TextColor = _travelMessenger.rewardColor
                };

                _travelMessenger.QueueEntityMessage(entityDto);
            }
        }