This commit is contained in:
2025-12-14 11:06:58 +08:00
parent 1551e7cb07
commit bd534a5b91
7 changed files with 285 additions and 49 deletions

View File

@@ -153,20 +153,7 @@ namespace WulaFallenEmpire.EventSystem.AI.Tools
if (thingsToDrop.Count > 0)
{
// If the conversation window pauses the game, incoming drop pods may not "land" until unpaused.
// To keep this tool reliable, place items immediately when paused; otherwise, use drop pods.
bool isPaused = Find.TickManager != null && Find.TickManager.Paused;
if (isPaused)
{
foreach (var thing in thingsToDrop)
{
GenPlace.TryPlaceThing(thing, dropSpot, map, ThingPlaceMode.Near);
}
}
else
{
DropPodUtility.DropThingsNear(dropSpot, map, thingsToDrop);
}
DropPodUtility.DropThingsNear(dropSpot, map, thingsToDrop);
Faction faction = Find.FactionManager.FirstFactionOfDef(FactionDef.Named("Wula_PIA_Legion_Faction"));
// Avoid unresolved named placeholders if the translation system doesn't pick up NamedArguments as expected.
@@ -176,7 +163,7 @@ namespace WulaFallenEmpire.EventSystem.AI.Tools
Messages.Message(letterText, new LookTargets(dropSpot, map), MessageTypeDefOf.PositiveEvent);
resultLog.Length -= 2; // Remove trailing comma
resultLog.Append($" at {dropSpot}. {(isPaused ? "(placed immediately because game is paused)" : "(drop pods inbound)")}");
resultLog.Append($" at {dropSpot}. (drop pods inbound)");
if (Prefs.DevMode && substitutions.Count > 0)
{