Skip to content

Commit

Permalink
Update shieldgen.dm
Browse files Browse the repository at this point in the history
Fixed shield generator not properly working. The code still needs to be rewritten, though.
  • Loading branch information
Juninho77 committed Jun 18, 2015
1 parent 718bdac commit 4425137
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions code/game/machinery/shieldgen.dm
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,15 @@
user.visible_message("[user] turned the shield generator off.", \
"You turn off the shield generator.", \
"You hear heavy droning fade out.")
src.cleanup()
spawn(1)
src.cleanup(1)
spawn(2)
src.cleanup(2)
spawn(3)
src.cleanup(4)
spawn(4)
src.cleanup(8)

else
src.active = 1
icon_state = "Shield_Gen +a"
Expand Down Expand Up @@ -642,4 +650,4 @@
if (istype(mover, /obj/item/projectile))
return prob(10)
else
return !src.density
return !src.density

0 comments on commit 4425137

Please sign in to comment.