mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
Fixes some to_chat runtimes (#23932)
This commit is contained in:
@@ -188,7 +188,6 @@
|
||||
examine_text = form.examine(user)
|
||||
name = form.name
|
||||
|
||||
|
||||
/obj/effect/proc_holder/spell/mimic/morph
|
||||
action_background_icon_state = "bg_morph"
|
||||
|
||||
|
||||
@@ -79,14 +79,9 @@
|
||||
return ..()
|
||||
|
||||
/obj/machinery/hydroponics/constructable/attackby(obj/item/I, mob/user, params)
|
||||
if(default_deconstruction_screwdriver(user, "hydrotray3", "hydrotray3", I))
|
||||
if(default_deconstruction_screwdriver(user, "hydrotray3", "hydrotray3", I) || exchange_parts(user, I))
|
||||
return
|
||||
|
||||
if(exchange_parts(user, I))
|
||||
return
|
||||
|
||||
else
|
||||
return ..()
|
||||
return ..()
|
||||
|
||||
/obj/machinery/hydroponics/constructable/crowbar_act(mob/user, obj/item/I)
|
||||
|
||||
|
||||
@@ -277,7 +277,7 @@
|
||||
|
||||
|
||||
/obj/item/seeds/proc/get_analyzer_text() // In case seeds have something special to tell to the analyzer
|
||||
var/text = ""
|
||||
var/list/text = list()
|
||||
if(!get_gene(/datum/plant_gene/trait/plant_type/weed_hardy) && !get_gene(/datum/plant_gene/trait/plant_type/fungal_metabolism) && !get_gene(/datum/plant_gene/trait/plant_type/alien_properties))
|
||||
text += "- Plant type: Normal plant\n"
|
||||
if(get_gene(/datum/plant_gene/trait/plant_type/weed_hardy))
|
||||
@@ -306,7 +306,7 @@
|
||||
all_traits += " [traits.get_name()]"
|
||||
text += "- Plant Traits:[all_traits]\n"
|
||||
|
||||
return text
|
||||
return text.Join("")
|
||||
|
||||
/obj/item/seeds/proc/on_chem_reaction(datum/reagents/S) // In case seeds have some special interaction with special chems
|
||||
return
|
||||
|
||||
@@ -59,10 +59,11 @@
|
||||
if(!selection)
|
||||
return
|
||||
|
||||
var/obj/item/photo/P = new/obj/item/photo()
|
||||
var/obj/item/photo/P = new /obj/item/photo()
|
||||
P.construct(selection)
|
||||
P.show(usr)
|
||||
to_chat(usr, P.desc)
|
||||
if(P.desc)
|
||||
to_chat(usr, P.desc, MESSAGE_TYPE_INFO)
|
||||
|
||||
// TG uses a special garbage collector.. qdel(P)
|
||||
qdel(P) //so 10 thousand pictures items are not left in memory should an AI take them and then view them all.
|
||||
|
||||
Reference in New Issue
Block a user