Ai Core and Solar Panels Build Fix (#15484)

This commit is contained in:
Ben
2023-01-02 14:21:38 +01:00
committed by GitHub
parent 185d9a0b89
commit eeb93b0d5c
3 changed files with 15 additions and 2 deletions
+1 -1
View File
@@ -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, "<span class='warning'>You need two sheets of glass to put in the glass panel.</span>")
+1 -1
View File
@@ -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
+13
View File
@@ -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."