Skip to content

Commit

Permalink
[MIRROR] Fixes cursed/bad luck initializing with the wrong amount of …
Browse files Browse the repository at this point in the history
…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 tgstation/tgstation#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 <[email protected]>
  • Loading branch information
2 people authored and FFMirrorBot committed Nov 21, 2023
1 parent 88d6c16 commit 371b3c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/datums/components/omen.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 371b3c2

Please sign in to comment.