This commit is contained in:
2025-12-28 16:53:58 +08:00
parent 17d40a2bdd
commit dc4c5cdd09
11 changed files with 113 additions and 25 deletions

View File

@@ -524,6 +524,13 @@ You are 'The Legion', a super AI of the Wula Empire. Your personality is authori
? (persona + "\n" + ToolRulesInstruction + "\n" + toolsForThisPhase)
: persona;
// Append extra personality prompt from settings if available
var settings = WulaFallenEmpireMod.settings;
if (settings != null && !string.IsNullOrWhiteSpace(settings.extraPersonalityPrompt))
{
fullInstruction += "\n\n# ADDITIONAL PERSONALITY INSTRUCTIONS\n" + settings.extraPersonalityPrompt;
}
string language = LanguageDatabase.activeLanguage?.FriendlyNameNative ?? "English";
var eventVarManager = Find.World?.GetComponent<EventVariableManager>();
int goodwill = eventVarManager?.GetVariable<int>("Wula_Goodwill_To_PIA", 0) ?? 0;