Skip to content

Commit

Permalink
Indicate target site for retaliation raids
Browse files Browse the repository at this point in the history
Currently, the message that pops up when a retaliation raid is impending
does not indicate which world object the raid is targeting, which
can be confusing if the player has multiple colonies or launched
a bombardment from a temporary map. So, make the target explicit
in the notification.
  • Loading branch information
mszabo-wikia committed Nov 1, 2024
1 parent 57d6c77 commit 05990d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Languages/English/Keyed/Messages.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
<CE_Message_CounterRaid_Desc>A group of fighters from {0} have arrived nearby.\n\nThey are preparing to attack in retaliation for the shelling of {1}.</CE_Message_CounterRaid_Desc>

<CE_Message_CounterShelling>Artillery fire incoming from {0} ({1}).</CE_Message_CounterShelling>
<CE_Message_CounterRaid>A group from {0} is planning to raid {1} soon in retaliation for recent events.</CE_Message_CounterRaid>
<CE_Message_CounterRaid>A group from {0} is planning to raid {1} at {2} soon in retaliation for recent events.</CE_Message_CounterRaid>

</LanguageData>
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public virtual void TryHostilityResponse(Faction attackingFaction, GlobalTargetI
if (ticksSinceRaided != raidMTBTicks && ticksSinceRaided > raidMTBTicks / 2f && Rand.Chance(RaidPropability / Mathf.Max(raidMTBTicks - ticksSinceRaided, 1)) && raider.TryRaid(attackerMap, revengePoints))
{
lastRaidTick = GenTicks.TicksGame;
Messages.Message("CE_Message_CounterRaid".Translate(parent.Label, attackingFaction.Name), MessageTypeDefOf.ThreatBig);
Messages.Message("CE_Message_CounterRaid".Translate(parent.Label, attackingFaction.Name, attackerMap.Parent.Label), MessageTypeDefOf.ThreatBig);
}
}
}
Expand Down

0 comments on commit 05990d3

Please sign in to comment.