Fixes supermatter anomalies being able to drop anomaly cores. (#93611)

## About The Pull Request
Readds the drops_core argument for determining whether an anomaly is
capable of dropping a core through any means possible.

## Why It's Good For The Game
For intended behaviour of the supermatter.

## Changelog

🆑
fix: Supermatter anomalies no longer drop anomaly cores.
fix: Fix supermatter flux anomalies from sm delam not emping or
whatever.
/🆑
This commit is contained in:
Pickle-Coding
2025-10-29 01:02:47 +01:00
committed by GitHub
parent 6e032a6aca
commit 0eebcc0f54
@@ -24,7 +24,7 @@
///Chance per second that we will move
var/move_chance = ANOMALY_MOVECHANCE
/obj/effect/anomaly/Initialize(mapload, new_lifespan)
/obj/effect/anomaly/Initialize(mapload, new_lifespan, drops_core = TRUE)
. = ..()
if(!mapload)
@@ -36,6 +36,9 @@
if (!impact_area)
return INITIALIZE_HINT_QDEL
if(!drops_core)
anomaly_core = null
if(anomaly_core)
anomaly_core = new anomaly_core(src)
anomaly_core.code = rand(1,100)