mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-26 10:03:45 +00:00
Conflicts: code/game/objects/items/weapons/storage/backpack.dm code/game/objects/structures/crates_lockers/closets/secure/security.dm code/game/objects/structures/crates_lockers/closets/wardrobe.dm code/modules/client/preferences_gear.dm code/modules/clothing/under/accessories/accessory.dm
309 lines
9.6 KiB
Plaintext
309 lines
9.6 KiB
Plaintext
|
|
/*
|
|
* Backpack
|
|
*/
|
|
|
|
/obj/item/weapon/storage/backpack
|
|
name = "backpack"
|
|
desc = "You wear this on your back and put items into it."
|
|
item_icons = list(
|
|
slot_l_hand_str = 'icons/mob/items/lefthand_backpacks.dmi',
|
|
slot_r_hand_str = 'icons/mob/items/righthand_backpacks.dmi',
|
|
)
|
|
icon_state = "backpack"
|
|
item_state = null
|
|
//most backpacks use the default backpack state for inhand overlays
|
|
item_state_slots = list(
|
|
slot_l_hand_str = "backpack",
|
|
slot_r_hand_str = "backpack",
|
|
)
|
|
sprite_sheets = list(
|
|
"Resomi" = 'icons/mob/species/resomi/back.dmi'
|
|
)
|
|
w_class = 4
|
|
slot_flags = SLOT_BACK
|
|
max_w_class = 3
|
|
max_storage_space = 28
|
|
|
|
/obj/item/weapon/storage/backpack/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
|
if (src.use_sound)
|
|
playsound(src.loc, src.use_sound, 50, 1, -5)
|
|
..()
|
|
|
|
/obj/item/weapon/storage/backpack/equipped(var/mob/user, var/slot)
|
|
if (slot == slot_back && src.use_sound)
|
|
playsound(src.loc, src.use_sound, 50, 1, -5)
|
|
..(user, slot)
|
|
|
|
/*
|
|
/obj/item/weapon/storage/backpack/dropped(mob/user as mob)
|
|
if (loc == user && src.use_sound)
|
|
playsound(src.loc, src.use_sound, 50, 1, -5)
|
|
..(user)
|
|
*/
|
|
|
|
/*
|
|
* Backpack Types
|
|
*/
|
|
|
|
/obj/item/weapon/storage/backpack/holding
|
|
name = "bag of holding"
|
|
desc = "A backpack that opens into a localized pocket of Blue Space."
|
|
origin_tech = list(TECH_BLUESPACE = 4)
|
|
icon_state = "holdingpack"
|
|
max_w_class = 4
|
|
max_storage_space = 56
|
|
|
|
New()
|
|
..()
|
|
return
|
|
|
|
attackby(obj/item/weapon/W as obj, mob/user as mob)
|
|
if(istype(W, /obj/item/weapon/storage/backpack/holding))
|
|
user << "<span class='warning'>The Bluespace interfaces of the two devices conflict and malfunction.</span>"
|
|
qdel(W)
|
|
return
|
|
..()
|
|
|
|
//Please don't clutter the parent storage item with stupid hacks.
|
|
can_be_inserted(obj/item/W as obj, stop_messages = 0)
|
|
if(istype(W, /obj/item/weapon/storage/backpack/holding))
|
|
return 1
|
|
return ..()
|
|
|
|
/obj/item/weapon/storage/backpack/santabag
|
|
name = "\improper Santa's gift bag"
|
|
desc = "Space Santa uses this to deliver toys to all the nice children in space in Christmas! Wow, it's pretty big!"
|
|
icon_state = "giftbag0"
|
|
item_state = "giftbag"
|
|
w_class = 4.0
|
|
storage_slots = 20
|
|
max_w_class = 3
|
|
max_storage_space = 400 // can store a ton of shit!
|
|
item_state_slots = null
|
|
|
|
/obj/item/weapon/storage/backpack/cultpack
|
|
name = "trophy rack"
|
|
desc = "It's useful for both carrying extra gear and proudly declaring your insanity."
|
|
icon_state = "cultpack"
|
|
|
|
/obj/item/weapon/storage/backpack/clown
|
|
name = "Giggles von Honkerton"
|
|
desc = "It's a backpack made by Honk! Co."
|
|
icon_state = "clownpack"
|
|
item_state_slots = null
|
|
|
|
/obj/item/weapon/storage/backpack/medic
|
|
name = "medical backpack"
|
|
desc = "It's a backpack especially designed for use in a sterile environment."
|
|
icon_state = "medicalpack"
|
|
item_state_slots = null
|
|
|
|
/obj/item/weapon/storage/backpack/security
|
|
name = "security backpack"
|
|
desc = "It's a very robust backpack."
|
|
icon_state = "securitypack"
|
|
item_state_slots = null
|
|
|
|
/obj/item/weapon/storage/backpack/captain
|
|
name = "captain's backpack"
|
|
desc = "It's a special backpack made exclusively for officers."
|
|
icon_state = "captainpack"
|
|
item_state_slots = null
|
|
|
|
/obj/item/weapon/storage/backpack/industrial
|
|
name = "industrial backpack"
|
|
desc = "It's a tough backpack for the daily grind of station life."
|
|
icon_state = "engiepack"
|
|
item_state_slots = null
|
|
|
|
/obj/item/weapon/storage/backpack/toxins
|
|
name = "laboratory backpack"
|
|
desc = "It's a light backpack modeled for use in laboratories and other scientific institutions."
|
|
icon_state = "toxpack"
|
|
|
|
/obj/item/weapon/storage/backpack/hydroponics
|
|
name = "herbalist's backpack"
|
|
desc = "It's a green backpack with many pockets to store plants and tools in."
|
|
icon_state = "hydpack"
|
|
|
|
/obj/item/weapon/storage/backpack/genetics
|
|
name = "geneticist backpack"
|
|
desc = "It's a backpack fitted with slots for diskettes and other workplace tools."
|
|
icon_state = "genpack"
|
|
|
|
/obj/item/weapon/storage/backpack/virology
|
|
name = "sterile backpack"
|
|
desc = "It's a sterile backpack able to withstand different pathogens from entering its fabric."
|
|
icon_state = "viropack"
|
|
|
|
/obj/item/weapon/storage/backpack/chemistry
|
|
name = "chemistry backpack"
|
|
desc = "It's an orange backpack which was designed to hold beakers, pill bottles and bottles."
|
|
icon_state = "chempack"
|
|
|
|
/obj/item/weapon/storage/backpack/dufflebag
|
|
name = "dufflebag"
|
|
desc = "A large dufflebag for holding extra things."
|
|
icon_state = "duffle"
|
|
item_state = "duffle"
|
|
slowdown = 1
|
|
max_storage_space = 56
|
|
storage_slots = 20
|
|
|
|
/obj/item/weapon/storage/backpack/dufflebag/syndie
|
|
name = "suspicious looking dufflebag"
|
|
desc = "A large dufflebag for holding extra tactical supplies."
|
|
icon_state = "duffle_syndie"
|
|
item_state = "duffle_syndiemed"
|
|
slowdown = 0
|
|
|
|
/obj/item/weapon/storage/backpack/dufflebag/syndie/med
|
|
name = "medical dufflebag"
|
|
desc = "A large dufflebag for holding extra tactical medical supplies."
|
|
icon_state = "duffle_syndiemed"
|
|
item_state = "duffle_syndiemed"
|
|
|
|
/obj/item/weapon/storage/backpack/dufflebag/syndie/ammo
|
|
name = "ammunition dufflebag"
|
|
desc = "A large dufflebag for holding extra weapons ammunition and supplies."
|
|
icon_state = "duffle_syndieammo"
|
|
item_state = "duffle_syndieammo"
|
|
|
|
/obj/item/weapon/storage/backpack/dufflebag/captain
|
|
name = "captain's dufflebag"
|
|
desc = "A large dufflebag for holding extra captainly goods."
|
|
icon_state = "duffle_captain"
|
|
item_state = "duffle_captain"
|
|
|
|
/obj/item/weapon/storage/backpack/dufflebag/med
|
|
name = "medical dufflebag"
|
|
desc = "A large dufflebag for holding extra medical supplies."
|
|
icon_state = "duffle_med"
|
|
item_state = "duffle_med"
|
|
|
|
/obj/item/weapon/storage/backpack/dufflebag/sec
|
|
name = "security dufflebag"
|
|
desc = "A large dufflebag for holding extra security supplies and ammunition."
|
|
icon_state = "duffle_sec"
|
|
item_state = "duffle_sec"
|
|
|
|
/obj/item/weapon/storage/backpack/dufflebag/eng
|
|
name = "industrial dufflebag"
|
|
desc = "A large dufflebag for holding extra tools and supplies."
|
|
icon_state = "duffle_eng"
|
|
item_state = "duffle_eng"
|
|
|
|
/*
|
|
* Satchel Types
|
|
*/
|
|
|
|
/obj/item/weapon/storage/backpack/satchel
|
|
name = "leather satchel"
|
|
desc = "It's a very fancy satchel made with fine leather."
|
|
icon_state = "satchel"
|
|
|
|
/obj/item/weapon/storage/backpack/satchel/withwallet
|
|
New()
|
|
..()
|
|
new /obj/item/weapon/storage/wallet/random( src )
|
|
|
|
/obj/item/weapon/storage/backpack/satchel_norm
|
|
name = "satchel"
|
|
desc = "A trendy looking satchel."
|
|
icon_state = "satchel-norm"
|
|
|
|
/obj/item/weapon/storage/backpack/satchel_eng
|
|
name = "industrial satchel"
|
|
desc = "A tough satchel with extra pockets."
|
|
icon_state = "satchel-eng"
|
|
item_state_slots = list(
|
|
slot_l_hand_str = "engiepack",
|
|
slot_r_hand_str = "engiepack",
|
|
)
|
|
|
|
/obj/item/weapon/storage/backpack/satchel_med
|
|
name = "medical satchel"
|
|
desc = "A sterile satchel used in medical departments."
|
|
icon_state = "satchel-med"
|
|
item_state_slots = list(
|
|
slot_l_hand_str = "medicalpack",
|
|
slot_r_hand_str = "medicalpack",
|
|
)
|
|
|
|
/obj/item/weapon/storage/backpack/satchel_vir
|
|
name = "virologist satchel"
|
|
desc = "A sterile satchel with virologist colours."
|
|
icon_state = "satchel-vir"
|
|
|
|
/obj/item/weapon/storage/backpack/satchel_chem
|
|
name = "chemist satchel"
|
|
desc = "A sterile satchel with chemist colours."
|
|
icon_state = "satchel-chem"
|
|
|
|
/obj/item/weapon/storage/backpack/satchel_gen
|
|
name = "geneticist satchel"
|
|
desc = "A sterile satchel with geneticist colours."
|
|
icon_state = "satchel-gen"
|
|
|
|
/obj/item/weapon/storage/backpack/satchel_tox
|
|
name = "scientist satchel"
|
|
desc = "Useful for holding research materials."
|
|
icon_state = "satchel-tox"
|
|
|
|
/obj/item/weapon/storage/backpack/satchel_sec
|
|
name = "security satchel"
|
|
desc = "A robust satchel for security related needs."
|
|
icon_state = "satchel-sec"
|
|
item_state_slots = list(
|
|
slot_l_hand_str = "securitypack",
|
|
slot_r_hand_str = "securitypack",
|
|
)
|
|
|
|
/obj/item/weapon/storage/backpack/satchel_hyd
|
|
name = "hydroponics satchel"
|
|
desc = "A green satchel for plant related work."
|
|
icon_state = "satchel_hyd"
|
|
|
|
/obj/item/weapon/storage/backpack/satchel_cap
|
|
name = "captain's satchel"
|
|
desc = "An exclusive satchel for officers."
|
|
icon_state = "satchel-cap"
|
|
item_state_slots = list(
|
|
slot_l_hand_str = "satchel-cap",
|
|
slot_r_hand_str = "satchel-cap",
|
|
)
|
|
|
|
//ERT backpacks.
|
|
/obj/item/weapon/storage/backpack/ert
|
|
name = "emergency response team backpack"
|
|
desc = "A spacious backpack with lots of pockets, used by members of the Emergency Response Team."
|
|
icon_state = "ert_commander"
|
|
item_state_slots = list(
|
|
slot_l_hand_str = "securitypack",
|
|
slot_r_hand_str = "securitypack",
|
|
)
|
|
|
|
//Commander
|
|
/obj/item/weapon/storage/backpack/ert/commander
|
|
name = "emergency response team commander backpack"
|
|
desc = "A spacious backpack with lots of pockets, worn by the commander of an Emergency Response Team."
|
|
|
|
//Security
|
|
/obj/item/weapon/storage/backpack/ert/security
|
|
name = "emergency response team security backpack"
|
|
desc = "A spacious backpack with lots of pockets, worn by security members of an Emergency Response Team."
|
|
icon_state = "ert_security"
|
|
|
|
//Engineering
|
|
/obj/item/weapon/storage/backpack/ert/engineer
|
|
name = "emergency response team engineer backpack"
|
|
desc = "A spacious backpack with lots of pockets, worn by engineering members of an Emergency Response Team."
|
|
icon_state = "ert_engineering"
|
|
|
|
//Medical
|
|
/obj/item/weapon/storage/backpack/ert/medical
|
|
name = "emergency response team medical backpack"
|
|
desc = "A spacious backpack with lots of pockets, worn by medical members of an Emergency Response Team."
|
|
icon_state = "ert_medical"
|