Farmhouse_Basement_Revised/ScienceHouse.cs
/// <summary>
/// Intercepts the answerDialogueAction code in GameLocation to implement more house upgrade choices.
/// </summary>
/// <param name="questionAndAnswer">The question and answer to ask.</param>
/// <param name="questionParams">The parameters for the question if needed.</param>
/// <returns>parent if not needed, true otherwise</returns>
Intercepts the answerDialogueAction code in GameLocation to implement more house upgrade choices.
Intercepts the answerDialogueAction code in GameLocation to implement more house upgrade choices .
public override bool answerDialogueAction(string questionAndAnswer, string[] questionParams)
        {
            if (questionAndAnswer == null || !questionAndAnswer.Equals("carpenter_Upgrade") || !questionAndAnswer.Equals("upgrade_Yes"))
                return base.answerDialogueAction(questionAndAnswer, questionParams);
            if (mod != null) 
                mod.Monitor.Log("Successfully intercepted upgrade question.", LogLevel.Debug);
            switch (questionAndAnswer) {
                case "carpenter_Upgrade":
                    this.houseUpgradeOffer();
                    break;
                case "upgrade_Yes":
                    this.houseUpgradeAccept();
                    break;
            }
            return true;
        }
public override bool answerDialogueAction ( string questionAndAnswer , string [ ] questionParams ) { if ( questionAndAnswer == null || ! questionAndAnswer . Equals ( " " ) || ! questionAndAnswer . Equals ( " " ) ) return base . answerDialogueAction ( questionAndAnswer , questionParams ) ; if ( mod != null ) mod . Monitor . Log ( " " , LogLevel . Debug ) ; switch ( questionAndAnswer ) { case " " : this . houseUpgradeOffer ( ) ; break ; case " " : this . houseUpgradeAccept ( ) ; break ; } return true ; }
Intercepts the answerDialogueAction code in GameLocation to implement more house upgrade choices.
Intercepts the answerDialogueAction code in GameLocation to implement more house upgrade choices .
parent if not needed, true otherwise
parent if not needed true otherwise
questionAndAnswer
string
The question and answer to ask.
The question and answer to ask .
questionParams
string[]
The parameters for the question if needed.
The parameters for the question if needed .