mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
Custom Item Request
Confirmed with Apple that this was acceptable.
This commit is contained in:
@@ -924,9 +924,29 @@
|
|||||||
|
|
||||||
|
|
||||||
///// Custom Items coded by Iamgoofball are Below /////
|
///// Custom Items coded by Iamgoofball are Below /////
|
||||||
/obj/item/weapon/storage/belt/medical/fluff/honkbelt
|
/obj/item/weapon/storage/belt/medical/fluff/nashi_belt
|
||||||
name = "rainbow medical belt"
|
name = "rainbow medical belt"
|
||||||
desc = "A somewhat-worn, modified, rainbow belt."
|
desc = "A somewhat-worn, modified, rainbow belt."
|
||||||
icon = 'icons/obj/custom_items.dmi'
|
icon = 'icons/obj/custom_items.dmi'
|
||||||
icon_state = "nashi_belt"
|
icon_state = "nashi_belt"
|
||||||
item_state = "fluff_rbelt"
|
item_state = "fluff_rbelt"
|
||||||
|
|
||||||
|
New()
|
||||||
|
..()
|
||||||
|
new /obj/item/weapon/reagent_containers/glass/bottle/fluff/nashi_bottle(src, "bicaridine", 14, "Bicaridine")
|
||||||
|
new /obj/item/weapon/reagent_containers/glass/bottle/fluff/nashi_bottle(src, "dermaline", 15, "Dermaline")
|
||||||
|
new /obj/item/weapon/reagent_containers/glass/bottle/fluff/nashi_bottle(src, "anti_toxin", 16, "Dylovene")
|
||||||
|
new /obj/item/weapon/reagent_containers/glass/bottle/fluff/nashi_bottle(src, "dexalinp", 17, "Dexalin Plus")
|
||||||
|
new /obj/item/weapon/reagent_containers/glass/bottle/fluff/nashi_bottle(src, "tricordrazine", 18, "Tricordrazine")
|
||||||
|
new /obj/item/weapon/reagent_containers/syringe/(src)
|
||||||
|
new /obj/item/device/healthanalyzer(src)
|
||||||
|
|
||||||
|
/obj/item/weapon/reagent_containers/glass/bottle/fluff/nashi_bottle
|
||||||
|
icon = 'icons/obj/chemical.dmi'
|
||||||
|
flags = FPRINT | TABLEPASS //Starting them with lids on them. Safety first!
|
||||||
|
New(loc, var/stuff, var/color, var/labeled)
|
||||||
|
..()
|
||||||
|
name = "[labeled] bottle"
|
||||||
|
desc = "A small bottle. Contains [labeled]"
|
||||||
|
icon_state = "bottle[color]"
|
||||||
|
reagents.add_reagent(stuff, 30)
|
||||||
|
|||||||
@@ -57,6 +57,23 @@
|
|||||||
del(C)
|
del(C)
|
||||||
ok = M.equip_if_possible(I, slot_wear_id, 0) //if 1, last argument deletes on fail
|
ok = M.equip_if_possible(I, slot_wear_id, 0) //if 1, last argument deletes on fail
|
||||||
break
|
break
|
||||||
|
else if(istype(Item,/obj/item/weapon/storage/belt))
|
||||||
|
if(M.ckey == "jakksergal" && M.real_name == "Nashi Ra'hal" && M.mind.role_alt_title && M.mind.role_alt_title != "Nurse" && M.mind.role_alt_title != "Chemist")
|
||||||
|
ok = 1
|
||||||
|
del(Item)
|
||||||
|
goto skip
|
||||||
|
var/obj/item/weapon/storage/belt/medical/fluff/nashi_belt/I = Item
|
||||||
|
if(istype(M.belt,/obj/item/weapon/storage/belt))
|
||||||
|
for(var/obj/item/weapon/storage/belt/B in M)
|
||||||
|
del(B)
|
||||||
|
M.belt=null
|
||||||
|
ok = M.equip_if_possible(I, slot_belt, 0)
|
||||||
|
break
|
||||||
|
if(istype(M.belt,/obj/item/device/pda))
|
||||||
|
for(var/obj/item/device/pda/Pda in M)
|
||||||
|
M.belt=null
|
||||||
|
M.equip_if_possible(Pda, slot_l_store, 0)
|
||||||
|
ok = M.equip_if_possible(I, slot_belt, 0)
|
||||||
else if(istype(M.back,/obj/item/weapon/storage) && M.back:contents.len < M.back:storage_slots) // Try to place it in something on the mob's back
|
else if(istype(M.back,/obj/item/weapon/storage) && M.back:contents.len < M.back:storage_slots) // Try to place it in something on the mob's back
|
||||||
Item.loc = M.back
|
Item.loc = M.back
|
||||||
ok = 1
|
ok = 1
|
||||||
@@ -70,4 +87,4 @@
|
|||||||
|
|
||||||
skip:
|
skip:
|
||||||
if (ok == 0) // Finally, since everything else failed, place it on the ground
|
if (ok == 0) // Finally, since everything else failed, place it on the ground
|
||||||
Item.loc = get_turf(M.loc)
|
Item.loc = get_turf(M.loc)
|
||||||
|
|||||||
Reference in New Issue
Block a user