Skip to content

Issue #1582 - Add WoundRecoveryTimeModifier event#1583

Open
Styrium wants to merge 1 commit into
X2CommunityCore:masterfrom
Styrium:1582-Wound-Recovery-Hook
Open

Issue #1582 - Add WoundRecoveryTimeModifier event#1583
Styrium wants to merge 1 commit into
X2CommunityCore:masterfrom
Styrium:1582-Wound-Recovery-Hook

Conversation

@Styrium
Copy link
Copy Markdown
Contributor

@Styrium Styrium commented May 21, 2026

fixes #1582

@github-actions
Copy link
Copy Markdown
Contributor

Pull request modifies event listener templates

Difference (click to expand)
diff --git a/target/CHL_Event_Compiletest.uc b/target/CHL_Event_Compiletest.uc
index d46ef9f..eb5772e 100644
--- a/target/CHL_Event_Compiletest.uc
+++ b/target/CHL_Event_Compiletest.uc
@@ -1647,3 +1647,23 @@ static function EventListenerReturn OnWillRecoveryTimeModifier(Object EventData,
 	return ELR_NoInterrupt;
 }
 
+static function EventListenerReturn OnWoundRecoveryTimeModifier(Object EventData, Object EventSource, XComGameState GameState, Name EventID, Object CallbackObject)
+{
+	local XComGameState_HeadquartersProjectHealSoldier ProjectState;
+	local XComLWTuple Tuple;
+	local float TimeMultiplier;
+	local bool bAssumeActive;
+
+	ProjectState = XComGameState_HeadquartersProjectHealSoldier(EventSource);
+	Tuple = XComLWTuple(EventData);
+
+	TimeMultiplier = Tuple.Data[0].f;
+	bAssumeActive = Tuple.Data[1].b;
+
+	// Your code here
+
+	Tuple.Data[0].f = TimeMultiplier;
+
+	return ELR_NoInterrupt;
+}
+
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add hook to modify Wound Recovery rate

1 participant