Files
Bubberstation/code/game/objects/effects/effect_system/effect_shield.dm
tralezab 6c01cc2c01 every case of initialize that should have mapload, does (#61623)
## About The Pull Request

stop forgetting to include mapload, if you don't include it then every single subtype past it by default doesn't include it

for example, `obj/item` didn't include mapload so every single item by default didn't fill in mapload

![](https://media.discordapp.net/attachments/823293417186000909/875122648605147146/image0.gif)

## Regex used:

procs without args, not even regex

`/Initialize()`

procs with args
`\/Initialize\((?!mapload)((.)*\w)?`

cleanup of things i didn't want to mapload:
`\/datum\/(.)*\/Initialize\(mapload`
2021-09-24 17:56:50 -04:00

27 lines
591 B
Plaintext

/obj/effect/shield
name = "shield"
icon = 'icons/effects/effects.dmi'
icon_state = "wave2"
layer = ABOVE_NORMAL_TURF_LAYER
flags_1 = PREVENT_CLICK_UNDER_1
anchored = TRUE
var/old_heat_capacity
/obj/effect/shield/Initialize(mapload)
. = ..()
var/turf/location = get_turf(src)
old_heat_capacity=location.heat_capacity
location.heat_capacity = INFINITY
/obj/effect/shield/Destroy()
var/turf/location = get_turf(src)
location.heat_capacity=old_heat_capacity
return ..()
/obj/effect/shield/singularity_act()
return
/obj/effect/shield/singularity_pull(S, current_size)
return