mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 06:00:16 +01:00
[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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user