diff --git a/code/controllers/subsystem/ticker.dm b/code/controllers/subsystem/ticker.dm index f37feeea34..58238247ff 100755 --- a/code/controllers/subsystem/ticker.dm +++ b/code/controllers/subsystem/ticker.dm @@ -609,9 +609,9 @@ SUBSYSTEM_DEF(ticker) var/list/ded = SSblackbox.first_death if(ded.len) var/last_words = ded["last_words"] ? " Their last words were: \"[ded["last_words"]]\"" : "" - news_message += " NT Sanctioned Psykers picked up faint traces of someone near the station, allegedly having had died. Their name was: [ded["name"]], [ded["role"]], at [ded["area"]].[last_words]" + news_message += "\nNT Sanctioned Psykers picked up faint traces of someone near the station, allegedly having had died. Their name was: [ded["name"]], [ded["role"]], at [ded["area"]].[last_words]" else - news_message += " NT Sanctioned Psykers proudly confirm reports that nobody died this shift!" + news_message += "\nNT Sanctioned Psykers proudly confirm reports that nobody died this shift!" if(news_message) send2otherserver(news_source, news_message,"News_Report") diff --git a/code/game/machinery/autolathe.dm b/code/game/machinery/autolathe.dm index d8a5f7d2c7..0e7b4aa0fa 100644 --- a/code/game/machinery/autolathe.dm +++ b/code/game/machinery/autolathe.dm @@ -48,13 +48,14 @@ ) /obj/machinery/autolathe/Initialize() - AddComponent(/datum/component/material_container, SSmaterials.materialtypes_by_category[MAT_CATEGORY_RIGID], 0, TRUE, null, null, CALLBACK(src, .proc/AfterMaterialInsert)) . = ..() - wires = new /datum/wires/autolathe(src) stored_research = new /datum/techweb/specialized/autounlocking/autolathe matching_designs = list() +/obj/machinery/autolathe/ComponentInitialize() + AddComponent(/datum/component/material_container, SSmaterials.materialtypes_by_category[MAT_CATEGORY_RIGID], 0, TRUE, null, null, CALLBACK(src, .proc/AfterMaterialInsert)) + /obj/machinery/autolathe/Destroy() QDEL_NULL(wires) return ..() @@ -439,6 +440,9 @@ /obj/machinery/autolathe/secure/Initialize() . = ..() + // let's not leave the parent datum floating, right? + if(stored_research) + QDEL_NULL(stored_research) stored_research = new /datum/techweb/specialized/autounlocking/autolathe/public /obj/machinery/autolathe/toy @@ -457,8 +461,18 @@ "Misc", "Imported" ) +/obj/machinery/autolathe/toy/Initialize() + . = ..() + // let's not leave the parent datum floating, right? + if(stored_research) + QDEL_NULL(stored_research) + stored_research = new /datum/techweb/specialized/autounlocking/autolathe/toy /obj/machinery/autolathe/toy/hacked/Initialize() . = ..() adjust_hacked(TRUE) - stored_research = new /datum/techweb/specialized/autounlocking/autolathe/toy + +// override the base to allow plastics +/obj/machinery/autolathe/ComponentInitialize() + var/list/extra_mats = list(/datum/material/plastic) + AddComponent(/datum/component/material_container, SSmaterials.materialtypes_by_category[MAT_CATEGORY_RIGID] + extra_mats, 0, TRUE, null, null, CALLBACK(src, .proc/AfterMaterialInsert)) diff --git a/code/game/objects/items/tanks/jetpack.dm b/code/game/objects/items/tanks/jetpack.dm index 29961d12b4..92e0cee7e8 100644 --- a/code/game/objects/items/tanks/jetpack.dm +++ b/code/game/objects/items/tanks/jetpack.dm @@ -15,7 +15,7 @@ var/datum/effect_system/trail_follow/ion/ion_trail /obj/item/tank/jetpack/Initialize() - ..() + . = ..() ion_trail = new ion_trail.set_up(src) @@ -88,7 +88,7 @@ return TRUE /obj/item/tank/jetpack/suicide_act(mob/user) - if (istype(user, /mob/living/carbon/human/)) + if (ishuman(user)) var/mob/living/carbon/human/H = user H.forcesay("WHAT THE FUCK IS CARBON DIOXIDE?") H.visible_message("[user] is suffocating [user.p_them()]self with [src]! It looks like [user.p_they()] didn't read what that jetpack says!") diff --git a/code/modules/atmospherics/machinery/portable/canister.dm b/code/modules/atmospherics/machinery/portable/canister.dm index 9c3e0ef64a..90f8680da9 100644 --- a/code/modules/atmospherics/machinery/portable/canister.dm +++ b/code/modules/atmospherics/machinery/portable/canister.dm @@ -202,8 +202,9 @@ filled = 1 release_pressure = ONE_ATMOSPHERE*2 -/obj/machinery/portable_atmospherics/canister/Initialize(mapload, datum/gas_mixture/existing_mixture) - . = ..() +/obj/machinery/portable_atmospherics/canister/New(loc, datum/gas_mixture/existing_mixture) + ..() + if(existing_mixture) air_contents.copy_from(existing_mixture) else @@ -221,10 +222,8 @@ air_contents.set_temperature(starter_temp) /obj/machinery/portable_atmospherics/canister/air/create_gas() - var/oh_two = /datum/gas/oxygen - var/dihydrogen = /datum/gas/nitrogen //how to piss of chemists - air_contents.set_moles(oh_two, (O2STANDARD * maximum_pressure * filled) * air_contents.return_volume() / (R_IDEAL_GAS_EQUATION * air_contents.return_temperature())) - air_contents.set_moles(dihydrogen, (N2STANDARD * maximum_pressure * filled) * air_contents.return_volume() / (R_IDEAL_GAS_EQUATION * air_contents.return_temperature())) + air_contents.set_moles(/datum/gas/oxygen, (O2STANDARD * maximum_pressure * filled) * air_contents.return_volume() / (R_IDEAL_GAS_EQUATION * air_contents.return_temperature())) + air_contents.set_moles(/datum/gas/nitrogen, (N2STANDARD * maximum_pressure * filled) * air_contents.return_volume() / (R_IDEAL_GAS_EQUATION * air_contents.return_temperature())) /obj/machinery/portable_atmospherics/canister/update_icon_state() if(stat & BROKEN)