Merge pull request #5649 from lbnesquik/Kates-Flashlight-F

ᵗᵉᵉⁿʸ ᶠˡᵃˢʰˡᶦᵍʰᵗ ᵗʷᵉᵃᵏ
This commit is contained in:
Atermonera
2018-11-30 21:32:30 -08:00
committed by VirgoBot
parent 15017e893e
commit 034c3e6615

View File

@@ -68,6 +68,7 @@
cell.charge = 0 cell.charge = 0
visible_message("<span class='warning'>\The [src] flickers before going dull.</span>") visible_message("<span class='warning'>\The [src] flickers before going dull.</span>")
set_light(0) set_light(0)
playsound(src.loc, 'sound/effects/sparks3.ogg', 10, 1, -3) //Small cue that your light went dull in your pocket.
on = 0 on = 0
update_icon() update_icon()
@@ -180,6 +181,7 @@
user.put_in_hands(cell) user.put_in_hands(cell)
cell = null cell = null
user << "<span class='notice'>You remove the cell from the [src].</span>" user << "<span class='notice'>You remove the cell from the [src].</span>"
playsound(src, 'sound/machines/button.ogg', 30, 1, 0)
on = 0 on = 0
update_icon() update_icon()
return return
@@ -228,6 +230,7 @@
W.loc = src W.loc = src
cell = W cell = W
user << "<span class='notice'>You install a cell in \the [src].</span>" user << "<span class='notice'>You install a cell in \the [src].</span>"
playsound(src, 'sound/machines/button.ogg', 30, 1, 0)
update_icon() update_icon()
else else
user << "<span class='notice'>\The [src] already has a cell.</span>" user << "<span class='notice'>\The [src] already has a cell.</span>"