From 52b75cfb8605521ac83e8ccb9f59e46f9f62dbfb Mon Sep 17 00:00:00 2001 From: NoMathExpectation <85624722+NoMathExpectation@users.noreply.github.com> Date: Thu, 2 Jul 2026 13:53:07 +0800 Subject: [PATCH] Added reducedStrength to CustomFlashEvent. --- .../kotlin/cn/rdlevel/rdkt/core/events/CustomFlashEvent.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/commonMain/kotlin/cn/rdlevel/rdkt/core/events/CustomFlashEvent.kt b/core/src/commonMain/kotlin/cn/rdlevel/rdkt/core/events/CustomFlashEvent.kt index d1dc4b1..0a84879 100644 --- a/core/src/commonMain/kotlin/cn/rdlevel/rdkt/core/events/CustomFlashEvent.kt +++ b/core/src/commonMain/kotlin/cn/rdlevel/rdkt/core/events/CustomFlashEvent.kt @@ -12,6 +12,7 @@ import kotlinx.serialization.Serializable * @property endColor The end color of the flash. * @property endOpacity The end opacity of the flash. * @property background Whether the flash should be a background flash or a foreground flash. + * @property reducedStrength The percentage of the flash strength to reduce when reduced flashing is on. */ @Serializable @SerialName("CustomFlash") @@ -23,6 +24,7 @@ public data class CustomFlashEvent( var background: Boolean = false, override var duration: Double = 2.0, override var ease: Easing = Easing.LINEAR, + var reducedStrength: Int? = null, override var rooms: RoomsOrTopLayer = roomsOf(ROOM1), ) : ActionEvent(), MutableRoomsOrTopLayerSpecificEvent, DurationEaseSpecificEvent { /**