Various Tweaks and Changes (#9222)

This commit is contained in:
Geeves
2020-06-30 18:19:54 +02:00
committed by GitHub
parent 734ad579a2
commit 972c0ae9db
6 changed files with 97 additions and 16 deletions
@@ -694,9 +694,9 @@ var/global/list/default_medbay_channels = list(
if(!SSradio)
src.name = "broken radio"
return
secure_radio_connections[ch_name] = SSradio.add_object(src, radiochannels[ch_name], RADIO_CHAT)
setupRadioDescription()
return
/obj/item/device/radio/borg/Topic(href, href_list)
@@ -565,7 +565,7 @@
return
if(empty_delay)
visible_message("\The [usr] starts to empty the contents of \the [src].")
usr.visible_message("\The [usr] starts to empty the contents of \the [src]...", SPAN_NOTICE("You start emptying the contents of \the [src]..."))
if(!do_after(usr, contents.len * empty_delay, act_target=usr))
return
@@ -578,9 +578,7 @@
CHECK_TICK
post_remove_from_storage_deferred(loc, usr)
if(empty_delay)
visible_message("\The [usr] empties the contents of \the [src].")
usr.visible_message("<b>\The [usr]</b> empties the contents of \the [src].", , SPAN_NOTICE("You empty the contents of \the [src]."))
// Override this to fill the storage object with stuff.
/obj/item/storage/proc/fill()
@@ -658,6 +656,13 @@
src.quick_empty()
return 1
/obj/item/storage/CtrlClick(mob/user)
if(user.get_active_hand() == src)
if(src.verbs.Find(/obj/item/storage/verb/quick_empty))
src.quick_empty()
return
..()
/obj/item/storage/proc/make_exact_fit()
storage_slots = contents.len