This commit is contained in:
Zth
2015-08-09 22:24:13 -03:00
committed by Clusterfack
parent 29259b3343
commit 9164473025
2 changed files with 45 additions and 10 deletions

View File

@@ -45,18 +45,18 @@
else if(istype(O, /obj/item/weapon/storage/bible)) else if(istype(O, /obj/item/weapon/storage/bible))
user.drop_item(O, src) user.drop_item(O, src)
update_icon() update_icon()
else if(istype(O, /obj/item/weapon/wrench)) else if(istype(O, /obj/item/weapon/screwdriver))
user << "<span class='notice'> Now disassembling bookcase</span>" user << "<span class='notice'>Now disassembling bookcase</span>"
playsound(get_turf(src), 'sound/items/Ratchet.ogg', 50, 1) playsound(get_turf(src), 'sound/items/Ratchet.ogg', 50, 1)
if(do_after(user, src,50)) if(do_after(user, src,50))
new /obj/item/stack/sheet/wood(get_turf(src)) getFromPool(/obj/item/stack/sheet/wood, get_turf(src), 5)
new /obj/item/stack/sheet/wood(get_turf(src))
new /obj/item/stack/sheet/wood(get_turf(src))
new /obj/item/stack/sheet/wood(get_turf(src))
new /obj/item/stack/sheet/wood(get_turf(src))
density = 0 density = 0
qdel(src) qdel(src)
return return
else if(istype(O, /obj/item/weapon/wrench))
playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1)
user << (anchored ? "<span class='notice'>You unfasten the [src] from the floor.</span>" : "<span class='notice'>You secure the [src] to the floor.</span>")
anchored = !anchored
else if(istype(O, /obj/item/weapon/pen)) else if(istype(O, /obj/item/weapon/pen))
var/newname = stripped_input(usr, "What would you like to title this bookshelf?") var/newname = stripped_input(usr, "What would you like to title this bookshelf?")
if(!newname) if(!newname)
@@ -72,9 +72,7 @@
else else
if (src.health <= 0) if (src.health <= 0)
visible_message("<span class=warning>The bookcase is smashed apart!</span>") visible_message("<span class=warning>The bookcase is smashed apart!</span>")
new /obj/item/stack/sheet/wood(get_turf(src)) getFromPool(/obj/item/stack/sheet/wood, get_turf(src), 3)
new /obj/item/stack/sheet/wood(get_turf(src))
new /obj/item/stack/sheet/wood(get_turf(src))
qdel(src) qdel(src)
..() ..()

View File

@@ -0,0 +1,37 @@
################################
# Example Changelog File
#
# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb.
#
# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.)
# When it is, any changes listed below will disappear.
#
# Valid Prefixes:
# bugfix
# wip (For works in progress)
# tweak
# soundadd
# sounddel
# rscdel (general adding of nice things)
# rscadd (general deleting of nice things)
# imageadd
# imagedel
# spellcheck (typo fixes)
# experiment
# tgs (TG-ported fixes?)
#################################
# Your name.
author: Zth
# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again.
#delete-after: True
# Any changes you've made. See valid prefix list above.
# INDENT WITH TWO SPACES. NOT TABS. SPACES.
# SCREW THIS UP AND IT WON'T WORK.
# Also, this gets changed to [] after reading. Just remove the brackets when you add new shit.
changes:
- tweak: Bookcase can now be wrenched/unwrenched.
- tweak: Bookcases are now disassembled with a screwdriver.
- bugfix: Bookcases now drop a stack of wood instead of 5 planks.