From 371b3c2c3bb24886f5f65d065bd19769e1852dbd Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Tue, 21 Nov 2023 08:23:58 +0100 Subject: [PATCH] [MIRROR] Fixes cursed/bad luck initializing with the wrong amount of incidents [MDB IGNORE] (#25162) * Fixes cursed/bad luck initializing with the wrong amount of incidents (#79846) ## About The Pull Request Fixes cursed/bad luck always spawning with only 1 incident. incidents_left should not have a default value for the arg, as if it's called with null it will use the incidents_left var. Fixes https://github.com/tgstation/tgstation/issues/79790 ## Changelog :cl: LT3 fix: Cursed/bad luck omen will now stick with the player for more than 1 incident /:cl: * Fixes cursed/bad luck initializing with the wrong amount of incidents --------- Co-authored-by: lessthanthree <83487515+lessthnthree@users.noreply.github.com> --- code/datums/components/omen.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/datums/components/omen.dm b/code/datums/components/omen.dm index f03f28b8d6a..56af8e6a9db 100644 --- a/code/datums/components/omen.dm +++ b/code/datums/components/omen.dm @@ -17,7 +17,7 @@ /// Base damage from negative events. Cursed take 25% of this damage. var/damage_mod = 1 -/datum/component/omen/Initialize(obj/vessel, incidents_left = 1, luck_mod, damage_mod) +/datum/component/omen/Initialize(obj/vessel, incidents_left, luck_mod, damage_mod) if(!isliving(parent)) return COMPONENT_INCOMPATIBLE