mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-29 06:58:30 +01:00
Research Samples (#16039)
* added research samples * added research sample pois * added research samples remove placeholder tier icons, touch up the base placeholder icon, and replace the spawner icons also adjusted the common/uncommon/rare spawner weights slightly
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
/obj/item/weapon/storage/sample_container
|
||||
name = "sample container"
|
||||
desc = "A small containment device used to safely collect and carry up to eight research samples. Has a loop for attaching to belts."
|
||||
description_info = "You can use the sample container directly on a sample to quickly scoop it up, or on a tile to scoop up all samples on that tile. This negates the risk of hurting yourself if you don't have thick enough gloves to safely handle the samples!"
|
||||
icon = 'icons/obj/samples.dmi'
|
||||
icon_state = "sample_container_0"
|
||||
|
||||
w_class = ITEMSIZE_SMALL
|
||||
slot_flags = SLOT_BELT
|
||||
max_w_class = ITEMSIZE_TINY
|
||||
storage_slots = 8
|
||||
max_storage_space = ITEMSIZE_TINY * 8
|
||||
var/lightcolor = "#EFF1BF"
|
||||
|
||||
drop_sound = 'sound/items/drop/gascan.ogg'
|
||||
pickup_sound = 'sound/items/pickup/gascan.ogg'
|
||||
|
||||
can_hold = list(/obj/item/weapon/research_sample)
|
||||
|
||||
/obj/item/weapon/storage/sample_container/update_icon()
|
||||
..()
|
||||
icon_state = "sample_container_[contents.len]"
|
||||
if(contents.len > 0)
|
||||
set_light(1, contents.len, lightcolor)
|
||||
else
|
||||
set_light(0)
|
||||
|
||||
/obj/item/weapon/storage/sample_container/afterattack(turf/T as turf, mob/user as mob)
|
||||
for(var/obj/item/weapon/research_sample/S in T)
|
||||
S.loc = src
|
||||
update_icon()
|
||||
to_chat(user, "<span class='notice'>You scoop \the [S] into \the [src].</span>")
|
||||
|
||||
//Splice research sample containers into the list of valid items for these belts *without* overriding the lists entirely
|
||||
/obj/item/weapon/storage/belt/explorer/New()
|
||||
. = ..()
|
||||
can_hold.Add(/obj/item/weapon/storage/sample_container)
|
||||
|
||||
/obj/item/weapon/storage/belt/miner/New()
|
||||
. = ..()
|
||||
can_hold.Add(/obj/item/weapon/storage/sample_container)
|
||||
|
||||
/obj/item/weapon/storage/belt/archaeology/New()
|
||||
. = ..()
|
||||
can_hold.Add(/obj/item/weapon/storage/sample_container)
|
||||
|
||||
//ditto, lockers and redemption machines
|
||||
/obj/structure/closet/secure_closet/miner/Initialize()
|
||||
. = ..()
|
||||
starts_with += /obj/item/weapon/storage/sample_container
|
||||
|
||||
/obj/structure/closet/secure_closet/xenoarchaeologist/Initialize()
|
||||
. = ..()
|
||||
starts_with += /obj/item/weapon/storage/sample_container
|
||||
|
||||
/obj/machinery/mineral/equipment_vendor/Initialize(mapload)
|
||||
. = ..()
|
||||
prize_list["Gear"] += list(EQUIPMENT("Exotic Sample Container", /obj/item/weapon/storage/sample_container, 100))
|
||||
|
||||
/obj/machinery/mineral/equipment_vendor/survey/Initialize(mapload)
|
||||
. = ..()
|
||||
prize_list["Gear"] += list(EQUIPMENT("Survey Tools - Exotic Sample Container", /obj/item/weapon/storage/sample_container, 100))
|
||||
Reference in New Issue
Block a user