mirror of
https://github.com/Aurorastation/Aurora-Old.git
synced 2026-07-19 03:32:56 +01:00
Initial Commit
This commit is contained in:
@@ -0,0 +1,266 @@
|
||||
/obj/item/weapon/storage/belt/fluff/jace_toolbelt //Jace's Toolbelt - Jace Evans - Wittme91
|
||||
name = "Jace's Toolbelt"
|
||||
desc = "A large, well-worn toolbelt."
|
||||
icon = 'icons/obj/custom_items.dmi'
|
||||
icon_state = "jace_belt"
|
||||
item_state = "jace_belt"
|
||||
can_hold = list(
|
||||
"/obj/item/weapon/crowbar",
|
||||
"/obj/item/weapon/screwdriver",
|
||||
"/obj/item/weapon/weldingtool",
|
||||
"/obj/item/weapon/wirecutters",
|
||||
"/obj/item/weapon/wrench",
|
||||
"/obj/item/device/multitool",
|
||||
"/obj/item/device/flashlight",
|
||||
"/obj/item/weapon/cable_coil",
|
||||
"/obj/item/device/t_scanner",
|
||||
"/obj/item/device/analyzer",
|
||||
"/obj/item/taperoll/engineering",
|
||||
"/obj/item/weapon/rcd",
|
||||
"/obj/item/weapon/rcd_ammo",
|
||||
"/obj/item/weapon/firealarm_electronics",
|
||||
"/obj/item/weapon/circuitboard",
|
||||
"/obj/item/weapon/airalarm_electronics",
|
||||
"/obj/item/weapon/airlock_electronics",
|
||||
"/obj/item/weapon/module/power_control",
|
||||
"/obj/item/weapon/cell",
|
||||
"/obj/item/weapon/hand_tele")
|
||||
storage_slots = 14
|
||||
max_combined_w_class = 42
|
||||
max_w_class = 3
|
||||
|
||||
/obj/item/clothing/tie/fluff/teranium_necklace //Teranium Necklace - Inis Tool-Truesight - Gollee
|
||||
name = "Teranium Necklace"
|
||||
desc = "A small electric blue crystal held on a fine metal chain."
|
||||
icon = 'icons/obj/custom_items.dmi'
|
||||
icon_state = "teranium_necklace"
|
||||
item_state = "teranium_necklace"
|
||||
item_color = "teranium_necklace"
|
||||
slot_flags = SLOT_MASK
|
||||
|
||||
/obj/item/weapon/lighter/zippo/fluff/nikolai_zippo //Silver Plated Lighter - Nikolai Petirosky - Nikolai the beast
|
||||
name = "Silver Plated Lighter"
|
||||
desc = "A silver lighter, adorned with many wear marks."
|
||||
icon = 'icons/obj/custom_items.dmi'
|
||||
icon_state = "nikolai_zippo"
|
||||
icon_on = "nikolai_zippoon"
|
||||
icon_off = "nikolai_zippo"
|
||||
|
||||
/obj/item/weapon/storage/box/fluff/nikolai_tin //Silver Cigar Tin - Nikolai Petirosky - Nikolai the beast
|
||||
name = "Silver Cigar Tin"
|
||||
desc = "A silver plated tin, a pleasant smell of tobacco eminating from it."
|
||||
icon = 'icons/obj/custom_items.dmi'
|
||||
icon_state = "nikolai_tin"
|
||||
storage_slots = 5
|
||||
max_w_class = 1
|
||||
max_combined_w_class = 5
|
||||
foldable = null
|
||||
can_hold = list(
|
||||
"/obj/item/clothing/mask/cigarette/cigar",
|
||||
"/obj/item/clothing/mask/cigarette/cigar/cohiba",
|
||||
"/obj/item/clothing/mask/cigarette/cigar/havana",
|
||||
"/obj/item/clothing/mask/cigarette")
|
||||
New()
|
||||
..()
|
||||
new /obj/item/clothing/mask/cigarette/cigar(src)
|
||||
new /obj/item/clothing/mask/cigarette/cigar(src)
|
||||
new /obj/item/clothing/mask/cigarette/cigar(src)
|
||||
new /obj/item/clothing/mask/cigarette/cigar(src)
|
||||
new /obj/item/clothing/mask/cigarette/cigar(src)
|
||||
return
|
||||
|
||||
/obj/item/clothing/suit/storage/fluff/edward_coat //Edward's Trenchcoat - Edward Smith - leore
|
||||
name = "Edward's Trenchcoat"
|
||||
desc = "A dusty old trenchcoat. It bears the faint initials E.S. on the collar."
|
||||
icon = 'icons/obj/custom_items.dmi'
|
||||
icon_state = "edward_coat"
|
||||
item_state = "edward_coat"
|
||||
blood_overlay_type = "coat"
|
||||
body_parts_covered = UPPER_TORSO|LOWER_TORSO|LEGS|ARMS
|
||||
allowed = list(/obj/item/weapon/tank/emergency_oxygen, /obj/item/device/flashlight,/obj/item/weapon/gun/energy,/obj/item/weapon/gun/projectile,/obj/item/ammo_magazine,/obj/item/ammo_casing,/obj/item/weapon/melee/baton,/obj/item/weapon/handcuffs,/obj/item/weapon/storage/fancy/cigarettes,/obj/item/weapon/lighter,/obj/item/device/detective_scanner,/obj/item/device/taperecorder)
|
||||
|
||||
/* /obj/item/weapon/storage/wallet/fluff/faith_wallet //Worn Wallet - Faith Skirata - FaithSkirata
|
||||
* name = "Worn Wallet"
|
||||
* desc = "A synthetic leather wallet, marked with burns and tears throughout. It smells funny."
|
||||
* icon = 'icons/obj/custom_items.dmi'
|
||||
* icon_state = "faith_wallet"
|
||||
*/
|
||||
|
||||
/obj/item/clothing/glasses/eyepatch/fluff/peter_eyepatch //Peter's Patch - Peter Thrushwood - farcry11 - DONE
|
||||
name = "Peter's Patch"
|
||||
desc = "A rather grungy looking eyepatch. If you're holding it, a certain man is probably freaking out right now."
|
||||
|
||||
/obj/item/clothing/shoes/sandal/fluff/raieed_sandals //Treasured Sandals - Raieed Amari - nikolaithebeast - DONE
|
||||
name = "Treasured Sandals"
|
||||
desc = "A pair of black sandals, which seem to hold the entire on themselves."
|
||||
icon = 'icons/obj/custom_items.dmi'
|
||||
icon_state = "raieed_sandals"
|
||||
item_state = "raieed_sandals"
|
||||
|
||||
/obj/item/clothing/suit/storage/fluff/raieed_labcoat //Treasured Labcoat - Raieed Amari - nikolaithebeast - DONE
|
||||
name = "Treasured Labcoat"
|
||||
desc = "A coat that seems to emanate the love that was put into its creation."
|
||||
icon = 'icons/obj/custom_items.dmi'
|
||||
icon_state = "raieed_labcoat_open"
|
||||
item_state = "raieed_labcoat"
|
||||
|
||||
/obj/item/weapon/folder/fluff/may_notebook //May Izumi's Notebook - May Izumi - lk600 - DONE
|
||||
name = "May Izumi's Notebook"
|
||||
desc = "A pink notebook that is covered in hearts and little manger stickers. It is filled with lots of questions, replies and conversations from her past. It has 'May Izumi' printed on the front."
|
||||
icon = 'icons/obj/custom_items.dmi'
|
||||
icon_state = "izumi_notebook"
|
||||
|
||||
/obj/item/clothing/under/dress/fluff/olivia_uniform //Waitress Uniform - Olivia Conrad - meowykins - DONE
|
||||
name = "Waitress Uniform"
|
||||
desc = "A modest uniform. the name-tag reads 'Olivia Conrad'."
|
||||
icon = 'icons/obj/custom_items.dmi'
|
||||
icon_state = "olivia_skirt"
|
||||
item_color = "black"
|
||||
item_state = "olivia_skirt_s"
|
||||
|
||||
/obj/item/clothing/head/hairflower/fluff/olivia_flower //White Flower - Olivia Conrad - meowykins - DONE
|
||||
name = "White flower"
|
||||
desc = "A white flower. It has a clip on the back."
|
||||
icon = 'icons/obj/custom_items.dmi'
|
||||
icon_state = "olivia_flower"
|
||||
item_state = "olivia_flower"
|
||||
|
||||
/obj/item/clothing/under/rank/fluff/steven_unfirom //Naval Working Uniform - Steven Machnaughton - sgtsammac - DONE
|
||||
name = "Naval Working Uniform"
|
||||
desc = "A working unfirom of the NanoTrasen Navy."
|
||||
icon = 'icons/obj/custom_items.dmi'
|
||||
icon_state = "steven_unfirom"
|
||||
item_color = "black"
|
||||
item_state = "steven_uniform_s"
|
||||
|
||||
/obj/item/weapon/coin/fluff/sphere_coin //Rusty Coin - Yusani Thomas - f_sphere - DONE
|
||||
name = "Rusty Coin"
|
||||
desc = "A small, dirty coin. It looks like it has been around for ages."
|
||||
icon = 'icons/obj/custom_items.dmi'
|
||||
icon_state = "coin_sphere"
|
||||
|
||||
/obj/item/weapon/weldingtool/fluff/dae_welder //Custom built welding tool - Atalanta Cascadia - daetactica - DONE
|
||||
name = "welding tool"
|
||||
icon = 'icons/obj/custom_items.dmi'
|
||||
icon_state = "welder"
|
||||
|
||||
/obj/item/weapon/reagent_containers/glass/rag/fluff/rusty_handkerchief //handkerchief - Janet Fisher - rustysh4ckleford - DONE
|
||||
name = "Handkerchief"
|
||||
desc = "An ordinary handkerchief. It has what looks to be a washed out bloodstain on it."
|
||||
w_class = 1
|
||||
icon = 'icons/obj/custom_items.dmi'
|
||||
icon_state = "janet_handkerchief"
|
||||
amount_per_transfer_from_this = 5
|
||||
possible_transfer_amounts = list(5)
|
||||
volume = 5
|
||||
can_be_placed_into = null
|
||||
|
||||
/obj/item/weapon/reagent_containers/glass/rag/fluff/rusty_handkerchief/attack_self(mob/user as mob)
|
||||
user.visible_message("[user] holds [src] up to her face.")
|
||||
if(do_after(user,30))
|
||||
user.visible_message("[user] moves [src] away from her face.")
|
||||
return
|
||||
|
||||
/obj/item/weapon/reagent_containers/glass/rag/fluff/rusty_handkerchief/attack(atom/target as obj|turf|area, mob/user as mob , flag)
|
||||
if(ismob(target) && target.reagents && reagents.total_volume)
|
||||
user.visible_message("\red \The [target] has been smothered with \the [src] by \the [user]!", "\red You smother \the [target] with \the [src]!", "You hear some struggling and muffled cries of surprise")
|
||||
src.reagents.reaction(target, TOUCH)
|
||||
spawn(5) src.reagents.clear_reagents()
|
||||
return
|
||||
else
|
||||
..()
|
||||
|
||||
/obj/item/weapon/reagent_containers/glass/rag/fluff/rusty_handkerchief/afterattack(atom/A as obj|turf|area, mob/user as mob, proximity)
|
||||
if(!proximity) return
|
||||
if(istype(A) && src in user)
|
||||
user.visible_message("[user] starts to wipe down [A] with [src]!")
|
||||
if(do_after(user,30))
|
||||
user.visible_message("[user] finishes wiping off the [A]!")
|
||||
A.clean_blood()
|
||||
return
|
||||
|
||||
/obj/item/weapon/reagent_containers/glass/rag/fluff/rusty_handkerchief/examine()
|
||||
if (!usr)
|
||||
return
|
||||
usr << "That's \a [src]."
|
||||
usr << desc
|
||||
return
|
||||
|
||||
/obj/item/clothing/tie/storage/knifeharness/fluff/skull132_harness //A crimson harness - No assign character (Allyn "Crimson" Adema) - skull132 - DONE
|
||||
name = "a crimson harness"
|
||||
desc = "An Unathi ceremonial harness with two pieces of crimson cloth draped across the heart of the wearer."
|
||||
icon = 'icons/obj/custom_items.dmi'
|
||||
icon_state = "skull_harness2"
|
||||
item_color = "skull_harness2"
|
||||
item_state = "skull_harness2"
|
||||
slots = 2
|
||||
|
||||
/obj/item/clothing/tie/storage/knifeharness/fluff/skull132_harness/attackby(var/obj/item/O as obj, mob/user as mob)
|
||||
..()
|
||||
update()
|
||||
|
||||
/obj/item/clothing/tie/storage/knifeharness/fluff/skull132_harness/proc/updateskull()
|
||||
var/count = 0
|
||||
for(var/obj/item/I in hold)
|
||||
if(istype(I,/obj/item/weapon/hatchet/unathiknife))
|
||||
count++
|
||||
if(count>2) count = 2
|
||||
item_state = "skull_harness[count]"
|
||||
icon_state = item_state
|
||||
item_color = item_state
|
||||
|
||||
if(istype(loc, /obj/item/clothing))
|
||||
var/obj/item/clothing/U = loc
|
||||
if(istype(U.loc, /mob/living/carbon/human))
|
||||
var/mob/living/carbon/human/H = U.loc
|
||||
H.update_inv_w_uniform()
|
||||
|
||||
/obj/item/clothing/tie/storage/knifeharness/fluff/skull132_harness/New()
|
||||
..()
|
||||
new /obj/item/weapon/hatchet/unathiknife(hold)
|
||||
new /obj/item/weapon/hatchet/unathiknife(hold)
|
||||
|
||||
/obj/item/weapon/disk/fluff/nebula_chip //data chip - Roxy Wallace - nebulaflare - DONE
|
||||
name = "data chip"
|
||||
desc = "A small green chip."
|
||||
icon = 'icons/obj/custom_items.dmi'
|
||||
icon_state = "nebula_chip"
|
||||
w_class = 1
|
||||
|
||||
/obj/item/weapon/storage/fluff/nebula_glasses //chich eyewear - Roxy Wallace - nebulaflare - DONE
|
||||
name = "Chic Eyewear"
|
||||
desc = " A stylish pair of glasses. They look custom made."
|
||||
icon = 'icons/obj/custom_items.dmi'
|
||||
icon_state = "nebula_glasses"
|
||||
item_state = "glasses"
|
||||
flags = FPRINT | GLASSESCOVERSEYES
|
||||
slot_flags = SLOT_EYES
|
||||
can_hold = list(
|
||||
"/obj/item/weapon/disk/fluff/nebula_chip")
|
||||
storage_slots = 1
|
||||
max_combined_w_class = 1
|
||||
max_w_class = 1
|
||||
|
||||
/obj/item/weapon/storage/fluff/nebula_glasses/proc/can_use()
|
||||
if(!ismob(loc)) return 0
|
||||
var/mob/M = loc
|
||||
if(src in M.get_equipped_items())
|
||||
return 1
|
||||
else
|
||||
return 0
|
||||
|
||||
/obj/item/weapon/storage/fluff/nebula_glasses/MouseDrop(obj/over_object as obj, src_location, over_location)
|
||||
var/mob/M = usr
|
||||
if(!istype(over_object, /obj/screen))
|
||||
return ..()
|
||||
playsound(src.loc, "rustle", 50, 1, -5)
|
||||
if (!M.restrained() && !M.stat && can_use())
|
||||
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
|
||||
@@ -0,0 +1,74 @@
|
||||
//switch this out to use a database at some point
|
||||
//list of ckey/ real_name and item paths
|
||||
//gives item to specific people when they join if it can
|
||||
//for multiple items just add mutliple entries, unless i change it to be a listlistlist
|
||||
//yes, it has to be an item, you can't pick up nonitems
|
||||
|
||||
|
||||
/proc/EquipCustomItems(mob/living/carbon/human/M)
|
||||
// load lines
|
||||
var/file = file2text("config/custom_items.txt")
|
||||
var/lines = text2list(file, "\n")
|
||||
|
||||
for(var/line in lines)
|
||||
// split & clean up
|
||||
var/list/Entry = text2list(line, ":")
|
||||
for(var/i = 1 to Entry.len)
|
||||
Entry[i] = trim(Entry[i])
|
||||
|
||||
if(Entry.len < 3)
|
||||
continue;
|
||||
|
||||
if(Entry[1] == M.ckey && Entry[2] == M.real_name)
|
||||
var/list/Paths = text2list(Entry[3], ",")
|
||||
for(var/P in Paths)
|
||||
var/ok = 0 // 1 if the item was placed successfully
|
||||
P = trim(P)
|
||||
var/path = text2path(P)
|
||||
var/obj/item/Item = new path()
|
||||
if(istype(Item,/obj/item/weapon/card/id))
|
||||
//id card needs to replace the original ID
|
||||
if(M.ckey == "nerezza" && M.real_name == "Asher Spock" && M.mind.role_alt_title && M.mind.role_alt_title != "Emergency Physician")
|
||||
//only spawn ID if asher is joining as an emergency physician
|
||||
ok = 1
|
||||
del(Item)
|
||||
goto skip
|
||||
var/obj/item/weapon/card/id/I = Item
|
||||
for(var/obj/item/weapon/card/id/C in M)
|
||||
//default settings
|
||||
I.name = "[M.real_name]'s ID Card ([M.mind.role_alt_title ? M.mind.role_alt_title : M.mind.assigned_role])"
|
||||
I.registered_name = M.real_name
|
||||
I.access = C.access
|
||||
I.assignment = C.assignment
|
||||
I.blood_type = C.blood_type
|
||||
I.dna_hash = C.dna_hash
|
||||
I.fingerprint_hash = C.fingerprint_hash
|
||||
//I.pin = C.pin
|
||||
|
||||
/* //custom stuff
|
||||
if(M.ckey == "fastler" && M.real_name == "Fastler Greay") //This is a Lifetime ID
|
||||
I.name = "[M.real_name]'s Lifetime ID Card ([M.mind.role_alt_title ? M.mind.role_alt_title : M.mind.assigned_role])"
|
||||
else if(M.ckey == "nerezza" && M.real_name == "Asher Spock") //This is an Odysseus Specialist ID
|
||||
I.name = "[M.real_name]'s Odysseus Specialist ID Card ([M.mind.role_alt_title ? M.mind.role_alt_title : M.mind.assigned_role])"
|
||||
I.access += list(access_robotics) //Station-based mecha pilots need this to access the recharge bay.
|
||||
else if(M.ckey == "roaper" && M.real_name == "Ian Colm") //This is a Technician ID
|
||||
I.name = "[M.real_name]'s Technician ID ([M.mind.role_alt_title ? M.mind.role_alt_title : M.mind.assigned_role])"
|
||||
*/
|
||||
//replace old ID
|
||||
del(C)
|
||||
ok = M.equip_if_possible(I, slot_wear_id, 0) //if 1, last argument deletes on fail
|
||||
break
|
||||
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
|
||||
ok = 1
|
||||
|
||||
else
|
||||
for(var/obj/item/weapon/storage/S in M.contents) // Try to place it in any item that can store stuff, on the mob.
|
||||
if (S.contents.len < S.storage_slots)
|
||||
Item.loc = S
|
||||
ok = 1
|
||||
break
|
||||
|
||||
skip:
|
||||
if (ok == 0) // Finally, since everything else failed, place it on the ground
|
||||
Item.loc = get_turf(M.loc)
|
||||
Reference in New Issue
Block a user