The Last of the Lockers (#13954)

This commit is contained in:
Wowzewow (Wezzy)
2022-05-25 00:56:36 +08:00
committed by GitHub
parent 6d8f9f6fa4
commit a791db9c4b
10 changed files with 71 additions and 26 deletions
@@ -6,9 +6,9 @@
desc = "A wall mounted storage locker."
icon = 'icons/obj/walllocker.dmi'
icon_state = "walllocker" //...man, how OLD is this $#!?
door_anim_angle = 108
door_anim_squish = 0.26
door_hinge = 9.5
door_anim_angle = 132
door_anim_squish = 0.38
door_hinge = -7
door_anim_time = 2.7
store_mobs = FALSE
density = FALSE
+15 -19
View File
@@ -1,16 +1,18 @@
/obj/structure/extinguisher_cabinet
name = "extinguisher cabinet"
desc = "A small wall mounted cabinet designed to hold a fire extinguisher."
icon = 'icons/obj/closet.dmi'
icon_state = "extinguisher_closed"
desc_info = "Alt-click to close the door."
icon = 'icons/obj/wallmounts.dmi'
icon_state = "cabinet"
anchored = 1
density = 0
var/obj/item/extinguisher/has_extinguisher
var/opened = 0
/obj/structure/extinguisher_cabinet/New()
/obj/structure/extinguisher_cabinet/Initialize()
..()
has_extinguisher = new/obj/item/extinguisher(src)
update_icon()
/obj/structure/extinguisher_cabinet/attackby(obj/item/O, mob/user)
if(isrobot(user))
@@ -35,41 +37,35 @@
/obj/structure/extinguisher_cabinet/attack_hand(mob/user)
if(isrobot(user))
return
if (ishuman(user))
var/mob/living/carbon/human/H = user
var/obj/item/organ/external/temp = H.organs_by_name[BP_R_HAND]
if (user.hand)
temp = H.organs_by_name[BP_L_HAND]
if(temp && !temp.is_usable())
to_chat(user, "<span class='notice'>You try to move your [temp.name], but cannot!</span>")
return
if(use_check_and_message(usr))
return 0
if(has_extinguisher)
user.put_in_hands(has_extinguisher)
to_chat(user, "<span class='notice'>You take [has_extinguisher] from [src].</span>")
playsound(src.loc, 'sound/effects/extout.ogg', 50, 0)
has_extinguisher = null
opened = 1
opened = TRUE
else
opened = !opened
update_icon()
/obj/structure/extinguisher_cabinet/update_icon()
if(!opened)
icon_state = "extinguisher_closed"
return
cut_overlays()
if(has_extinguisher)
if(istype(has_extinguisher, /obj/item/extinguisher/mini))
icon_state = "extinguisher_mini"
add_overlay("extinguisher_mini")
else
icon_state = "extinguisher_full"
add_overlay("extinguisher_full")
if(opened)
add_overlay("cabinet_door_open")
else
icon_state = "extinguisher_empty"
add_overlay("cabinet_door_closed")
/obj/structure/extinguisher_cabinet/do_simple_ranged_interaction(var/mob/user)
if(has_extinguisher)
has_extinguisher.dropInto(loc)
has_extinguisher = null
opened = 1
opened = TRUE
else
opened = !opened
update_icon()
@@ -1,6 +1,7 @@
/obj/structure/fireaxecabinet
name = "fire axe cabinet"
desc = "There is small label that reads \"For Emergency use only\" along with details for safe use of the axe. As if."
icon = 'icons/obj/wallmounts.dmi'
icon_state = "fireaxe"
anchored = 1
density = 0
@@ -29,11 +30,18 @@
/obj/structure/fireaxecabinet/update_icon()
cut_overlays()
if(fireaxe)
add_overlay("fireaxe_item")
add_overlay("axe")
if(shattered)
add_overlay("fireaxe_window_broken")
else if(!open)
add_overlay("fireaxe_window")
add_overlay("glass4")
if(unlocked)
add_overlay("unlocked")
else
add_overlay("locked")
if(open)
add_overlay("glass_raised")
else
add_overlay("glass")
/obj/structure/fireaxecabinet/New()
..()
@@ -0,0 +1,41 @@
################################
# 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
# rscadd (general adding of nice things)
# rscdel (general deleting of nice things)
# imageadd
# imagedel
# maptweak
# spellcheck (typo fixes)
# experiment
# balance
# admin
# backend
# security
# refactor
#################################
# Your name.
author: WowzewoW (Wezzy)
# 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, all entries are changed into a single [] after a master changelog generation. Just remove the brackets when you add new entries.
# Please surround your changes in double quotes ("), as certain characters otherwise screws up compiling. The quotes will not show up in the changelog.
changes:
- imageadd: "Improves sprites for wall lockers, fire extinguisher cabinets, fireaxe cabinet, critter crate and wall safe."
Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 191 KiB

After

Width:  |  Height:  |  Size: 190 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB