mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-11 07:58:57 +01:00
d7706ece53
1. Look up now follows your mob (no more auto-removal when you move, only when you go below a solid tile). Maybe add a hotkey? 2. Made the codebase work with the latest version of spacemandmm lint. 3. Advanced kits don't work on robotic limbs. 4. Density shifting should now always use set_density. Ported TRAIT_UNDENSE from CM to better control the density of living mobs. Fixes weird shifting behaviour with wall leaning -- what was happening is that mob density was getting reset to TRUE because the mob wasn't lying down. 5. TGUI say light prefs actually save. --------- Co-authored-by: Matt Atlas <liermattia@gmail.com>
33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
/obj/item/evidencebag/plasticbag
|
|
name = "resealable plastic bag"
|
|
desc = "An Idris Quiklok plastic bag."
|
|
|
|
/obj/item/evidencebag/plasticbag/attack_self(mob/user)
|
|
if(contents.len)
|
|
var/obj/item/I = contents[1]
|
|
user.visible_message("<b>[user]</b> takes \the [I] out of \the [src].", SPAN_NOTICE("You take \the [I] out of \the [src]."),\
|
|
"You hear someone rustle around in a plastic bag, and remove something.")
|
|
ClearOverlays() //remove the overlays
|
|
|
|
user.put_in_hands(I)
|
|
stored_item = null
|
|
|
|
w_class = initial(w_class)
|
|
icon_state = "evidenceobj"
|
|
desc = "An empty Idris Quicklok plastic bag."
|
|
else
|
|
to_chat(user, "[src] is empty.")
|
|
icon_state = "evidenceobj"
|
|
return
|
|
|
|
/obj/item/storage/box/plasticbag
|
|
name = "resealable plastic bag box"
|
|
desc = "A box advertising its dazzling contents: 20 resealable Idris Incorporated brand Quiklok bags!"
|
|
illustration = "evidence"
|
|
storage_slots = 20
|
|
|
|
/obj/item/storage/box/plasticbag/fill()
|
|
..()
|
|
for(var/i=0; i < storage_slots; i++)
|
|
new /obj/item/evidencebag/plasticbag(src)
|