mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-26 21:49:11 +01:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user