Difference (click to expand)
```diff
diff --git a/target/CHL_Event_Compiletest.uc b/target/CHL_Event_Compiletest.uc
index 119ff6b..03d8f1b 100644
--- a/target/CHL_Event_Compiletest.uc
+++ b/target/CHL_Event_Compiletest.uc
@@ -506,6 +506,24 @@ static function EventListenerReturn OnOverrideDisableReinforcementsFlare(Object
return ELR_NoInterrupt;
}
+static function EventListenerReturn OnOverrideEligibleStartingRegion(Object EventData, Object EventSource, XComGameState GameState, Name EventID, Object CallbackObject)
+{
+ local XComGameState_WorldRegion PotentialStartRegion;
+ local XComLWTuple Tuple;
+ local bool ValidStartRegion;
+
+ PotentialStartRegion = XComGameState_WorldRegion(EventSource);
+ Tuple = XComLWTuple(EventData);
+
+ ValidStartRegion = Tuple.Data[0].b;
+
+ // Your code here
+
+ Tuple.Data[0].b = ValidStartRegion;
+
+ return ELR_NoInterrupt;
+}
+
static function EventListenerReturn OnOverrideEncounterZoneAnchorPoint(Object EventData, Object EventSource, XComGameState GameState, Name EventID, Object CallbackObject)
{
local XComGameState_AIGroup AIGroup;
```
What? (click to expand)
The Highlander documentation tool generates event listener examples from event specifications.
This comment contains the modifications that would be made to the copy-pasteable event listeners in documentation, for PR authors and reviewers to inspect for correctness, and will automatically be kept up-to-date whenever this PR is updated.
Fixes issue #1303 using option #1 of an override event to allow mods to override the behavior of this function.