Пример #1
0
 public Dialogue GetDialogue(NPC n)
 {
     if (_dialogueFile.Value.Contains("Marriage"))
     {
         return(new Dialogue(_ReplaceTokens(n.tryToGetMarriageSpecificDialogueElseReturnDefault(_dialogueKey.Value), n), n)
         {
             removeOnNextMove = true
         });
     }
     if (_isGendered.Value)
     {
         return(new Dialogue(_ReplaceTokens(Game1.LoadStringByGender(n.gender, _dialogueFile.Value + ":" + _dialogueKey.Value, _substitutions), n), n)
         {
             removeOnNextMove = true
         });
     }
     return(new Dialogue(_ReplaceTokens(Game1.content.LoadString(_dialogueFile.Value + ":" + _dialogueKey.Value, _substitutions), n), n)
     {
         removeOnNextMove = true
     });
 }