more new to Init (#17147)

* more new to Init

* fix pumps

* style update

* fix atmos memory leak

* fix mech

* qdel in here

* Update hands.dm

* Update rings.dm
This commit is contained in:
Kashargul
2025-02-16 00:16:15 +01:00
committed by GitHub
parent f7de6141b5
commit 2ae6355aff
82 changed files with 988 additions and 986 deletions
+2 -2
View File
@@ -44,7 +44,7 @@
updateVisibility(src)
return ..()
/obj/effect/Initialize()
/obj/effect/Initialize(mapload)
. = ..()
updateVisibility(src)
@@ -56,4 +56,4 @@
// Glass door glass = 1
// don't check then?
if(!glass)
updateVisibility(src, 0)
updateVisibility(src, 0)
@@ -13,14 +13,14 @@
mecha = null//This does not appear to be used outside of reference in mecha.dm.
/obj/item/mmi/digital/posibrain/attack_self(mob/user as mob)
/obj/item/mmi/digital/posibrain/attack_self(mob/user)
if(brainmob && !brainmob.key && searching == 0)
//Start the process of searching for a new user.
to_chat(user, span_blue("You carefully locate the manual activation switch and start the positronic brain's boot process."))
icon_state = "posibrain-searching"
src.searching = 1
src.request_player()
spawn(600) reset_search()
searching = 1
request_player()
addtimer(CALLBACK(src, PROC_REF(reset_search)), 60 SECONDS, TIMER_DELETE_ME)
/obj/item/mmi/digital/posibrain/proc/request_player()
for(var/mob/observer/dead/O in player_list)
@@ -100,7 +100,7 @@
src.brainmob.emp_damage += rand(0,5)
..()
/obj/item/mmi/digital/posibrain/New()
..()
src.brainmob.name = "[pick(list("PBU","HIU","SINA","ARMA","OSI"))]-[rand(100, 999)]"
src.brainmob.real_name = src.brainmob.name
/obj/item/mmi/digital/posibrain/Initialize(mapload)
. = ..()
brainmob.name = "[pick(list("PBU","HIU","SINA","ARMA","OSI"))]-[rand(100, 999)]"
brainmob.real_name = brainmob.name
@@ -6,11 +6,11 @@
w_class = ITEMSIZE_NORMAL
origin_tech = list(TECH_ENGINEERING = 4, TECH_MATERIAL = 3, TECH_DATA = 4)
/obj/item/mmi/digital/robot/New()
..()
src.brainmob.name = "[pick(list("ADA","DOS","GNU","MAC","WIN"))]-[rand(1000, 9999)]"
src.brainmob.real_name = src.brainmob.name
src.name = "robotic intelligence circuit ([src.brainmob.name])"
/obj/item/mmi/digital/robot/Initialize(mapload)
. = ..()
brainmob.name = "[pick(list("ADA","DOS","GNU","MAC","WIN"))]-[rand(1000, 9999)]"
brainmob.real_name = brainmob.name
name = "robotic intelligence circuit ([brainmob.name])"
/obj/item/mmi/digital/robot/transfer_identity(var/mob/living/carbon/H)
..()
@@ -19,5 +19,5 @@
to_chat(brainmob, span_notify("You feel slightly disoriented. That's normal when you're little more than a complex circuit."))
return
/obj/item/mmi/digital/robot/attack_self(mob/user as mob)
/obj/item/mmi/digital/robot/attack_self(mob/user)
return //This object is technically a brain, and should not be dumping brains out of itself like its parent object does.
@@ -70,6 +70,12 @@
AddComponent(/datum/component/personal_crafting)
// Chicken Stuff
var/animal = pick("cow","chicken_brown", "chicken_black", "chicken_white", "chick", "mouse_brown", "mouse_gray", "mouse_white", "lizard", "cat2", "goose", "penguin")
var/image/img = image('icons/mob/animal.dmi', src, animal)
img.override = TRUE
add_alt_appearance("animals", img, displayTo = alt_farmanimals)
/mob/living/carbon/human/Destroy()
human_mob_list -= src
QDEL_NULL_LIST(organs)
@@ -1856,3 +1862,9 @@
resting = !resting
to_chat(src, span_notice("You are now [resting ? "resting" : "getting up"]."))
update_canmove()
/mob/living/carbon/human/get_digestion_nutrition_modifier()
return species.digestion_nutrition_modifier
/mob/living/carbon/human/get_digestion_efficiency_modifier()
return species.digestion_efficiency
@@ -1,14 +0,0 @@
//Crazy alternate human stuff
/mob/living/carbon/human/New()
. = ..()
var/animal = pick("cow","chicken_brown", "chicken_black", "chicken_white", "chick", "mouse_brown", "mouse_gray", "mouse_white", "lizard", "cat2", "goose", "penguin")
var/image/img = image('icons/mob/animal.dmi', src, animal)
img.override = TRUE
add_alt_appearance("animals", img, displayTo = alt_farmanimals)
/mob/living/carbon/human/get_digestion_nutrition_modifier()
return species.digestion_nutrition_modifier
/mob/living/carbon/human/get_digestion_efficiency_modifier()
return species.digestion_efficiency
@@ -34,8 +34,8 @@ var/global/list/default_pai_software = list()
default_pai_software[P.id] = P
return r
/mob/living/silicon/pai/New()
..()
/mob/living/silicon/pai/Initialize()
. = ..()
software = default_pai_software.Copy()
/mob/living/silicon/pai/verb/paiInterface()
@@ -57,8 +57,13 @@ var/global/list/robot_modules = list(
/obj/item/robot_module/proc/hide_on_manifest()
. = hide_on_manifest
/obj/item/robot_module/New(var/mob/living/silicon/robot/R)
..()
/obj/item/robot_module/Initialize(mapload)
. = ..()
if(!isrobot(loc))
return
var/mob/living/silicon/robot/R = loc
R.module = src
add_camera_networks(R)
@@ -193,9 +198,12 @@ var/global/list/robot_modules = list(
CHANNEL_EXPLORATION = 1
)
/obj/item/robot_module/robot/New(var/mob/living/silicon/robot/R)
..()
/obj/item/robot_module/robot/Initialize(mapload)
. = ..()
if(!isrobot(loc))
return
var/mob/living/silicon/robot/R = loc
if(R.sprite_datum)
R.sprite_datum.do_equipment_glamour(src)
@@ -183,7 +183,7 @@
var/vore_icons_cache = null // null by default. Going from ON to OFF should store vore_icons val here, OFF to ON reset as null
/mob/living/simple_mob/Initialize()
/mob/living/simple_mob/Initialize(mapload)
remove_verb(src, /mob/verb/observe)
health = maxHealth
@@ -8,9 +8,10 @@
var/shift_mode = NOT_WHILE_SHIFTED
var/ab_sound
/obj/effect/shadekin_ability/New(var/new_kin)
..()
my_kin = new_kin
/obj/effect/shadekin_ability/Initialize(mapload)
. = ..()
if(issimplekin(loc))
my_kin = loc
loc = null
/obj/effect/shadekin_ability/Destroy()
@@ -57,9 +57,9 @@ List of things solar grubs should be able to do:
/datum/say_list/solargrub
emote_see = list("squelches", "squishes")
/mob/living/simple_mob/vore/solargrub/New()
/mob/living/simple_mob/vore/solargrub/Initialize(mapload)
. = ..()
existing_solargrubs += src
..()
/mob/living/simple_mob/vore/solargrub/Life()
. = ..()
@@ -30,8 +30,8 @@
faction = FACTION_VAMPIRE
/mob/living/simple_mob/vore/vampire/New()
..()
/mob/living/simple_mob/vore/vampire/Initialize()
. = ..()
if(random_skin)
icon_living = pick(skins)
icon_rest = "[icon_living]asleep"
@@ -113,6 +113,6 @@
health = 350
vore_pounce_chance = 75
/mob/living/simple_mob/vore/vampire/queen/New()
/mob/living/simple_mob/vore/vampire/queen/Initialize(mapload)
. = ..()
resize(2)
..()
+1 -1
View File
@@ -66,7 +66,7 @@
spell_masters = null
zone_sel = null
/mob/Initialize()
/mob/Initialize(mapload)
mob_list += src
if(stat == DEAD)
dead_mob_list += src