From eeb93b0d5cf41a8fd0919ae5918e69bb78089162 Mon Sep 17 00:00:00 2001 From: Ben <91219575+Ben10083@users.noreply.github.com> Date: Mon, 2 Jan 2023 08:21:38 -0500 Subject: [PATCH] Ai Core and Solar Panels Build Fix (#15484) --- code/game/machinery/computer/ai_core.dm | 2 +- code/modules/power/solar.dm | 2 +- html/changelogs/Ben10083 - Core Fix.yml | 13 +++++++++++++ 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 html/changelogs/Ben10083 - Core Fix.yml diff --git a/code/game/machinery/computer/ai_core.dm b/code/game/machinery/computer/ai_core.dm index 43d26ed6896..e6d41143173 100644 --- a/code/game/machinery/computer/ai_core.dm +++ b/code/game/machinery/computer/ai_core.dm @@ -94,7 +94,7 @@ A.amount = 5 return TRUE - if(istype(P, /obj/item/stack/material) && P.get_material_name() == "rglass") + if(istype(P, /obj/item/stack/material) && P.get_material_name() == MATERIAL_GLASS_REINFORCED) var/obj/item/stack/RG = P if (RG.get_amount() < 2) to_chat(user, "You need two sheets of glass to put in the glass panel.") diff --git a/code/modules/power/solar.dm b/code/modules/power/solar.dm index 0c0180a9cd3..60f78f98949 100644 --- a/code/modules/power/solar.dm +++ b/code/modules/power/solar.dm @@ -235,7 +235,7 @@ playsound(src.loc, W.usesound, 75, 1) return 1 - if(istype(W, /obj/item/stack/material) && (W.get_material_name() == "glass" || W.get_material_name() == "rglass")) + if(istype(W, /obj/item/stack/material) && (W.get_material_name() == "glass" || W.get_material_name() == MATERIAL_GLASS_REINFORCED)) var/obj/item/stack/material/S = W if(S.use(2)) glass_type = W.type diff --git a/html/changelogs/Ben10083 - Core Fix.yml b/html/changelogs/Ben10083 - Core Fix.yml new file mode 100644 index 00000000000..3b3a565c051 --- /dev/null +++ b/html/changelogs/Ben10083 - Core Fix.yml @@ -0,0 +1,13 @@ +# Your name. +author: Ben10083 + +# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again. +delete-after: True + +# Any changes you've made. See valid prefix list above. +# INDENT WITH TWO SPACES. NOT TABS. SPACES. +# SCREW THIS UP AND IT WON'T WORK. +# Also, all entries are changed into a single [] after a master changelog generation. Just remove the brackets when you add new entries. +# Please surround your changes in double quotes ("), as certain characters otherwise screws up compiling. The quotes will not show up in the changelog. +changes: + - bugfix: "Ai cores and Solar Panels can now be built again."