mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 13:10:02 +01:00
Fix randomized reaction persistence (#95835)
## About The Pull Request The wrong data was passed to the random reaction initialization Fixes #95830 ## Why It's Good For The Game <img width="498" height="302" alt="livrah-streamer" src="https://github.com/user-attachments/assets/ec40d522-13ba-42cf-a769-8aece283c1ac" /> ## Changelog 🆑 fix: metalgen and secret sauce recipes are now loaded properly /🆑 --------- Co-authored-by: l0 <--> Co-authored-by: SyncIt21 <110812394+SyncIt21@users.noreply.github.com>
This commit is contained in:
co-authored by
l0 <-->
SyncIt21
parent
8a342df575
commit
847b299aa9
@@ -134,7 +134,7 @@ GLOBAL_LIST_INIT(stacked_metabolization_effect, init_chemical_side_effects())
|
||||
if(ispath(reaction, /datum/chemical_reaction/randomized))
|
||||
var/target_path = reaction
|
||||
var/index = reactions.Find(reaction)
|
||||
reaction = new target_path(json)
|
||||
reaction = new target_path(LAZYACCESS(json, "[target_path]"))
|
||||
|
||||
//failed to init
|
||||
if(QDELETED(reaction))
|
||||
|
||||
Reference in New Issue
Block a user