mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-14 12:13:06 +00:00
Fixes #728
This commit is contained in:
@@ -133,13 +133,15 @@
|
|||||||
|
|
||||||
|
|
||||||
/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
|
return
|
||||||
|
|
||||||
visible_message("<span class='warning'>[user] rips [src] in a single, decisive motion!</span>" )
|
visible_message("<span class='warning'>[user] rips [src] in a single, decisive motion!</span>" )
|
||||||
playsound(src.loc, 'sound/items/poster_ripped.ogg', 100, 1)
|
playsound(src.loc, 'sound/items/poster_ripped.ogg', 100, 1)
|
||||||
ruined = 1
|
ruined = 1
|
||||||
@@ -147,8 +149,6 @@
|
|||||||
name = "ripped poster"
|
name = "ripped poster"
|
||||||
desc = "You can't make out anything from the poster's original print. It's ruined."
|
desc = "You can't make out anything from the poster's original print. It's ruined."
|
||||||
add_fingerprint(user)
|
add_fingerprint(user)
|
||||||
if("No")
|
|
||||||
return
|
|
||||||
|
|
||||||
/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)
|
||||||
|
|||||||
Reference in New Issue
Block a user