Lets RCDs load reinforced glass and plasma rglass sheets (#39170)

If RCDs can be loaded with glass/metal/plasteel, it only makes sense for them
to accept rglass and plasma rglass as well.

Rglass sheets add 6 matter (.5 metal, 1 glass). Plasma rglass sheets add 8
matter (1 metal, .5 glass, .5 plasma).
This commit is contained in:
81Denton
2018-07-18 05:24:47 +02:00
committed by Tad Hardesty
parent d1c8090f71
commit 2f62e3c555
+7 -1
View File
@@ -31,6 +31,8 @@ RLD
var/max_matter = 100
var/sheetmultiplier = 4 //Controls the amount of matter added for each glass/metal sheet, triple for plasteel
var/plasteelmultiplier = 3 //Plasteel is worth 3 times more than glass or metal
var/plasmarglassmultiplier = 2 //50% less plasma than in plasteel
var/rglassmultiplier = 1.5 //One metal sheet, half a glass sheet
var/no_ammo_message = "<span class='warning'>The \'Low Ammo\' light on the device blinks yellow.</span>"
var/has_ammobar = FALSE //controls whether or not does update_icon apply ammo indicator overlays
var/ammo_sections = 10 //amount of divisions in the ammo indicator overlay/number of ammo indicator states
@@ -65,7 +67,11 @@ RLD
else if(istype(W, /obj/item/stack/sheet/metal) || istype(W, /obj/item/stack/sheet/glass))
loaded = loadwithsheets(W, sheetmultiplier, user)
else if(istype(W, /obj/item/stack/sheet/plasteel))
loaded = loadwithsheets(W, plasteelmultiplier*sheetmultiplier, user) //Plasteel is worth 3 times more than glass or metal
loaded = loadwithsheets(W, plasteelmultiplier*sheetmultiplier, user) //12 matter for 1 plasteel sheet
else if(istype(W, /obj/item/stack/sheet/plasmarglass))
loaded = loadwithsheets(W, plasmarglassmultiplier*sheetmultiplier, user) //8 matter for one plasma rglass sheet
else if(istype(W, /obj/item/stack/sheet/rglass))
loaded = loadwithsheets(W, rglassmultiplier*sheetmultiplier, user) //6 matter for one rglass sheet
if(loaded)
to_chat(user, "<span class='notice'>[src] now holds [matter]/[max_matter] matter-units.</span>")
else