[MIRROR] Fix actionspeed modifiers with IDs being broken (#28035)

* Fix actionspeed modifiers with IDs being broken (#83758)

## About The Pull Request

#78124 added an init arg to these which 99% of actionspeed modifiers
don't pass, so it's passed as null, so it sets id = null, so any preset
ids get nulled out, meaning actionspeed modifiers intended on overriding
each other don't.

## Changelog

🆑 Melbert
fix: Fix some modifiers to do after speed (sanity, midas gun) stacking
when they shouldn't
/🆑

* Fix actionspeed modifiers with IDs being broken

---------

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
This commit is contained in:
SkyratBot
2024-06-07 06:31:25 +02:00
committed by GitHub
co-authored by MrMelbert
parent 73933ed410
commit 95d6f6d0a8
@@ -40,7 +40,8 @@ can next move
/datum/actionspeed_modifier/New(init_id)
. = ..()
id = init_id
if(init_id)
id = init_id
if(!id)
id = "[type]" //We turn the path into a string.