示例#1
0
        private static List <ItemInstance> GetRewards(Entity questor, Entity provider, List <QuestStep> steps)
        {
            List <ItemInstance> rewards = new List <ItemInstance>();
            int reward = ((steps.Count * 100) + (provider.HasRelationship(questor.GUID) * (questor.Statistics[StatisticIndex.Personality].Value)));

            rewards.Add(BagOfGoldHelper.GetBagOfGold(reward));

            return(rewards);
        }
示例#2
0
        public QuestProvider(
            IEntityRelationshipHandler entityRelationshipHandler,
            ILiveItemHandler itemHandler,
            IItemFactory itemFactory,
            RNG roller)
        {
            this.BagOfGoldHelper           = new BagOfGoldHelper(itemHandler, itemFactory);
            this.Roller                    = roller;
            this.EntityRelationshipHandler = entityRelationshipHandler;

            this.Actions = GlobalConstants.ScriptingEngine.FetchAndInitialiseChildren <IQuestAction>().ToList();
        }