示例#1
0
        /// <summary>
        /// Blacksmiths response after buying an item
        /// </summary>
        /// <returns></returns>
        public string GetDoneResponse()
        {
            string doneResponse = ShoppeKeeperDialogueReference.GetMerchantString(
                DataOvlReference.StringReferences.GetString(DataOvlReference.ShoppeKeeperSellingStrings
                                                            .YES_DONE_SAYS_NAME), shoppeKeeperName: TheShoppeKeeperReference.ShoppeKeeperName);

            return(doneResponse.Replace("!\"\n", "\"! "));
        }
示例#2
0
        /// <summary>
        /// Gets merchant response to asking to buy a piece of equipment
        /// </summary>
        /// <param name="nEquipmentIndex">index into dialogue array</param>
        /// <param name="nGold">how much gold will it cost?</param>
        /// <returns>the complete response string</returns>
        private string GetEquipmentBuyingOutput(int nEquipmentIndex, int nGold)
        {
            int nDialogueIndex = _equipmentMapToMerchantStrings[nEquipmentIndex];

            Debug.Assert(nEquipmentIndex >= 0 && nEquipmentIndex <= (int)DataOvlReference.Equipment.SpikedCollar);
            Debug.Assert(ShoppeKeeperDialogueReference.CountReplacementVariables(nDialogueIndex) == 1);
            return(ShoppeKeeperDialogueReference.GetMerchantString(nDialogueIndex, nGold: nGold));
        }
示例#3
0
 /// <summary>
 /// The blacksmiths nasty response to attempting to sell ammo
 /// </summary>
 /// <returns></returns>
 public string DontDealInAmmoOutput()
 {
     return(ShoppeKeeperDialogueReference.GetMerchantString(DataOvlReference.StringReferences.GetString(
                                                                DataOvlReference.ShoppeKeeperSellingStrings
                                                                .DONT_DEAL_AMMO_GROWL_NAME), shoppeKeeperName: TheShoppeKeeperReference.ShoppeKeeperName));
 }
示例#4
0
        /// <summary>
        /// Gets the response string when vendor is trying to sell a particular piece of equipment
        /// </summary>
        /// <param name="nGold">how much to charge?</param>
        /// <param name="equipmentName">the name of the equipment</param>
        /// <returns>the complete response string</returns>
        public string GetEquipmentSellingOutput(int nGold, string equipmentName)
        {
            int sellStringIndex = ShoppeKeeperDialogueReference.GetRandomIndexFromRange(49, 56);

            return(ShoppeKeeperDialogueReference.GetMerchantString(sellStringIndex, nGold: nGold, equipmentName: equipmentName));
        }