This commit is contained in:
2025-12-13 15:56:14 +08:00
parent 35cef08906
commit d477477043
3 changed files with 10 additions and 5 deletions

View File

@@ -5,6 +5,7 @@ using System.Text;
using RimWorld;
using Verse;
using Verse.AI.Group;
using WulaFallenEmpire;
namespace WulaFallenEmpire.EventSystem.AI.Tools
{
@@ -107,7 +108,7 @@ namespace WulaFallenEmpire.EventSystem.AI.Tools
if (pawnsToSpawn.Count == 0) return "Error: No valid units specified.";
// Apply Goodwill modifier to points
var eventVarManager = Find.World.GetComponent<WulaFallenEmpire.EventVariableManager>();
var eventVarManager = Find.World.GetComponent<EventVariableManager>();
int goodwill = eventVarManager.GetVariable<int>("Wula_Goodwill_To_PIA", 0);
float goodwillFactor = 1.0f;
bool hostile = faction.HostileTo(Faction.OfPlayer);