From 0154d93a739083b8c821ffc6d5ffc93c8188f500 Mon Sep 17 00:00:00 2001 From: theo-3 <85434590+theo-3@users.noreply.github.com> Date: Sat, 17 Jul 2021 13:26:35 +0300 Subject: [PATCH] Use if() instead of if () CONTRIBUTING.md says I'm supposed to do it this way --- code/modules/hydroponics/seeds.dm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/modules/hydroponics/seeds.dm b/code/modules/hydroponics/seeds.dm index 619c34b323d..7efc43f2856 100644 --- a/code/modules/hydroponics/seeds.dm +++ b/code/modules/hydroponics/seeds.dm @@ -320,18 +320,18 @@ return /obj/item/seeds/attackby(obj/item/O, mob/user, params) - if (istype(O, /obj/item/plant_analyzer)) + if(istype(O, /obj/item/plant_analyzer)) to_chat(user, "*---------*\n This is \a [src].") var/text = get_analyzer_text() if(text) to_chat(user, "[text]") return - if (istype(O, /obj/item/pen)) + if(istype(O, /obj/item/pen)) var/V = sanitize(stripped_input(user, "Choose variant name:", "Plant Variant Naming", variant, MAX_MESSAGE_LEN)) - if (!Adjacent(user)) //prevent remote naming of seeds + if(!Adjacent(user)) //prevent remote naming of seeds return - if (V == "" && variant != "") + if(V == "" && variant != "") user.show_message("You remove the variant designation from the [plantname].") else if(V != "") user.show_message("You designate the [plantname] as the [V] variant.")