mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-01-08 00:12:25 +00:00
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5252 316c924e-a436-60f5-8080-3fe189b3f50e
207 lines
6.8 KiB
Plaintext
207 lines
6.8 KiB
Plaintext
/* First aid storage
|
|
* Contains:
|
|
* First Aid Kits
|
|
* Syringe Kit
|
|
* Pill Bottles
|
|
*/
|
|
|
|
/*
|
|
* First Aid Kits
|
|
*/
|
|
/obj/item/weapon/storage/firstaid
|
|
name = "first-aid kit"
|
|
desc = "It's an emergency medical kit for those serious boo-boos."
|
|
icon_state = "firstaid"
|
|
throw_speed = 2
|
|
throw_range = 8
|
|
var/empty = 0
|
|
|
|
|
|
/obj/item/weapon/storage/firstaid/fire
|
|
name = "fire first-aid kit"
|
|
desc = "It's an emergency medical kit for when the toxins lab <i>-spontaneously-</i> burns down."
|
|
icon_state = "ointment"
|
|
item_state = "firstaid-ointment"
|
|
|
|
New()
|
|
..()
|
|
if (empty) return
|
|
|
|
icon_state = pick("ointment","firefirstaid")
|
|
|
|
new /obj/item/device/healthanalyzer( src )
|
|
new /obj/item/weapon/reagent_containers/syringe/inaprovaline( src )
|
|
new /obj/item/stack/medical/ointment( src )
|
|
new /obj/item/stack/medical/ointment( src )
|
|
new /obj/item/weapon/reagent_containers/pill/kelotane( src )
|
|
new /obj/item/weapon/reagent_containers/pill/kelotane( src )
|
|
new /obj/item/weapon/reagent_containers/pill/kelotane( src ) //Replaced ointment with these since they actually work --Errorage
|
|
return
|
|
|
|
|
|
/obj/item/weapon/storage/firstaid/regular
|
|
icon_state = "firstaid"
|
|
|
|
New()
|
|
..()
|
|
if (empty) return
|
|
new /obj/item/stack/medical/bruise_pack(src)
|
|
new /obj/item/stack/medical/bruise_pack(src)
|
|
new /obj/item/stack/medical/bruise_pack(src)
|
|
new /obj/item/stack/medical/ointment(src)
|
|
new /obj/item/stack/medical/ointment(src)
|
|
new /obj/item/device/healthanalyzer(src)
|
|
new /obj/item/weapon/reagent_containers/syringe/inaprovaline( src )
|
|
return
|
|
|
|
/obj/item/weapon/storage/firstaid/toxin
|
|
name = "toxin first aid"
|
|
desc = "Used to treat when you have a high amoutn of toxins in your body."
|
|
icon_state = "antitoxin"
|
|
item_state = "firstaid-toxin"
|
|
|
|
New()
|
|
..()
|
|
if (empty) return
|
|
|
|
icon_state = pick("antitoxin","antitoxfirstaid","antitoxfirstaid2","antitoxfirstaid3")
|
|
|
|
new /obj/item/weapon/reagent_containers/syringe/antitoxin( src )
|
|
new /obj/item/weapon/reagent_containers/syringe/antitoxin( src )
|
|
new /obj/item/weapon/reagent_containers/syringe/antitoxin( src )
|
|
new /obj/item/weapon/reagent_containers/pill/antitox( src )
|
|
new /obj/item/weapon/reagent_containers/pill/antitox( src )
|
|
new /obj/item/weapon/reagent_containers/pill/antitox( src )
|
|
new /obj/item/device/healthanalyzer( src )
|
|
return
|
|
|
|
/obj/item/weapon/storage/firstaid/o2
|
|
name = "oxygen deprivation first aid"
|
|
desc = "A box full of oxygen goodies."
|
|
icon_state = "o2"
|
|
item_state = "firstaid-o2"
|
|
|
|
New()
|
|
..()
|
|
if (empty) return
|
|
new /obj/item/weapon/reagent_containers/pill/dexalin( src )
|
|
new /obj/item/weapon/reagent_containers/pill/dexalin( src )
|
|
new /obj/item/weapon/reagent_containers/pill/dexalin( src )
|
|
new /obj/item/weapon/reagent_containers/pill/dexalin( src )
|
|
new /obj/item/weapon/reagent_containers/syringe/inaprovaline( src )
|
|
new /obj/item/weapon/reagent_containers/syringe/inaprovaline( src )
|
|
new /obj/item/device/healthanalyzer( src )
|
|
return
|
|
|
|
/*
|
|
* Syringe Kit
|
|
*/
|
|
/obj/item/weapon/storage/syringes
|
|
name = "syringes"
|
|
desc = "A box full of syringes."
|
|
desc = "A biohazard alert warning is printed on the box"
|
|
icon_state = "syringe"
|
|
foldable = /obj/item/stack/sheet/cardboard //BubbleWrap
|
|
|
|
New()
|
|
..()
|
|
new /obj/item/weapon/reagent_containers/syringe( src )
|
|
new /obj/item/weapon/reagent_containers/syringe( src )
|
|
new /obj/item/weapon/reagent_containers/syringe( src )
|
|
new /obj/item/weapon/reagent_containers/syringe( src )
|
|
new /obj/item/weapon/reagent_containers/syringe( src )
|
|
new /obj/item/weapon/reagent_containers/syringe( src )
|
|
new /obj/item/weapon/reagent_containers/syringe( src )
|
|
return
|
|
|
|
/*
|
|
* Pill Bottles
|
|
*/
|
|
/obj/item/weapon/storage/pill_bottle
|
|
name = "pill bottle"
|
|
desc = "It's an airtight container for storing medication."
|
|
icon_state = "pill_canister"
|
|
icon = 'icons/obj/chemical.dmi'
|
|
item_state = "contsolid"
|
|
w_class = 2.0
|
|
can_hold = list("/obj/item/weapon/reagent_containers/pill")
|
|
var/mode = 1 // pickup mode
|
|
|
|
/obj/item/weapon/storage/pill_bottle/MouseDrop(obj/over_object as obj) //Quick pillbottle fix. -Agouri
|
|
|
|
if (ishuman(usr) || ismonkey(usr)) //Can monkeys even place items in the pocket slots? Leaving this in just in case~
|
|
var/mob/M = usr
|
|
if (!( istype(over_object, /obj/screen) ))
|
|
return ..()
|
|
if ((!( M.restrained() ) && !( M.stat ) /*&& M.pocket == src*/))
|
|
switch(over_object.name)
|
|
if("r_hand")
|
|
M.u_equip(src)
|
|
M.put_in_r_hand(src)
|
|
if("l_hand")
|
|
M.u_equip(src)
|
|
M.put_in_l_hand(src)
|
|
src.add_fingerprint(usr)
|
|
return
|
|
if(over_object == usr && in_range(src, usr) || usr.contents.Find(src))
|
|
if (usr.s_active)
|
|
usr.s_active.close(usr)
|
|
src.show_to(usr)
|
|
return
|
|
return
|
|
|
|
|
|
/obj/item/weapon/storage/pill_bottle/verb/toggle_mode()
|
|
set name = "Switch Pill Bottle Method"
|
|
set category = "Object"
|
|
|
|
mode = !mode
|
|
switch (mode)
|
|
if(1)
|
|
usr << "The pill bottle now picks up all pills in a tile at once."
|
|
if(0)
|
|
usr << "The pill bottle now picks up one pill at a time."
|
|
|
|
/obj/item/weapon/storage/pill_bottle/kelotane
|
|
name = "Pill bottle (kelotane)"
|
|
desc = "Contains pills used to treat burns."
|
|
|
|
New()
|
|
..()
|
|
new /obj/item/weapon/reagent_containers/pill/kelotane( src )
|
|
new /obj/item/weapon/reagent_containers/pill/kelotane( src )
|
|
new /obj/item/weapon/reagent_containers/pill/kelotane( src )
|
|
new /obj/item/weapon/reagent_containers/pill/kelotane( src )
|
|
new /obj/item/weapon/reagent_containers/pill/kelotane( src )
|
|
new /obj/item/weapon/reagent_containers/pill/kelotane( src )
|
|
new /obj/item/weapon/reagent_containers/pill/kelotane( src )
|
|
|
|
/obj/item/weapon/storage/pill_bottle/antitox
|
|
name = "Pill bottle (Anti-toxin)"
|
|
desc = "Contains pills used to counter toxins."
|
|
|
|
New()
|
|
..()
|
|
new /obj/item/weapon/reagent_containers/pill/antitox( src )
|
|
new /obj/item/weapon/reagent_containers/pill/antitox( src )
|
|
new /obj/item/weapon/reagent_containers/pill/antitox( src )
|
|
new /obj/item/weapon/reagent_containers/pill/antitox( src )
|
|
new /obj/item/weapon/reagent_containers/pill/antitox( src )
|
|
new /obj/item/weapon/reagent_containers/pill/antitox( src )
|
|
new /obj/item/weapon/reagent_containers/pill/antitox( src )
|
|
|
|
/obj/item/weapon/storage/pill_bottle/inaprovaline
|
|
name = "Pill bottle (inaprovaline)"
|
|
desc = "Contains pills used to stabilize patients."
|
|
|
|
New()
|
|
..()
|
|
new /obj/item/weapon/reagent_containers/pill/inaprovaline( src )
|
|
new /obj/item/weapon/reagent_containers/pill/inaprovaline( src )
|
|
new /obj/item/weapon/reagent_containers/pill/inaprovaline( src )
|
|
new /obj/item/weapon/reagent_containers/pill/inaprovaline( src )
|
|
new /obj/item/weapon/reagent_containers/pill/inaprovaline( src )
|
|
new /obj/item/weapon/reagent_containers/pill/inaprovaline( src )
|
|
new /obj/item/weapon/reagent_containers/pill/inaprovaline( src )
|
|
|