mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-03 05:21:27 +00:00
[MIRROR] Moves "catch this var/flag" code from obj/init and datum/new into the types that use it [MDB IGNORE] (#16091)
* Moves "catch this var/flag" code from obj/init and datum/new into the types that use it * Update atoms_movable.dm * Update airlock.dm * SRCC Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com> Co-authored-by: Zonespace <41448081+Zonespace27@users.noreply.github.com> Co-authored-by: John Doe <gamingskeleton3@gmail.com>
This commit is contained in:
@@ -283,6 +283,17 @@ INITIALIZE_IMMEDIATE(/obj/effect/mapping_helpers/no_lava)
|
||||
/obj/effect/mapping_helpers/atom_injector/proc/generate_stack_trace()
|
||||
. = "[name] found no targets at ([x], [y], [z]). First Match Only: [first_match_only ? "true" : "false"] target type: [target_type] | target name: [target_name]"
|
||||
|
||||
/obj/effect/mapping_helpers/atom_injector/obj_flag
|
||||
name = "Obj Flag Injector"
|
||||
icon_state = "objflag_helper"
|
||||
var/inject_flags = NONE
|
||||
|
||||
/obj/effect/mapping_helpers/atom_injector/obj_flag/inject(atom/target)
|
||||
if(!isobj(target))
|
||||
return
|
||||
var/obj/obj_target = target
|
||||
obj_target.obj_flags |= inject_flags
|
||||
|
||||
///This helper applies components to things on the map directly.
|
||||
/obj/effect/mapping_helpers/atom_injector/component_injector
|
||||
name = "Component Injector"
|
||||
|
||||
Reference in New Issue
Block a user