Example #1
0
        public ShoppingSettings GetShoppingSettings(Player player, NPC npc)
        {
            ShoppingSettings shoppingSettings = default(ShoppingSettings);

            shoppingSettings.PriceAdjustment = 1.0;
            shoppingSettings.HappinessReport = "";
            ShoppingSettings result = shoppingSettings;

            _currentNPCBeingTalkedTo = npc;
            _currentPlayerTalking    = player;
            ProcessMood(player, npc);
            result.PriceAdjustment = _currentPriceAdjustment;
            result.HappinessReport = _currentHappiness;
            return(result);
        }
Example #2
0
        public ShoppingSettings GetShoppingSettings(Player player, NPC npc)
        {
            ShoppingSettings shoppingSettings = new ShoppingSettings()
            {
                PriceAdjustment = 1.0,
                HappinessReport = ""
            };

            this._currentNPCBeingTalkedTo = npc;
            this._currentPlayerTalking    = player;
            this.ProcessMood(player, npc);
            shoppingSettings.PriceAdjustment = (double)this._currentPriceAdjustment;
            shoppingSettings.HappinessReport = this._currentHappiness;
            return(shoppingSettings);
        }