Fix some missing Initialize hints (#53566)

* Fix some missing initialize hints

* Whitelist /mob/dview not calling /atom/Initialize()

* Better idea
This commit is contained in:
Tad Hardesty
2020-09-13 20:34:12 +08:00
committed by GitHub
parent 7e62ebba0d
commit 899a9e04cb
5 changed files with 7 additions and 4 deletions
+3
View File
@@ -1178,6 +1178,9 @@ GLOBAL_DATUM_INIT(dview_mob, /mob/dview, new)
/mob/dview/Initialize() //Properly prevents this mob from gaining huds or joining any global lists
SHOULD_CALL_PARENT(FALSE)
if(flags_1 & INITIALIZED_1)
stack_trace("Warning: [src]([type]) initialized multiple times!")
flags_1 |= INITIALIZED_1
return INITIALIZE_HINT_NORMAL
/mob/dview/Destroy(force = FALSE)
+1 -1
View File
@@ -15,7 +15,7 @@
icon_state = "walkietalkie"
/obj/item/implant/radio/antenna/Initialize(mapload)
..()
. = ..()
radio.name = "internal antenna"
/datum/mutation/human/antenna/on_acquiring(mob/living/carbon/human/owner)
+1 -1
View File
@@ -244,7 +244,7 @@ for further reading, please see: https://github.com/tgstation/tgstation/pull/301
user.gain_trauma(/datum/brain_trauma/magic/stalker, TRAUMA_RESILIENCE_MAGIC)
/obj/item/katana/cursed/Initialize()
..()
. = ..()
ADD_TRAIT(src, TRAIT_NODROP, CURSED_ITEM_TRAIT)
/obj/item/wirerod
+1 -1
View File
@@ -534,9 +534,9 @@
layer = PROJECTILE_HIT_THRESHHOLD_LAYER
/obj/effect/pod_landingzone_effect/Initialize(mapload, obj/structure/closet/supplypod/pod)
. = ..()
transform = matrix() * 1.5
animate(src, transform = matrix()*0.01, time = pod.landingDelay+pod.fallDuration)
..()
/obj/effect/pod_landingzone //This is the object that forceMoves the supplypod to it's location
name = "Landing Zone Indicator"
+1 -1
View File
@@ -42,7 +42,7 @@
var/spines = "None"
/obj/item/organ/tail/lizard/Initialize()
..()
. = ..()
color = "#"+ random_color()
/obj/item/organ/tail/lizard/Insert(mob/living/carbon/human/H, special = 0, drop_if_replaced = TRUE)