Replace opacity = X with set_opacity(X) so that the lighting system can update propertly.

This commit is contained in:
Leshana
2017-04-11 00:30:49 -04:00
parent 75cc189723
commit 45058136e2
7 changed files with 18 additions and 18 deletions

View File

@@ -54,8 +54,8 @@
playsound(src.loc, 'sound/effects/EMPulse.ogg', 75, 1)
check_failure()
opacity = 1
spawn(20) if(src) opacity = 0
set_opacity(1)
spawn(20) if(!deleted(src)) set_opacity(0)
..()
@@ -63,8 +63,8 @@
health -= Proj.get_structure_damage()
..()
check_failure()
opacity = 1
spawn(20) if(src) opacity = 0
set_opacity(1)
spawn(20) if(!deleted(src)) set_opacity(0)
/obj/machinery/shield/ex_act(severity)
switch(severity)
@@ -113,8 +113,8 @@
check_failure()
//The shield becomes dense to absorb the blow.. purely asthetic.
opacity = 1
spawn(20) if(src) opacity = 0
set_opacity(1)
spawn(20) if(!deleted(src)) set_opacity(0)
..()
return