mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
79 lines
2.1 KiB
Plaintext
79 lines
2.1 KiB
Plaintext
/obj/item/cartridge
|
|
slot_flags = SLOT_EARS
|
|
|
|
/obj/item/cartridge/explorer
|
|
name = "\improper Explorator cartridge"
|
|
icon_state = "cart-e"
|
|
programs = list(
|
|
new/datum/data/pda/utility/scanmode/reagent,
|
|
new/datum/data/pda/utility/scanmode/gas)
|
|
|
|
/obj/item/cartridge/sar
|
|
name = "\improper Med-Exp cartridge"
|
|
icon_state = "cart-m"
|
|
programs = list(
|
|
new/datum/data/pda/app/crew_records/medical,
|
|
new/datum/data/pda/utility/scanmode/medical,
|
|
new/datum/data/pda/utility/scanmode/reagent,
|
|
new/datum/data/pda/utility/scanmode/gas)
|
|
|
|
/obj/item/cartridge/storage
|
|
name = "\improper BLU-PAK cartridge"
|
|
desc = "It feels heavier for some reason."
|
|
w_class = ITEMSIZE_SMALL
|
|
icon_state = "cart-lib"
|
|
show_examine = FALSE
|
|
var/slots = 1
|
|
var/obj/item/storage/internal/hold
|
|
|
|
/obj/item/cartridge/storage/Initialize(mapload)
|
|
. = ..()
|
|
hold = new/obj/item/storage/internal(src)
|
|
hold.max_storage_space = slots * 2
|
|
hold.max_w_class = ITEMSIZE_SMALL
|
|
|
|
/obj/item/cartridge/storage/attack_hand(mob/user as mob)
|
|
if (hold.handle_attack_hand(user)) //otherwise interact as a regular storage item
|
|
..(user)
|
|
|
|
/obj/item/cartridge/storage/attackby(obj/item/W as obj, mob/user as mob)
|
|
..()
|
|
return hold.attackby(W, user)
|
|
|
|
/obj/item/cartridge/storage/MouseDrop(obj/over_object as obj)
|
|
if (hold.handle_mousedrop(usr, over_object))
|
|
..(over_object)
|
|
|
|
/obj/item/cartridge/storage/attack_self(mob/user)
|
|
to_chat(user, span_notice("You empty [src]."))
|
|
var/turf/T = get_turf(src)
|
|
hold.hide_from(user)
|
|
for(var/obj/item/I in hold.contents)
|
|
hold.remove_from_storage(I, T)
|
|
add_fingerprint(user)
|
|
|
|
/obj/item/cartridge/storage/emp_act(severity)
|
|
hold.emp_act(severity)
|
|
..()
|
|
|
|
/obj/item/cartridge/storage/deluxe
|
|
name = "\improper BLU-PAK DELUXE cartridge"
|
|
programs = list(
|
|
new/datum/data/pda/app/power,
|
|
new/datum/data/pda/utility/scanmode/halogen,
|
|
|
|
new/datum/data/pda/utility/scanmode/gas,
|
|
|
|
new/datum/data/pda/app/crew_records/medical,
|
|
new/datum/data/pda/utility/scanmode/medical,
|
|
|
|
new/datum/data/pda/utility/scanmode/reagent,
|
|
|
|
new/datum/data/pda/app/crew_records/security,
|
|
|
|
new/datum/data/pda/app/janitor,
|
|
|
|
new/datum/data/pda/app/supply,
|
|
|
|
new/datum/data/pda/app/status_display)
|