mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-29 19:11:51 +00:00
* Lighting object oddities (#76009) ## About The Pull Request Fire stacks status effect no longer uses a weakref for the mob light, I am pretty sure there was no real reason to use a weakref there. Deleted weird luminescent glow dummy, now it just uses the standard moblight obj. Put all /obj/effect/dummy/lighting_obj together in a single file and added a comment explaining why they exist. (I severely dislike the /obj/effect/dummy typepath, but I am very much unsure if just replacing all of them with /obj/effect/abstract would break shit) ## Why It's Good For The Game Code organization good * Lighting object oddities * Update kindle.dm --------- Co-authored-by: ChungusGamer666 <82850673+ChungusGamer666@users.noreply.github.com> Co-authored-by: lessthanthree <83487515+lessthnthree@users.noreply.github.com>
81 lines
1.8 KiB
Plaintext
81 lines
1.8 KiB
Plaintext
//The effect when you wrap a dead body in gift wrap
|
|
/obj/effect/spresent
|
|
name = "strange present"
|
|
desc = "It's a ... present?"
|
|
icon = 'icons/obj/storage/wrapping.dmi'
|
|
icon_state = "strangepresent"
|
|
density = TRUE
|
|
anchored = FALSE
|
|
|
|
/obj/effect/beam
|
|
name = "beam"
|
|
var/def_zone
|
|
pass_flags = PASSTABLE
|
|
|
|
/obj/effect/beam/singularity_act()
|
|
return
|
|
|
|
/obj/effect/beam/singularity_pull()
|
|
return
|
|
|
|
/obj/effect/spawner
|
|
name = "object spawner"
|
|
|
|
// Brief explanation:
|
|
// Rather then setting up and then deleting spawners, we block all atomlike setup
|
|
// and do the absolute bare minimum
|
|
// This is with the intent of optimizing mapload
|
|
/obj/effect/spawner/Initialize(mapload)
|
|
SHOULD_CALL_PARENT(FALSE)
|
|
if(flags_1 & INITIALIZED_1)
|
|
stack_trace("Warning: [src]([type]) initialized multiple times!")
|
|
flags_1 |= INITIALIZED_1
|
|
|
|
return INITIALIZE_HINT_QDEL
|
|
|
|
/obj/effect/spawner/Destroy(force)
|
|
SHOULD_CALL_PARENT(FALSE)
|
|
moveToNullspace()
|
|
return QDEL_HINT_QUEUE
|
|
|
|
/obj/effect/list_container
|
|
name = "list container"
|
|
|
|
/obj/effect/list_container/mobl
|
|
name = "mobl"
|
|
var/master = null
|
|
|
|
var/list/container = list()
|
|
|
|
//Makes a tile fully lit no matter what
|
|
/obj/effect/fullbright
|
|
icon = 'icons/effects/alphacolors.dmi'
|
|
icon_state = "white"
|
|
plane = LIGHTING_PLANE
|
|
layer = LIGHTING_ABOVE_ALL
|
|
blend_mode = BLEND_ADD
|
|
luminosity = 1
|
|
|
|
/obj/effect/abstract/marker
|
|
name = "marker"
|
|
icon = 'icons/effects/effects.dmi'
|
|
anchored = TRUE
|
|
icon_state = "wave3"
|
|
layer = RIPPLE_LAYER
|
|
plane = ABOVE_GAME_PLANE
|
|
|
|
/obj/effect/abstract/marker/Initialize(mapload)
|
|
. = ..()
|
|
GLOB.all_abstract_markers += src
|
|
|
|
/obj/effect/abstract/marker/Destroy()
|
|
GLOB.all_abstract_markers -= src
|
|
. = ..()
|
|
|
|
/obj/effect/abstract/marker/at
|
|
name = "active turf marker"
|
|
|
|
/obj/effect/abstract/marker/intercom
|
|
name = "intercom range marker"
|
|
color = COLOR_YELLOW
|