X2CommunityCore / X2WOTCCommunityHighlander

https://steamcommunity.com/workshop/filedetails/?id=1134256495
MIT License
60 stars 68 forks source link

Re-add event to allow mods to adjust UFO interception time #1317

Closed Tedster59 closed 7 months ago

Tedster59 commented 7 months ago

Fixes issue #1316.

This event existed in the LW2 Highlander as well as the non-WOTC X2CommunityHighlander. This pull request re-adds it and documents it so LWoTC can use this event for its original purpose of adjusting the UFO interception time for systems such as Long War that do not use the base game mission calendar.

github-actions[bot] commented 7 months ago

Pull request modifies event listener templates

Difference (click to expand) ```diff diff --git a/target/CHL_Event_Compiletest.uc b/target/CHL_Event_Compiletest.uc index 03d8f1b..7006534 100644 --- a/target/CHL_Event_Compiletest.uc +++ b/target/CHL_Event_Compiletest.uc @@ -1196,6 +1196,13 @@ static function EventListenerReturn OnPostSquaddieLoadoutApplied(Object EventDat return ELR_NoInterrupt; } +static function EventListenerReturn OnPostUFOSetInterceptionTime(Object EventData, Object EventSource, XComGameState GameState, Name EventID, Object CallbackObject) +{ + // Your code here + + return ELR_NoInterrupt; +} + static function EventListenerReturn OnPreCompleteStrategyFromTacticalTransfer(Object EventData, Object EventSource, XComGameState GameState, Name EventID, Object CallbackObject) { // Your code here ```
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.