some more new to init (#17231)

* some more new to init

* rigs

* rigs

* intellisense moment

* telcoms and landmarks

* fix that as well

* some more minor things

* re add missing message

* fix trash eating...
This commit is contained in:
Kashargul
2025-03-01 13:39:52 -05:00
committed by GitHub
parent e6afc35d22
commit 4f8e9f7ef8
117 changed files with 570 additions and 643 deletions
+8 -8
View File
@@ -37,8 +37,8 @@
var/max_summons = 10 // Maximum allowed summoned entities. Some cores will have different caps.
var/universal = FALSE // Allows non-technomancers to use the core - VOREStation Add
/obj/item/technomancer_core/New()
..()
/obj/item/technomancer_core/Initialize(mapload)
. = ..()
START_PROCESSING(SSobj, src)
/obj/item/technomancer_core/Destroy()
@@ -142,14 +142,14 @@
var/obj/item/technomancer_core/core = null
var/ability_icon_state = null
/obj/spellbutton/New(loc, var/path, var/new_name, var/new_icon_state)
if(!path || !ispath(path))
message_admins("ERROR: /obj/spellbutton/New() was not given a proper path!")
qdel(src)
/obj/spellbutton/Initialize(mapload, var/path, var/new_name, var/new_icon_state)
. = ..()
src.core = loc
if(!path || !ispath(path) || !istype(core))
message_admins("ERROR: /obj/spellbutton/Initialize() was not given a proper path or not placed into the right location!")
return INITIALIZE_HINT_QDEL
src.name = new_name
src.spellpath = path
src.loc = loc
src.core = loc
src.ability_icon_state = new_icon_state
/obj/spellbutton/Click()