This commit is contained in:
Zuhayr
2016-01-13 23:59:12 +10:30
parent 18e4c7fa8e
commit c0889f09e0

View File

@@ -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)