Skip to content

Commit

Permalink
Merge pull request #3528 from CombatExtended-Continued/indicate-retal…
Browse files Browse the repository at this point in the history
…iation-target

Indicate target site for retaliation raids
  • Loading branch information
N7Huntsman authored Nov 1, 2024
2 parents 2d19d11 + 05990d3 commit 64a4b98
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 64a4b98

Please sign in to comment.