Bringing back accidentally reverted solar panel fixes.

This commit is contained in:
Ghommie
2020-04-06 18:20:34 +02:00
parent b7b752303b
commit f6db5764e3
2 changed files with 7 additions and 6 deletions
+2 -1
View File
@@ -185,7 +185,7 @@
if(sunfrac <= 0)
return
var/sgen = SOLAR_GEN_RATE * sunfrac
var/sgen = SOLAR_GEN_RATE * sunfrac * efficiency
add_avail(sgen)
if(control)
control.gen += sgen
@@ -253,6 +253,7 @@
var/obj/item/stack/sheet/G = S.change_stack(null, 2)
if(G)
glass_type = G
G.moveToNullspace()
playsound(src.loc, 'sound/machines/click.ogg', 50, 1)
user.visible_message("[user] places the glass on the solar assembly.", "<span class='notice'>You place the glass on the solar assembly.</span>")
if(tracker)