mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-15 20:52:41 +00:00
Fixes #728
This commit is contained in:
@@ -133,23 +133,23 @@
|
|||||||
|
|
||||||
|
|
||||||
/obj/structure/sign/poster/attack_hand(mob/user as mob)
|
/obj/structure/sign/poster/attack_hand(mob/user as mob)
|
||||||
|
|
||||||
if(ruined)
|
if(ruined)
|
||||||
return
|
return
|
||||||
var/temp_loc = user.loc
|
|
||||||
switch(alert("Do I want to rip the poster from the wall?","You think...","Yes","No"))
|
if(alert("Do I want to rip the poster from the wall?","You think...","Yes","No") == "Yes")
|
||||||
if("Yes")
|
|
||||||
if(user.loc != temp_loc)
|
if(ruined || !user.Adjacent(src))
|
||||||
return
|
|
||||||
visible_message("<span class='warning'>[user] rips [src] in a single, decisive motion!</span>" )
|
|
||||||
playsound(src.loc, 'sound/items/poster_ripped.ogg', 100, 1)
|
|
||||||
ruined = 1
|
|
||||||
icon_state = "poster_ripped"
|
|
||||||
name = "ripped poster"
|
|
||||||
desc = "You can't make out anything from the poster's original print. It's ruined."
|
|
||||||
add_fingerprint(user)
|
|
||||||
if("No")
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
visible_message("<span class='warning'>[user] rips [src] in a single, decisive motion!</span>" )
|
||||||
|
playsound(src.loc, 'sound/items/poster_ripped.ogg', 100, 1)
|
||||||
|
ruined = 1
|
||||||
|
icon_state = "poster_ripped"
|
||||||
|
name = "ripped poster"
|
||||||
|
desc = "You can't make out anything from the poster's original print. It's ruined."
|
||||||
|
add_fingerprint(user)
|
||||||
|
|
||||||
/obj/structure/sign/poster/proc/roll_and_drop(turf/newloc)
|
/obj/structure/sign/poster/proc/roll_and_drop(turf/newloc)
|
||||||
var/obj/item/weapon/contraband/poster/P = new(src, serial_number)
|
var/obj/item/weapon/contraband/poster/P = new(src, serial_number)
|
||||||
P.loc = newloc
|
P.loc = newloc
|
||||||
|
|||||||
Reference in New Issue
Block a user