Circuitry code improvements (#18822)

* Remove unncessary spawn from smoke circuit.

* Update to use untyped_list_add for primary circuitry lists

* Add a timer and callback to replace the spawn(0).

* Removed more spawn(0) and not needed callback
This commit is contained in:
Aura Dusklight
2025-11-24 21:31:49 +01:00
committed by GitHub
parent 85902a3e30
commit 048e8d5676
3 changed files with 10 additions and 13 deletions
+2 -4
View File
@@ -138,8 +138,7 @@
for(var/i = 0, i < range, i++) //calculate positions for smoke coverage - then spawn smoke
var/radius = i * 1.5
if(!radius)
spawn(0)
spawnSmoke(location, I, 1)
spawnSmoke(location, I, 1)
continue
var/offset = 0
@@ -157,8 +156,7 @@
if(!T)
continue
if(T in targetTurfs)
spawn(0)
spawnSmoke(T, I, range)
spawnSmoke(T, I, range)
//------------------------------------------
// Randomizes and spawns the smoke effect.