[MIRROR] more new to Init (#10183)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-02-15 19:06:56 -07:00
committed by GitHub
parent 001ec6a06b
commit e957f101c5
83 changed files with 984 additions and 995 deletions

View File

@@ -12,10 +12,11 @@
var/mob/my_mob = null // The mob that possesses this hud object.
/obj/screen/movable/ability_master/New(owner)
if(owner)
my_mob = owner
update_abilities(0, owner)
/obj/screen/movable/ability_master/Initialize(mapload)
. = ..()
if(ismob(loc))
my_mob = loc
update_abilities(0, loc)
overlays.Add(closed_state)
else
message_admins("ERROR: ability_master's New() was not given an owner argument. This is a bug.")
@@ -179,8 +180,8 @@
ability_master.toggle_open(1)
client.screen -= ability_master
/mob/New()
..()
/mob/Initialize(mapload)
. = ..()
if(!ability_master) //VOREStation Edit: S H A D E K I N
ability_master = new /obj/screen/movable/ability_master(src)

View File

@@ -864,8 +864,8 @@
mouse_opacity = 0
var/obj/screen/movable/mapper_holder/parent
/obj/screen/mapper/New()
..()
/obj/screen/mapper/Initialize(mapload)
. = ..()
parent = loc
/obj/screen/mapper/Destroy()