diff --git a/_maps/map_files/BoxStation/BoxStation.dmm b/_maps/map_files/BoxStation/BoxStation.dmm
index c1f0634b27..6c72770978 100644
--- a/_maps/map_files/BoxStation/BoxStation.dmm
+++ b/_maps/map_files/BoxStation/BoxStation.dmm
@@ -27755,8 +27755,8 @@
layer = 2.9
},
/obj/structure/table/reinforced,
-/obj/item/destTagger,
-/obj/item/destTagger,
+/obj/item/dest_tagger,
+/obj/item/dest_tagger,
/obj/effect/turf_decal/tile/brown{
dir = 1
},
diff --git a/_maps/map_files/CogStation/CogStation.dmm b/_maps/map_files/CogStation/CogStation.dmm
index cf2504d9d6..b526729dce 100644
--- a/_maps/map_files/CogStation/CogStation.dmm
+++ b/_maps/map_files/CogStation/CogStation.dmm
@@ -5422,7 +5422,7 @@
/obj/effect/turf_decal/stripes/line{
dir = 8
},
-/obj/item/destTagger,
+/obj/item/dest_tagger,
/obj/machinery/atmospherics/components/unary/vent_scrubber/on{
dir = 8
},
@@ -7390,7 +7390,7 @@
dir = 1;
light_color = "#ffc1c1"
},
-/obj/item/destTagger,
+/obj/item/dest_tagger,
/obj/machinery/requests_console{
department = "Service Router";
name = "Service Router RC";
@@ -21060,7 +21060,7 @@
/obj/item/stack/packageWrap,
/obj/item/stack/packageWrap,
/obj/item/hand_labeler,
-/obj/item/destTagger,
+/obj/item/dest_tagger,
/obj/machinery/requests_console{
department = "Public Router";
name = "Public Router RC";
@@ -33416,7 +33416,7 @@
/obj/structure/table,
/obj/item/stack/packageWrap,
/obj/item/hand_labeler,
-/obj/item/destTagger,
+/obj/item/dest_tagger,
/obj/effect/turf_decal/bot,
/obj/machinery/requests_console{
department = "EVA Router";
@@ -50542,7 +50542,7 @@
"ceL" = (
/obj/effect/turf_decal/delivery,
/obj/structure/table,
-/obj/item/destTagger,
+/obj/item/dest_tagger,
/obj/machinery/atmospherics/components/unary/vent_pump/on{
dir = 4
},
@@ -56748,9 +56748,9 @@
"crd" = (
/obj/effect/turf_decal/bot,
/obj/structure/table/reinforced,
-/obj/item/destTagger,
-/obj/item/destTagger,
-/obj/item/destTagger,
+/obj/item/dest_tagger,
+/obj/item/dest_tagger,
+/obj/item/dest_tagger,
/obj/structure/sign/warning{
name = "\improper KEEP CLEAR: HIGH SPEED DELIVERIES";
pixel_y = 32
@@ -59004,7 +59004,7 @@
/area/router/air)
"cvn" = (
/obj/structure/table,
-/obj/item/destTagger,
+/obj/item/dest_tagger,
/obj/machinery/airalarm{
pixel_y = 24
},
@@ -69200,7 +69200,7 @@
/obj/structure/table/reinforced,
/obj/item/stack/packageWrap,
/obj/item/hand_labeler,
-/obj/item/destTagger,
+/obj/item/dest_tagger,
/obj/machinery/light,
/obj/machinery/requests_console{
department = "MedSci Router";
diff --git a/_maps/map_files/Deltastation/DeltaStation2.dmm b/_maps/map_files/Deltastation/DeltaStation2.dmm
index 697a37fb21..386e69fd4b 100644
--- a/_maps/map_files/Deltastation/DeltaStation2.dmm
+++ b/_maps/map_files/Deltastation/DeltaStation2.dmm
@@ -98040,7 +98040,7 @@
"noI" = (
/obj/structure/table,
/obj/item/folder/yellow,
-/obj/item/destTagger,
+/obj/item/dest_tagger,
/obj/effect/turf_decal/tile/brown,
/obj/effect/turf_decal/tile/brown{
dir = 8
diff --git a/_maps/map_files/KiloStation/KiloStation.dmm b/_maps/map_files/KiloStation/KiloStation.dmm
index 12e3252a5e..f32d1cb413 100644
--- a/_maps/map_files/KiloStation/KiloStation.dmm
+++ b/_maps/map_files/KiloStation/KiloStation.dmm
@@ -11258,8 +11258,8 @@
/obj/structure/table,
/obj/item/clipboard,
/obj/item/folder/yellow,
-/obj/item/destTagger,
-/obj/item/destTagger,
+/obj/item/dest_tagger,
+/obj/item/dest_tagger,
/obj/machinery/airalarm{
pixel_y = 22
},
diff --git a/_maps/map_files/LambdaStation/lambda.dmm b/_maps/map_files/LambdaStation/lambda.dmm
index 31ed0aa655..d117182485 100644
--- a/_maps/map_files/LambdaStation/lambda.dmm
+++ b/_maps/map_files/LambdaStation/lambda.dmm
@@ -28627,7 +28627,7 @@
dir = 4
},
/obj/effect/turf_decal/tile,
-/obj/item/destTagger,
+/obj/item/dest_tagger,
/obj/item/hand_labeler,
/obj/machinery/airalarm{
dir = 8;
diff --git a/_maps/map_files/MetaStation/MetaStation.dmm b/_maps/map_files/MetaStation/MetaStation.dmm
index cd687fd5af..87d825c938 100644
--- a/_maps/map_files/MetaStation/MetaStation.dmm
+++ b/_maps/map_files/MetaStation/MetaStation.dmm
@@ -68966,7 +68966,7 @@
},
/obj/item/stack/wrapping_paper,
/obj/item/stack/wrapping_paper,
-/obj/item/destTagger{
+/obj/item/dest_tagger{
pixel_x = 4;
pixel_y = 3
},
@@ -82336,7 +82336,7 @@
/area/medical/treatment_center)
"wuz" = (
/obj/structure/table,
-/obj/item/destTagger{
+/obj/item/dest_tagger{
pixel_x = 4;
pixel_y = 3
},
diff --git a/_maps/map_files/PubbyStation/PubbyStation.dmm b/_maps/map_files/PubbyStation/PubbyStation.dmm
index a388f9d58d..04e936cd7e 100644
--- a/_maps/map_files/PubbyStation/PubbyStation.dmm
+++ b/_maps/map_files/PubbyStation/PubbyStation.dmm
@@ -15992,7 +15992,7 @@
/area/cargo/sorting)
"aNK" = (
/obj/structure/table,
-/obj/item/destTagger,
+/obj/item/dest_tagger,
/obj/effect/turf_decal/stripes/line{
dir = 1
},
diff --git a/_maps/map_files/Snaxi/Snaxi.dmm b/_maps/map_files/Snaxi/Snaxi.dmm
index c5d156bde2..799ba74dcc 100644
--- a/_maps/map_files/Snaxi/Snaxi.dmm
+++ b/_maps/map_files/Snaxi/Snaxi.dmm
@@ -1851,11 +1851,11 @@
pixel_y = 23
},
/obj/structure/table/reinforced,
-/obj/item/destTagger{
+/obj/item/dest_tagger{
pixel_x = 3;
pixel_y = 3
},
-/obj/item/destTagger,
+/obj/item/dest_tagger,
/turf/open/floor/plasteel,
/area/cargo/sorting)
"adu" = (
diff --git a/code/__DEFINES/economy.dm b/code/__DEFINES/economy.dm
index 0d37607b81..feceb07370 100644
--- a/code/__DEFINES/economy.dm
+++ b/code/__DEFINES/economy.dm
@@ -1,4 +1,9 @@
+/// Number of paychecks jobs start with at the creation of a new bank account for a player (So at shift-start or game join, but not a blank new account.)
#define STARTING_PAYCHECKS 5
+/// How much mail the Economy SS will create per minute, regardless of firing time.
+#define MAX_MAIL_PER_MINUTE 3
+/// Probability of using letters of envelope sprites on all letters.
+#define FULL_CRATE_LETTER_ODDS 70
#define PAYCHECK_ASSISTANT 25
#define PAYCHECK_MINIMAL 75
diff --git a/code/__DEFINES/traits/sources.dm b/code/__DEFINES/traits/sources.dm
new file mode 100644
index 0000000000..dd4246842a
--- /dev/null
+++ b/code/__DEFINES/traits/sources.dm
@@ -0,0 +1,2 @@
+/// From the item_scaling element
+#define ITEM_SCALING_TRAIT "item_scaling"
diff --git a/code/_globalvars/lists/flavor_misc.dm b/code/_globalvars/lists/flavor_misc.dm
index fa239e0ea4..609669d704 100644
--- a/code/_globalvars/lists/flavor_misc.dm
+++ b/code/_globalvars/lists/flavor_misc.dm
@@ -360,3 +360,5 @@ GLOBAL_LIST_INIT(eye_types, list("normal", "insect", "moth", "double", "double2"
GLOBAL_LIST_INIT(bodypart_names, list(num2text(HEAD) = "Head", num2text(CHEST) = "Chest", num2text(LEG_LEFT) = "Left Leg", num2text(LEG_RIGHT) = "Right Leg", num2text(ARM_LEFT) = "Left Arm", num2text(ARM_RIGHT) = "Right Arm"))
// list linking bodypart names back to the bitflags
GLOBAL_LIST_INIT(bodypart_values, list("Head" = num2text(HEAD), "Chest" = num2text(CHEST), "Left Leg" = num2text(LEG_LEFT), "Right Leg" = num2text(LEG_RIGHT), "Left Arm" = num2text(ARM_LEFT), "Right Arm" = num2text(ARM_RIGHT)))
+
+GLOBAL_LIST_INIT(junkmail_messages, world.file2list("strings/junkmail.txt"))
diff --git a/code/controllers/subsystem/economy.dm b/code/controllers/subsystem/economy.dm
index 88255f375e..06b3b6c8ed 100644
--- a/code/controllers/subsystem/economy.dm
+++ b/code/controllers/subsystem/economy.dm
@@ -55,6 +55,13 @@ SUBSYSTEM_DEF(economy)
var/civ_bounty_tracker = 0
/// Contains the message to send to newscasters about earnings, updated on price_update()
+ /// Total value of exported materials.
+ var/export_total = 0
+ /// Total value of imported goods.
+ var/import_total = 0
+ /// Number of mail items generated.
+ var/mail_waiting = 0
+
/datum/controller/subsystem/economy/Initialize(timeofday)
var/budget_to_hand_out = round(budget_pool / department_accounts.len)
for(var/A in department_accounts)
@@ -62,6 +69,7 @@ SUBSYSTEM_DEF(economy)
return ..()
/datum/controller/subsystem/economy/fire(resumed = 0)
+ var/delta_time = wait * 0.2
eng_payout() // Payout based on nothing. What will replace it? Surplus power, powered APC's, air alarms? Who knows.
sci_payout() // Payout based on slimes.
secmedsrv_payout() // Payout based on crew safety, health, and mood.
@@ -70,7 +78,8 @@ SUBSYSTEM_DEF(economy)
for(var/account in bank_accounts)
var/datum/bank_account/bank_account = account
bank_account.payday(1)
-
+ var/effective_mailcount = round(living_player_count()/1) // (inflation_value - 0.5)) //More mail at low inflation, and vis versa.
+ mail_waiting += clamp(effective_mailcount, 1, MAX_MAIL_PER_MINUTE * delta_time)
/datum/controller/subsystem/economy/proc/get_dep_account(dep_id)
for(var/datum/bank_account/department/D in generated_accounts)
diff --git a/code/datums/elements/item_scaling.dm b/code/datums/elements/item_scaling.dm
new file mode 100644
index 0000000000..1c489e610d
--- /dev/null
+++ b/code/datums/elements/item_scaling.dm
@@ -0,0 +1,108 @@
+/**
+ * Element for scaling item appearances in the overworld or in inventory/storage.
+ *
+ * This bespoke element allows for items to have varying sizes depending on their location.
+ * The overworld simply refers to items being on a turf. Inventory includes HUD item slots,
+ * and storage is anywhere a storage component is used.
+ * Scaling should affect the item's icon and all attached overlays (such as blood decals).
+ *
+ */
+/datum/element/item_scaling
+ element_flags = ELEMENT_BESPOKE
+ id_arg_index = 2
+ /// Scaling value when the attached item is in the overworld (on a turf).
+ var/overworld_scaling
+ /// Scaling value when the attached item is in a storage component or inventory slot.
+ var/storage_scaling
+
+/**
+ * Attach proc for the item_scaling element
+ *
+ * The proc checks the target's type before attaching. It then initializes
+ * the target to overworld scaling. The target should then rescale if it is placed
+ * in inventory/storage on initialization. Relevant signals are registered to listen
+ * for pickup/drop or storage events. Scaling values of 1 will result in items
+ * returning to their original size.
+ * Arguments:
+ * * target - Datum to attach the element to.
+ * * overworld_scaling - Integer or float to scale the item in the overworld.
+ * * storage_scaling - Integer or float to scale the item in storage/inventory.
+ */
+/datum/element/item_scaling/Attach(atom/target, overworld_scaling, storage_scaling)
+ . = ..()
+ if(!isatom(target))
+ return ELEMENT_INCOMPATIBLE
+
+ // Initial scaling set to overworld_scaling when item is spawned.
+ scale(target, overworld_scaling)
+
+ src.overworld_scaling = overworld_scaling
+ src.storage_scaling = storage_scaling
+
+ // Make sure overlays also inherit the scaling.
+ ADD_KEEP_TOGETHER(target, ITEM_SCALING_TRAIT)
+
+ // When moved sends a signal.
+ RegisterSignal(target, COMSIG_MOVABLE_MOVED, PROC_REF(scale_by_loc))
+
+/**
+ * Detach proc for the item_scaling element.
+ *
+ * All registered signals are unregistered, and the attached element is removed from the target datum.
+ * Arguments:
+ * * target - Datum which the element is attached to.
+ */
+/datum/element/item_scaling/Detach(atom/target)
+ UnregisterSignal(target, COMSIG_MOVABLE_MOVED)
+
+ REMOVE_KEEP_TOGETHER(target, ITEM_SCALING_TRAIT)
+
+ return ..()
+
+/**
+ * Scales the attached item's matrix.
+ *
+ * The proc first narrows the type of the source to (datums do not have a transform matrix).
+ * It then creates an identity matrix, M, which is transformed by the scaling value.
+ * The object's transform variable (matrix) is then set to the resulting value of M.
+ * Arguments:
+ * * source - Source datum which sent the signal.
+ * * scaling - Integer or float to scale the item's matrix.
+ */
+/datum/element/item_scaling/proc/scale(datum/source, scaling)
+ var/atom/scalable_object = source
+ var/matrix/M = matrix()
+ scalable_object.transform = M.Scale(scaling)
+
+//Grabs any move signals and checks its loc, properly scaling it when in storage,inhand, or in world.
+/datum/element/item_scaling/proc/scale_by_loc(atom/scale)
+ if(isturf(scale.loc))
+ scale_overworld(scale)
+ else
+ scale_storage(scale)
+
+/**
+ * Shrinks when inworld
+ *
+ * Longer detailed paragraph about the proc
+ * including any relevant detail
+ * Arguments:
+ * * source - Source datum which sent the signal.
+ */
+/datum/element/item_scaling/proc/scale_overworld(datum/source)
+ SIGNAL_HANDLER
+
+ scale(source, overworld_scaling)
+
+/**
+ * Enlarges when inhand or in storage.
+ *
+ * Longer detailed paragraph about the proc
+ * including any relevant detail
+ * Arguments:
+ * * source - Source datum which sent the signal.
+ */
+/datum/element/item_scaling/proc/scale_storage(datum/source)
+ SIGNAL_HANDLER
+
+ scale(source, storage_scaling)
diff --git a/code/game/gamemodes/sandbox/h_sandbox.dm b/code/game/gamemodes/sandbox/h_sandbox.dm
index 92ae0b764f..f91a8acc60 100644
--- a/code/game/gamemodes/sandbox/h_sandbox.dm
+++ b/code/game/gamemodes/sandbox/h_sandbox.dm
@@ -28,7 +28,7 @@ GLOBAL_VAR_INIT(hsboxspawn, TRUE)
var/static/list/spawn_forbidden = list(
/obj/item/tk_grab, /obj/item/implant, // not implanter, the actual thing that is inside you
/obj/item/assembly, /obj/item/onetankbomb, /obj/item/pda/ai,
- /obj/item/smallDelivery, /obj/item/projectile,
+ /obj/item/small_delivery, /obj/item/projectile,
/obj/item/borg/sight, /obj/item/borg/stun, /obj/item/robot_module)
/datum/hSB/proc/update()
diff --git a/code/game/objects/effects/spawners/lootdrop.dm b/code/game/objects/effects/spawners/lootdrop.dm
index ba98c441f4..0a74581752 100644
--- a/code/game/objects/effects/spawners/lootdrop.dm
+++ b/code/game/objects/effects/spawners/lootdrop.dm
@@ -774,3 +774,31 @@
/obj/item/ammo_casing/shotgun = 8,
/obj/item/ammo_casing/shotgun/incendiary = 10,
)
+
+/// Mail loot spawner. Some sort of random and rare building tool. No alien tech here.
+/obj/effect/spawner/lootdrop/space/fancytool/engineonly
+ loot = list(
+ /obj/item/wrench/caravan = 1,
+ /obj/item/wirecutters/caravan = 1,
+ /obj/item/screwdriver/caravan = 1,
+ /obj/item/crowbar/red/caravan = 1
+ )
+
+/// Mail loot spawner. Drop pool of advanced medical tools typically from research. Not endgame content.
+/obj/effect/spawner/lootdrop/space/fancytool/advmedicalonly
+ loot = list(
+ /obj/item/scalpel/advanced = 1,
+ /obj/item/retractor/advanced = 1,
+ /obj/item/surgicaldrill/advanced = 1
+ )
+
+/// Mail loot spawner. Some sort of random and rare surgical tool. Alien tech found here.
+/obj/effect/spawner/lootdrop/space/fancytool/raremedicalonly
+ loot = list(
+ /obj/item/scalpel/alien = 1,
+ /obj/item/hemostat/alien = 1,
+ /obj/item/retractor/alien = 1,
+ /obj/item/circular_saw/alien = 1,
+ /obj/item/surgicaldrill/alien = 1,
+ /obj/item/cautery/alien = 1
+ )
diff --git a/code/game/objects/items/mail.dm b/code/game/objects/items/mail.dm
new file mode 100644
index 0000000000..ff7d32f337
--- /dev/null
+++ b/code/game/objects/items/mail.dm
@@ -0,0 +1,276 @@
+/// Mail is tamper-evident and unresealable, postmarked by CentCom for an individual recepient.
+/obj/item/mail
+ name = "mail"
+ gender = NEUTER
+ desc = "An officially postmarked, tamper-evident parcel regulated by CentCom and made of high-quality materials."
+ icon = 'icons/obj/bureaucracy.dmi'
+ icon_state = "mail_small"
+ item_state = "paper"
+ item_flags = NOBLUDGEON
+ w_class = WEIGHT_CLASS_SMALL
+ // drop_sound = 'sound/items/handling/paper_drop.ogg'
+ // pickup_sound = 'sound/items/handling/paper_pickup.ogg'
+ mouse_drag_pointer = MOUSE_ACTIVE_POINTER
+ /// Destination tagging for the mail sorter.
+ var/sort_tag = 0
+ /// Who this mail is for and who can open it.
+ var/datum/weakref/recipient
+ /// How many goodies this mail contains.
+ var/goodie_count = 1
+ /// Goodies which can be given to anyone. The base weight for cash is 56. For there to be a 50/50 chance of getting a department item, they need 56 weight as well.
+ var/list/generic_goodies = list(
+ /obj/item/stack/spacecash/c50 = 10,
+ /obj/item/stack/spacecash/c100 = 25,
+ /obj/item/stack/spacecash/c200 = 15,
+ /obj/item/stack/spacecash/c500 = 5,
+ /obj/item/stack/spacecash/c1000 = 1,
+ )
+ // Overlays (pure fluff)
+ /// Does the letter have the postmark overlay?
+ var/postmarked = TRUE
+ /// Does the letter have a stamp overlay?
+ var/stamped = TRUE
+ /// List of all stamp overlays on the letter.
+ var/list/stamps = list()
+ /// Maximum number of stamps on the letter.
+ var/stamp_max = 1
+ /// Physical offset of stamps on the object. X direction.
+ var/stamp_offset_x = 0
+ /// Physical offset of stamps on the object. Y direction.
+ var/stamp_offset_y = 2
+
+ ///mail will have the color of the department the recipient is in.
+ var/static/list/department_colors
+
+/obj/item/mail/envelope
+ name = "envelope"
+ icon_state = "mail_large"
+ goodie_count = 2
+ stamp_max = 2
+ stamp_offset_y = 5
+
+/obj/item/mail/Initialize()
+ . = ..()
+ RegisterSignal(src, COMSIG_MOVABLE_DISPOSING, .proc/disposal_handling)
+ AddElement(/datum/element/item_scaling, 0.5, 1)
+ if(isnull(department_colors))
+ department_colors = list(
+ ACCOUNT_CIV = COLOR_WHITE,
+ ACCOUNT_ENG = COLOR_PALE_ORANGE,
+ ACCOUNT_SCI = COLOR_PALE_PURPLE_GRAY,
+ ACCOUNT_MED = COLOR_PALE_BLUE_GRAY,
+ ACCOUNT_SRV = COLOR_PALE_GREEN_GRAY,
+ ACCOUNT_CAR = COLOR_BEIGE,
+ ACCOUNT_SEC = COLOR_PALE_RED_GRAY,
+ )
+
+ // Icons
+ // Add some random stamps.
+ if(stamped == TRUE)
+ var/stamp_count = rand(1, stamp_max)
+ for(var/i = 1, i <= stamp_count, i++)
+ stamps += list("stamp_[rand(2, 6)]")
+ update_icon()
+
+/obj/item/mail/update_overlays()
+ . = ..()
+ var/bonus_stamp_offset = 0
+ for(var/stamp in stamps)
+ var/image/stamp_image = image(
+ icon = icon,
+ icon_state = stamp,
+ pixel_x = stamp_offset_x,
+ pixel_y = stamp_offset_y + bonus_stamp_offset
+ )
+ stamp_image.appearance_flags |= RESET_COLOR
+ add_overlay(stamp_image)
+ bonus_stamp_offset -= 5
+
+ if(postmarked == TRUE)
+ var/image/postmark_image = image(
+ icon = icon,
+ icon_state = "postmark",
+ pixel_x = stamp_offset_x + rand(-3, 1),
+ pixel_y = stamp_offset_y + rand(bonus_stamp_offset + 3, 1)
+ )
+ postmark_image.appearance_flags |= RESET_COLOR
+ add_overlay(postmark_image)
+
+/obj/item/mail/attackby(obj/item/W, mob/user, params)
+ // Destination tagging
+ if(istype(W, /obj/item/dest_tagger))
+ var/obj/item/dest_tagger/destination_tag = W
+
+ if(sort_tag != destination_tag.currTag)
+ var/tag = uppertext(GLOB.TAGGERLOCATIONS[destination_tag.currTag])
+ to_chat(user, "*[tag]*")
+ sort_tag = destination_tag.currTag
+ playsound(loc, 'sound/machines/twobeep_high.ogg', 100, TRUE)
+
+/obj/item/mail/attack_self(mob/user)
+ if(recipient && user != recipient)
+ to_chat(user, "You can't open somebody else's mail! That's illegal!")
+ return
+
+ user.visible_message("You start to unwrap the package...")
+ if(!do_after(user, 1.5 SECONDS, target = user))
+ return
+ user.temporarilyRemoveItemFromInventory(src, TRUE)
+ if(contents.len)
+ user.put_in_hands(contents[1])
+ playsound(loc, 'sound/items/poster_ripped.ogg', 50, TRUE)
+ qdel(src)
+
+/// Accepts a mob to initialize goodies for a piece of mail.
+/obj/item/mail/proc/initialize_for_recipient(mob/new_recipient)
+ recipient = new_recipient
+ name = "[initial(name)] for [new_recipient.real_name] ([new_recipient.job])"
+ var/list/goodies = generic_goodies
+
+ var/datum/job/this_job = SSjob.name_occupations[new_recipient.job]
+ if(this_job)
+ if(this_job.paycheck_department && department_colors[this_job.paycheck_department])
+ color = department_colors[this_job.paycheck_department]
+ var/list/job_goodies = this_job.get_mail_goodies()
+ if(LAZYLEN(job_goodies))
+ // certain roles and jobs (prisoner) do not receive generic gifts.
+ if(this_job.exclusive_mail_goodies)
+ goodies = job_goodies
+ else
+ goodies += job_goodies
+
+ for(var/iterator = 0, iterator < goodie_count, iterator++)
+ var/target_good = pickweight(goodies)
+ if(ispath(target_good, /datum/reagent))
+ var/obj/item/reagent_containers/target_container = new /obj/item/reagent_containers/glass/bottle(src)
+ target_container.reagents.add_reagent(target_good, target_container.volume)
+ target_container.name = "[target_container.reagents.reagent_list[1].name] bottle"
+ new_recipient.log_message("[key_name(new_recipient)] received reagent container [target_container.name] in the mail ([target_good])", LOG_GAME)
+ else
+ var/atom/movable/target_atom = new target_good(src)
+ new_recipient.log_message("[key_name(new_recipient)] received [target_atom.name] in the mail ([target_good])", LOG_GAME)
+
+ return TRUE
+
+/// Alternate setup, just complete garbage inside and anyone can open
+/obj/item/mail/proc/junk_mail()
+
+ var/obj/junk = /obj/item/paper/fluff/junkmail_generic
+ var/special_name = FALSE
+
+ if(prob(25))
+ special_name = TRUE
+ junk = pick(list(/obj/item/paper/pamphlet/gateway, /obj/item/paper/pamphlet/violent_video_games, /obj/item/paper/fluff/junkmail_redpill, /obj/effect/decal/cleanable/ash))
+
+ var/list/junk_names = list(
+ /obj/item/paper/pamphlet/gateway = "[initial(name)] for [pick(GLOB.adjectives)] adventurers",
+ /obj/item/paper/pamphlet/violent_video_games = "[initial(name)] for the truth about the arcade centcom doesn't want to hear",
+ /obj/item/paper/fluff/junkmail_redpill = "[initial(name)] for those feeling [pick(GLOB.adjectives)] working at Nanotrasen",
+ /obj/effect/decal/cleanable/ash = "[initial(name)] with INCREDIBLY IMPORTANT ARTIFACT- DELIVER TO SCIENCE DIVISION. HANDLE WITH CARE.",
+ )
+
+ color = pick(department_colors) //eh, who gives a shit.
+ name = special_name ? junk_names[junk] : "important [initial(name)]"
+
+ junk = new junk(src)
+ return TRUE
+
+/obj/item/mail/proc/disposal_handling(disposal_source, obj/structure/disposalholder/disposal_holder, obj/machinery/disposal/disposal_machine, hasmob)
+ SIGNAL_HANDLER
+ if(!hasmob)
+ disposal_holder.destinationTag = sort_tag
+
+/// Subtype that's always junkmail
+/obj/item/mail/junkmail/Initialize()
+ ..()
+ junk_mail()
+
+/// Crate for mail from CentCom.
+/obj/structure/closet/crate/mail
+ name = "mail crate"
+ desc = "A certified post crate from CentCom."
+ icon_state = "mail"
+
+/// Crate for mail that automatically generates a lot of mail. Usually only normal mail, but on lowpop it may end up just being junk.
+/obj/structure/closet/crate/mail/full
+ name = "brimming mail crate"
+ desc = "A certified post crate from CentCom. Looks stuffed to the gills."
+
+/obj/structure/closet/crate/mail/update_icon_state()
+ . = ..()
+ if(opened)
+ icon_state = "[initial(icon_state)]open"
+ if(locate(/obj/item/mail) in src)
+ icon_state = initial(icon_state)
+ else
+ icon_state = "[initial(icon_state)]sealed"
+
+/obj/structure/closet/crate/mail/full/Initialize()
+ . = ..()
+ var/list/mail_recipients = list()
+ for(var/mob/living/carbon/human/alive in GLOB.player_list)
+ if(alive.stat != DEAD)
+ mail_recipients += alive
+ for(var/iterator in 1 to storage_capacity)
+ var/obj/item/mail/new_mail
+ if(prob(FULL_CRATE_LETTER_ODDS))
+ new_mail = new /obj/item/mail(src)
+ else
+ new_mail = new /obj/item/mail/envelope(src)
+ var/mob/living/carbon/human/mail_to
+ mail_to = pick(mail_recipients)
+ if(mail_to)
+ new_mail.initialize_for_recipient(mail_to)
+ mail_recipients -= mail_to //Once picked, the mail crate will need a new recipient.
+ else
+ new_mail.junk_mail()
+
+
+/// Mailbag.
+/obj/item/storage/bag/mail
+ name = "mail bag"
+ desc = "A bag for letters, envelopes, and other postage."
+ icon = 'icons/obj/library.dmi'
+ icon_state = "bookbag"
+ item_state = "bookbag"
+ resistance_flags = FLAMMABLE
+
+/obj/item/storage/bag/mail/ComponentInitialize()
+ . = ..()
+ var/datum/component/storage/storage = GetComponent(/datum/component/storage)
+ storage.max_w_class = WEIGHT_CLASS_NORMAL
+ storage.max_combined_w_class = 42
+ storage.max_items = 21
+ storage.display_numerical_stacking = FALSE
+ storage.can_hold = list(
+ /obj/item/mail,
+ /obj/item/small_delivery,
+ /obj/item/paper
+ )
+
+/obj/item/paper/fluff/junkmail_redpill
+ name = "smudged paper"
+ icon_state = "scrap"
+ var/nuclear_option_odds = 0.1
+
+/obj/item/paper/fluff/junkmail_redpill/Initialize()
+ . = ..()
+ if(!prob(nuclear_option_odds)) // 1 in 1000 chance of getting 2 random nuke code characters.
+ info = "You need to escape the simulation. Don't forget the numbers, they help you remember: '[rand(0,9)][rand(0,9)][rand(0,9)]...'"
+ return
+ var/code = random_nukecode()
+ for(var/obj/machinery/nuclearbomb/selfdestruct/self_destruct in GLOB.nuke_list)
+ self_destruct.r_code = code
+ message_admins("Through junkmail, the self-destruct code was set to \"[code]\".")
+ info = "You need to escape the simulation. Don't forget the numbers, they help you remember: '[code[rand(1,5)]][code[rand(1,5)]]...'"
+
+/obj/item/paper/fluff/junkmail_redpill/true //admin letter enabling players to brute force their way through the nuke code if they're so inclined.
+ nuclear_option_odds = 100
+
+/obj/item/paper/fluff/junkmail_generic
+ name = "important document"
+ icon_state = "paper_words"
+
+/obj/item/paper/fluff/junkmail_generic/Initialize()
+ . = ..()
+ info = pick(GLOB.junkmail_messages)
diff --git a/code/game/objects/items/stacks/sheets/mineral.dm b/code/game/objects/items/stacks/sheets/mineral.dm
index eaf576510e..7e327e865d 100644
--- a/code/game/objects/items/stacks/sheets/mineral.dm
+++ b/code/game/objects/items/stacks/sheets/mineral.dm
@@ -147,6 +147,9 @@ GLOBAL_LIST_INIT(uranium_recipes, list ( \
. = ..()
. += GLOB.uranium_recipes
+/obj/item/stack/sheet/mineral/uranium/five
+ amount = 5
+
/*
* Plasma
*/
@@ -192,6 +195,12 @@ GLOBAL_LIST_INIT(plasma_recipes, list ( \
atmos_spawn_air("plasma=[amount*10];TEMP=[exposed_temperature]")
qdel(src)
+/obj/item/stack/sheet/mineral/plasma/five
+ amount = 5
+
+/obj/item/stack/sheet/mineral/plasma/thirty
+ amount = 30
+
/*
* Gold
*/
diff --git a/code/game/objects/items/stacks/wrap.dm b/code/game/objects/items/stacks/wrap.dm
index 5fa4537794..e6c3a2269a 100644
--- a/code/game/objects/items/stacks/wrap.dm
+++ b/code/game/objects/items/stacks/wrap.dm
@@ -49,7 +49,7 @@
/obj/item/stack/packageWrap/suicide_act(mob/living/user)
user.visible_message("[user] begins wrapping [user.p_them()]self in \the [src]! It looks like [user.p_theyre()] trying to commit suicide!")
if(use(3))
- var/obj/structure/bigDelivery/P = new /obj/structure/bigDelivery(get_turf(user.loc))
+ var/obj/structure/big_delivery/P = new /obj/structure/big_delivery(get_turf(user.loc))
P.icon_state = "deliverypackage5"
user.forceMove(P)
P.add_fingerprint(user)
@@ -67,7 +67,7 @@
/obj/item/storage/box/can_be_package_wrapped()
return TRUE
-/obj/item/smallDelivery/can_be_package_wrapped()
+/obj/item/small_delivery/can_be_package_wrapped()
return FALSE
/obj/item/stack/packageWrap/afterattack(obj/target, mob/user, proximity)
@@ -89,7 +89,7 @@
else if(!isturf(I.loc))
return
if(use(1))
- var/obj/item/smallDelivery/P = new /obj/item/smallDelivery(get_turf(I.loc))
+ var/obj/item/small_delivery/P = new /obj/item/small_delivery(get_turf(I.loc))
if(user.Adjacent(I))
P.add_fingerprint(user)
I.add_fingerprint(user)
@@ -109,7 +109,7 @@
to_chat(user, "You can't wrap this!")
return
if(use(3))
- var/obj/structure/bigDelivery/P = new /obj/structure/bigDelivery(get_turf(O.loc))
+ var/obj/structure/big_delivery/P = new /obj/structure/big_delivery(get_turf(O.loc))
P.icon_state = O.delivery_icon
O.forceMove(P)
P.add_fingerprint(user)
diff --git a/code/game/objects/items/storage/boxes.dm b/code/game/objects/items/storage/boxes.dm
index e5de4570a5..667e8f9db9 100644
--- a/code/game/objects/items/storage/boxes.dm
+++ b/code/game/objects/items/storage/boxes.dm
@@ -1464,7 +1464,7 @@
/obj/item/storage/box/shipping/PopulateContents()
var/static/items_inside = list(
- /obj/item/destTagger=1,\
+ /obj/item/dest_tagger=1,\
/obj/item/sales_tagger=1,\
/obj/item/export_scanner=1,\
/obj/item/stack/packageWrap/small=2,\
diff --git a/code/modules/cargo/exports/large_objects.dm b/code/modules/cargo/exports/large_objects.dm
index e464a056ab..fa7896aaa1 100644
--- a/code/modules/cargo/exports/large_objects.dm
+++ b/code/modules/cargo/exports/large_objects.dm
@@ -6,7 +6,7 @@
k_elasticity = 0
unit_name = "crate"
export_types = list(/obj/structure/closet/crate)
- exclude_types = list(/obj/structure/closet/crate/large, /obj/structure/closet/crate/wooden, /obj/structure/closet/crate/bin)
+ exclude_types = list(/obj/structure/closet/crate/large, /obj/structure/closet/crate/wooden, /obj/structure/closet/crate/bin, /obj/structure/closet/crate/mail)
/datum/export/large/crate/total_printout(datum/export_report/ex, notes = TRUE) // That's why a goddamn metal crate costs that much.
. = ..()
diff --git a/code/modules/cargo/packs/service.dm b/code/modules/cargo/packs/service.dm
index f53186d96e..a4df8f7ee8 100644
--- a/code/modules/cargo/packs/service.dm
+++ b/code/modules/cargo/packs/service.dm
@@ -23,7 +23,7 @@
/obj/item/stack/packageWrap,
/obj/item/stack/packageWrap,
/obj/item/stack/packageWrap,
- /obj/item/destTagger,
+ /obj/item/dest_tagger,
/obj/item/hand_labeler)
crate_type = /obj/structure/closet/crate/wooden
crate_name = "wrapping paper crate"
@@ -35,7 +35,7 @@
contains = list(/obj/item/stamp,
/obj/item/stamp/denied,
/obj/item/export_scanner,
- /obj/item/destTagger,
+ /obj/item/dest_tagger,
/obj/item/hand_labeler,
/obj/item/toner,
/obj/item/toner,
diff --git a/code/modules/food_and_drinks/food/snacks_meat.dm b/code/modules/food_and_drinks/food/snacks_meat.dm
index 5bcb106822..2d49997c25 100644
--- a/code/modules/food_and_drinks/food/snacks_meat.dm
+++ b/code/modules/food_and_drinks/food/snacks_meat.dm
@@ -473,3 +473,17 @@
list_reagents = list(/datum/reagent/consumable/eggyolk = 5)
tastes = list("dried eggs" = 1, "confusion" = 1)
dried_being = /mob/living/simple_animal/chicken
+
+/obj/item/reagent_containers/food/snacks/cube/chicken
+ name = "chicken cube"
+ desc = "A new Nanotrasen classic, the chicken cube. Tastes like everything!"
+ list_reagents = list(/datum/reagent/consumable/eggyolk = 30, /datum/reagent/medicine/strange_reagent = 1)
+ tastes = list("chicken" = 1, "the country" = 1, "chicken bouillon" = 1)
+ dried_being = /mob/living/simple_animal/chicken
+
+/obj/item/reagent_containers/food/snacks/cube/bee
+ name = "bee cube"
+ desc = "We were sure it was a good idea. Just add water."
+ list_reagents = list(/datum/reagent/consumable/honey = 10, /datum/reagent/toxin = 5, /datum/reagent/medicine/strange_reagent = 1)
+ tastes = list("buzzing" = 1, "honey" = 1, "regret" = 1)
+ dried_being = /mob/living/simple_animal/hostile/poison/bees
diff --git a/code/modules/jobs/job_types/_job.dm b/code/modules/jobs/job_types/_job.dm
index 3558717348..4f45af88bb 100644
--- a/code/modules/jobs/job_types/_job.dm
+++ b/code/modules/jobs/job_types/_job.dm
@@ -76,6 +76,14 @@
var/bounty_types = CIV_JOB_BASIC
+ /// Goodies that can be received via the mail system.
+ // this is a weighted list.
+ /// Keep the _job definition for this empty and use /obj/item/mail to define general gifts.
+ var/list/mail_goodies = list()
+
+ /// If this job's mail goodies compete with generic goodies.
+ var/exclusive_mail_goodies = FALSE
+
//If a job complies with dresscodes, loadout items will not be equipped instead of the job's outfit, instead placing the items into the player's backpack.
var/dresscodecompliant = TRUE
// How much threat this job is worth in dynamic. Is subtracted if the player's not an antag, added if they are.
@@ -396,3 +404,7 @@
/datum/job/proc/after_latejoin_spawn(mob/living/spawning)
SHOULD_CALL_PARENT(TRUE)
SEND_GLOBAL_SIGNAL(COMSIG_GLOB_JOB_AFTER_LATEJOIN_SPAWN, src, spawning)
+
+/// An overridable getter for more dynamic goodies.
+/datum/job/proc/get_mail_goodies(mob/recipient)
+ return mail_goodies
diff --git a/code/modules/jobs/job_types/assistant.dm b/code/modules/jobs/job_types/assistant.dm
index 6ec7d2c438..90ac6be8dd 100644
--- a/code/modules/jobs/job_types/assistant.dm
+++ b/code/modules/jobs/job_types/assistant.dm
@@ -20,11 +20,20 @@ Assistant
dresscodecompliant = FALSE
always_can_respawn_as = TRUE
threat = 0.2
-
+
family_heirlooms = list(
/obj/item/clothing/gloves/cut/family
)
+ mail_goodies = list(
+ /obj/item/storage/box/donkpockets = 10,
+ /obj/item/clothing/mask/gas = 10,
+ /obj/item/clothing/gloves/color/fyellow = 7,
+ /obj/item/choice_beacon/music = 5,
+ /obj/item/toy/sprayoncan = 3,
+ /obj/item/crowbar/large = 1
+ )
+
/datum/job/assistant/get_access()
if(CONFIG_GET(flag/assistants_have_maint_access) || !CONFIG_GET(flag/jobs_have_minimal_access)) //Config has assistant maint access set
. = ..()
diff --git a/code/modules/jobs/job_types/bartender.dm b/code/modules/jobs/job_types/bartender.dm
index 40a1b20cb1..bde15b24db 100644
--- a/code/modules/jobs/job_types/bartender.dm
+++ b/code/modules/jobs/job_types/bartender.dm
@@ -20,13 +20,20 @@
bounty_types = CIV_JOB_DRINK
display_order = JOB_DISPLAY_ORDER_BARTENDER
threat = 0.5
-
+
family_heirlooms = list(
/obj/item/reagent_containers/rag,
/obj/item/clothing/head/that,
/obj/item/reagent_containers/food/drinks/shaker
)
+ mail_goodies = list(
+ /obj/item/storage/box/rubbershot = 30,
+ /datum/reagent/consumable/clownstears = 10,
+ /obj/item/stack/sheet/mineral/plasma = 10,
+ /obj/item/stack/sheet/mineral/uranium = 10,
+ )
+
/datum/outfit/job/bartender
name = "Bartender"
jobtype = /datum/job/bartender
diff --git a/code/modules/jobs/job_types/botanist.dm b/code/modules/jobs/job_types/botanist.dm
index 7a43837cf4..fcd71d7275 100644
--- a/code/modules/jobs/job_types/botanist.dm
+++ b/code/modules/jobs/job_types/botanist.dm
@@ -26,6 +26,15 @@
/obj/item/toy/plush/beeplushie,
)
+ mail_goodies = list(
+ /datum/reagent/toxin/mutagen = 20,
+ /datum/reagent/saltpetre = 20,
+ /datum/reagent/diethylamine = 20,
+ /obj/item/gun/energy/floragun = 10,
+ /obj/effect/spawner/lootdrop/seed_vault = 5,// These are strong, rare seeds, so use sparingly.
+ /obj/item/reagent_containers/food/snacks/cube/bee = 2
+ )
+
/datum/outfit/job/botanist
name = "Botanist"
jobtype = /datum/job/hydro
diff --git a/code/modules/jobs/job_types/captain.dm b/code/modules/jobs/job_types/captain.dm
index 82ec47bb47..00fb4822e2 100644
--- a/code/modules/jobs/job_types/captain.dm
+++ b/code/modules/jobs/job_types/captain.dm
@@ -38,6 +38,12 @@
/obj/item/toy/figure/captain
)
+ mail_goodies = list(
+ /obj/item/clothing/mask/cigarette/cigar/havana = 20,
+ /obj/item/storage/fancy/cigarettes/cigars/havana = 15,
+ /obj/item/reagent_containers/food/drinks/bottle/champagne = 10
+ )
+
/datum/job/captain/get_access()
return get_all_accesses()
diff --git a/code/modules/jobs/job_types/cargo_technician.dm b/code/modules/jobs/job_types/cargo_technician.dm
index 1188669db5..823aec3078 100644
--- a/code/modules/jobs/job_types/cargo_technician.dm
+++ b/code/modules/jobs/job_types/cargo_technician.dm
@@ -21,11 +21,18 @@
display_order = JOB_DISPLAY_ORDER_CARGO_TECHNICIAN
bounty_types = CIV_JOB_RANDOM
threat = 0.2
-
+
family_heirlooms = list(
/obj/item/clipboard
)
+ mail_goodies = list(
+ /obj/item/pizzabox = 10,
+ /obj/item/stack/sheet/mineral/gold = 5,
+ /obj/item/stack/sheet/mineral/uranium = 4,
+ /obj/item/stack/sheet/mineral/diamond = 3,
+ /obj/item/gun/ballistic/shotgun/boltaction = 1
+ )
/datum/outfit/job/cargo_tech
name = "Cargo Technician"
jobtype = /datum/job/cargo_tech
diff --git a/code/modules/jobs/job_types/chaplain.dm b/code/modules/jobs/job_types/chaplain.dm
index e7d602bd22..522f022072 100644
--- a/code/modules/jobs/job_types/chaplain.dm
+++ b/code/modules/jobs/job_types/chaplain.dm
@@ -19,12 +19,19 @@
display_order = JOB_DISPLAY_ORDER_CHAPLAIN
threat = 0.5
-
+
family_heirlooms = list(
/obj/item/toy/windupToolbox,
/obj/item/reagent_containers/food/drinks/bottle/holywater
)
+ mail_goodies = list(
+ /obj/item/reagent_containers/food/drinks/bottle/holywater = 30,
+ /obj/item/toy/plush/awakenedplushie = 10,
+ /obj/item/grenade/chem_grenade/holy = 5,
+ /obj/item/toy/plush/narplush = 2,
+// /obj/item/toy/plush/ratplush = 1
+ )
/datum/job/chaplain/after_spawn(mob/living/H, client/C)
. = ..()
diff --git a/code/modules/jobs/job_types/chemist.dm b/code/modules/jobs/job_types/chemist.dm
index 9f830ba43c..be145b24b2 100644
--- a/code/modules/jobs/job_types/chemist.dm
+++ b/code/modules/jobs/job_types/chemist.dm
@@ -24,12 +24,19 @@
threat = 1.5
starting_modifiers = list(/datum/skill_modifier/job/surgery, /datum/skill_modifier/job/affinity/surgery)
-
+
family_heirlooms = list(
/obj/item/book/manual/wiki/chemistry,
/obj/item/fermichem/pHbooklet
)
+ mail_goodies = list(
+ /datum/reagent/flash_powder = 15,
+// /datum/reagent/exotic_stabilizer = 5,
+ /datum/reagent/toxin/leadacetate = 5,
+ /obj/item/paper/secretrecipe = 1
+ )
+
/datum/outfit/job/chemist
name = "Chemist"
jobtype = /datum/job/chemist
diff --git a/code/modules/jobs/job_types/chief_engineer.dm b/code/modules/jobs/job_types/chief_engineer.dm
index 2949758d8a..5ec4cca512 100644
--- a/code/modules/jobs/job_types/chief_engineer.dm
+++ b/code/modules/jobs/job_types/chief_engineer.dm
@@ -37,7 +37,7 @@
display_order = JOB_DISPLAY_ORDER_CHIEF_ENGINEER
blacklisted_quirks = list(/datum/quirk/mute, /datum/quirk/brainproblems, /datum/quirk/paraplegic, /datum/quirk/insanity)
threat = 2
-
+
family_heirlooms = list(
/obj/item/clothing/head/hardhat,
/obj/item/screwdriver/brass/family,
@@ -47,6 +47,15 @@
/obj/item/wirecutters/brass/family
)
+ mail_goodies = list(
+ /obj/item/reagent_containers/food/snacks/cracker = 25, //you know. for poly
+ /obj/item/stack/sheet/mineral/diamond = 15,
+ /obj/item/stack/sheet/mineral/uranium/five = 15,
+ /obj/item/stack/sheet/mineral/plasma/five = 15,
+ /obj/item/stack/sheet/mineral/gold = 15,
+ /obj/effect/spawner/lootdrop/space/fancytool/engineonly = 3
+ )
+
/datum/outfit/job/ce
name = "Chief Engineer"
jobtype = /datum/job/chief_engineer
diff --git a/code/modules/jobs/job_types/chief_medical_officer.dm b/code/modules/jobs/job_types/chief_medical_officer.dm
index f5170fc745..ed58d67a1f 100644
--- a/code/modules/jobs/job_types/chief_medical_officer.dm
+++ b/code/modules/jobs/job_types/chief_medical_officer.dm
@@ -35,7 +35,7 @@
threat = 2
starting_modifiers = list(/datum/skill_modifier/job/surgery, /datum/skill_modifier/job/affinity/surgery)
-
+
family_heirlooms = list(
/obj/item/storage/firstaid/ancient/heirloom,
/obj/item/scalpel,
@@ -45,6 +45,13 @@
/obj/item/cautery
)
+ mail_goodies = list(
+ /obj/effect/spawner/lootdrop/organ_spawner = 10,
+// /obj/effect/spawner/lootdrop/memeorgans = 8,
+ /obj/effect/spawner/lootdrop/space/fancytool/advmedicalonly = 4,
+ /obj/effect/spawner/lootdrop/space/fancytool/raremedicalonly = 1
+ )
+
/datum/outfit/job/cmo
name = "Chief Medical Officer"
jobtype = /datum/job/cmo
diff --git a/code/modules/jobs/job_types/clown.dm b/code/modules/jobs/job_types/clown.dm
index 5631ce4624..c54fb13c0a 100644
--- a/code/modules/jobs/job_types/clown.dm
+++ b/code/modules/jobs/job_types/clown.dm
@@ -21,11 +21,19 @@
display_order = JOB_DISPLAY_ORDER_CLOWN
threat = 0 // honk
-
+
family_heirlooms = list(
/obj/item/bikehorn/golden
)
+ mail_goodies = list(
+ /obj/item/reagent_containers/food/snacks/grown/banana = 100,
+ /obj/item/reagent_containers/food/snacks/pie/cream = 50,
+ /obj/item/clothing/shoes/clown_shoes/combat = 10,
+ /obj/item/reagent_containers/spray/waterflower/lube = 20, // lube
+ /obj/item/reagent_containers/spray/waterflower/superlube = 1 // Superlube, good lord.
+ )
+
/datum/outfit/job/clown
name = "Clown"
jobtype = /datum/job/clown
diff --git a/code/modules/jobs/job_types/cook.dm b/code/modules/jobs/job_types/cook.dm
index 9947c27ba9..246f8d002f 100644
--- a/code/modules/jobs/job_types/cook.dm
+++ b/code/modules/jobs/job_types/cook.dm
@@ -28,6 +28,17 @@
/obj/item/clothing/head/chefhat
)
+ mail_goodies = list(
+ /obj/item/storage/box/ingredients/wildcard = 80,
+ /datum/reagent/consumable/caramel = 20,
+ /obj/item/reagent_containers/food/condiment/flour = 20,
+ /obj/item/reagent_containers/food/condiment/rice = 20,
+ /obj/item/reagent_containers/food/condiment/enzyme = 15,
+ /obj/item/reagent_containers/food/condiment/soymilk = 15,
+ /obj/item/kitchen/knife = 4,
+ /obj/item/kitchen/knife/butcher = 2
+ )
+
/datum/outfit/job/cook
name = "Cook"
jobtype = /datum/job/cook
diff --git a/code/modules/jobs/job_types/detective.dm b/code/modules/jobs/job_types/detective.dm
index 2330e93147..cfa93ecd5a 100644
--- a/code/modules/jobs/job_types/detective.dm
+++ b/code/modules/jobs/job_types/detective.dm
@@ -27,11 +27,22 @@
display_order = JOB_DISPLAY_ORDER_DETECTIVE
blacklisted_quirks = list(/datum/quirk/mute, /datum/quirk/brainproblems, /datum/quirk/nonviolent, /datum/quirk/paraplegic, /datum/quirk/monophobia)
threat = 1
-
+
family_heirlooms = list(
/obj/item/reagent_containers/food/drinks/flask/det
)
+ mail_goodies = list(
+ /obj/item/storage/fancy/cigarettes = 25,
+ /obj/item/ammo_box/c38 = 25,
+ /obj/item/ammo_box/c38/dumdum = 5,
+ /obj/item/ammo_box/c38/hotshot = 5,
+ /obj/item/ammo_box/c38/iceblox = 5,
+ /obj/item/ammo_box/c38/match = 5,
+ /obj/item/ammo_box/c38/trac = 5,
+ /obj/item/storage/belt/holster/full = 1 // detective/full
+ )
+
/datum/outfit/job/detective
name = "Detective"
jobtype = /datum/job/detective
diff --git a/code/modules/jobs/job_types/geneticist.dm b/code/modules/jobs/job_types/geneticist.dm
index 2529eaa024..fb830b3ece 100644
--- a/code/modules/jobs/job_types/geneticist.dm
+++ b/code/modules/jobs/job_types/geneticist.dm
@@ -24,11 +24,15 @@
threat = 1.5
starting_modifiers = list(/datum/skill_modifier/job/surgery, /datum/skill_modifier/job/affinity/surgery)
-
+
family_heirlooms = list(
/obj/item/clothing/under/shorts/purple
)
+ mail_goodies = list(
+ /obj/item/storage/box/monkeycubes = 10
+ )
+
/datum/outfit/job/geneticist
name = "Geneticist"
jobtype = /datum/job/geneticist
diff --git a/code/modules/jobs/job_types/head_of_personnel.dm b/code/modules/jobs/job_types/head_of_personnel.dm
index 6371aaaa9f..508dcfda7b 100644
--- a/code/modules/jobs/job_types/head_of_personnel.dm
+++ b/code/modules/jobs/job_types/head_of_personnel.dm
@@ -39,11 +39,15 @@
blacklisted_quirks = list(/datum/quirk/mute, /datum/quirk/brainproblems, /datum/quirk/prosopagnosia, /datum/quirk/insanity)
threat = 2
-
+
family_heirlooms = list(
/obj/item/reagent_containers/food/drinks/trophy/silver_cup
)
+ mail_goodies = list(
+ /obj/item/card/id/silver = 10,
+ /obj/item/stack/sheet/bone = 5
+ )
/datum/outfit/job/hop
name = "Head of Personnel"
@@ -59,3 +63,11 @@
/obj/item/melee/classic_baton/telescopic=1, /obj/item/modular_computer/tablet/preset/advanced = 1)
chameleon_extras = list(/obj/item/gun/energy/e_gun, /obj/item/stamp/hop)
+
+//only pet worth reviving
+/datum/job/hop/get_mail_goodies(mob/recipient)
+ . = ..()
+ // Strange Reagent if the pet is dead.
+ for(var/mob/living/simple_animal/pet/dog/corgi/Ian/staff_pet in GLOB.dead_mob_list)
+ . += list(/datum/reagent/medicine/strange_reagent = 20)
+ break
diff --git a/code/modules/jobs/job_types/janitor.dm b/code/modules/jobs/job_types/janitor.dm
index 59c6997398..f7e79cb769 100644
--- a/code/modules/jobs/job_types/janitor.dm
+++ b/code/modules/jobs/job_types/janitor.dm
@@ -19,7 +19,7 @@
display_order = JOB_DISPLAY_ORDER_JANITOR
threat = 0.2
-
+
family_heirlooms = list(
/obj/item/mop,
/obj/item/clothing/suit/caution,
@@ -27,6 +27,12 @@
/obj/item/soap
)
+ mail_goodies = list(
+ /obj/item/grenade/chem_grenade/cleaner = 30,
+ /obj/item/storage/box/lights/mixed = 20,
+ /obj/item/lightreplacer = 10
+ )
+
/datum/outfit/job/janitor
name = "Janitor"
jobtype = /datum/job/janitor
diff --git a/code/modules/jobs/job_types/medical_doctor.dm b/code/modules/jobs/job_types/medical_doctor.dm
index b0a0375517..b9a313d0e7 100644
--- a/code/modules/jobs/job_types/medical_doctor.dm
+++ b/code/modules/jobs/job_types/medical_doctor.dm
@@ -22,7 +22,7 @@
threat = 0.5
starting_modifiers = list(/datum/skill_modifier/job/surgery, /datum/skill_modifier/job/affinity/surgery)
-
+
family_heirlooms = list(
/obj/item/storage/firstaid/ancient/heirloom,
/obj/item/scalpel,
@@ -32,6 +32,16 @@
/obj/item/cautery
)
+ mail_goodies = list(
+ /obj/item/healthanalyzer/advanced = 15,
+ /obj/item/scalpel/advanced = 6,
+ /obj/item/retractor/advanced = 6,
+ /obj/item/surgicaldrill/advanced = 6,
+ /datum/reagent/toxin/formaldehyde = 6,
+ /obj/effect/spawner/lootdrop/organ_spawner = 5,
+// /obj/effect/spawner/lootdrop/memeorgans = 1
+ )
+
/datum/outfit/job/doctor
name = "Medical Doctor"
jobtype = /datum/job/doctor
diff --git a/code/modules/jobs/job_types/mime.dm b/code/modules/jobs/job_types/mime.dm
index 84d6bcb1a7..3929b22f9d 100644
--- a/code/modules/jobs/job_types/mime.dm
+++ b/code/modules/jobs/job_types/mime.dm
@@ -20,11 +20,18 @@
display_order = JOB_DISPLAY_ORDER_MIME
threat = 0
-
+
family_heirlooms = list(
/obj/item/reagent_containers/food/snacks/baguette
)
+ mail_goodies = list(
+ /obj/item/reagent_containers/food/snacks/baguette = 15,
+ /obj/item/reagent_containers/food/snacks/store/cheesewheel = 10,
+ /obj/item/reagent_containers/food/drinks/bottle/bottleofnothing = 10,
+// /obj/item/book/mimery = 1,
+ )
+
/datum/job/mime/after_spawn(mob/living/carbon/human/H, client/C)
. = ..()
H.apply_pref_name("mime", C)
diff --git a/code/modules/jobs/job_types/paramedic.dm b/code/modules/jobs/job_types/paramedic.dm
index 73f6c5da5e..c3d42ba365 100644
--- a/code/modules/jobs/job_types/paramedic.dm
+++ b/code/modules/jobs/job_types/paramedic.dm
@@ -23,11 +23,20 @@
threat = 0.5
starting_modifiers = list(/datum/skill_modifier/job/surgery, /datum/skill_modifier/job/affinity/surgery)
-
+
family_heirlooms = list(
/obj/item/storage/firstaid/ancient/heirloom
)
+ mail_goodies = list(
+ /obj/item/reagent_containers/hypospray/medipen = 20,
+ /obj/item/reagent_containers/hypospray/medipen/oxandrolone = 10,
+ /obj/item/reagent_containers/hypospray/medipen/salacid = 10,
+ /obj/item/reagent_containers/hypospray/medipen/salbutamol = 10,
+ /obj/item/reagent_containers/hypospray/medipen/penacid = 10,
+ /obj/item/reagent_containers/hypospray/medipen/survival = 5 // survival/luxury
+ )
+
/datum/outfit/job/paramedic
name = "Paramedic"
jobtype = /datum/job/paramedic
diff --git a/code/modules/jobs/job_types/prisoner.dm b/code/modules/jobs/job_types/prisoner.dm
index 20a2f463f5..5de351573f 100644
--- a/code/modules/jobs/job_types/prisoner.dm
+++ b/code/modules/jobs/job_types/prisoner.dm
@@ -13,11 +13,16 @@
plasma_outfit = /datum/outfit/plasmaman/prisoner
display_order = JOB_DISPLAY_ORDER_PRISONER
-
+
family_heirlooms = list(
/obj/item/pen/blue
)
+ exclusive_mail_goodies = TRUE
+ mail_goodies = list(
+ /obj/effect/spawner/lootdrop/prison_contraband = 1
+ )
+
/datum/job/prisoner/get_latejoin_spawn_point()
return get_roundstart_spawn_point()
diff --git a/code/modules/jobs/job_types/quartermaster.dm b/code/modules/jobs/job_types/quartermaster.dm
index dd79768282..efcab13381 100644
--- a/code/modules/jobs/job_types/quartermaster.dm
+++ b/code/modules/jobs/job_types/quartermaster.dm
@@ -32,12 +32,16 @@
display_order = JOB_DISPLAY_ORDER_QUARTERMASTER
blacklisted_quirks = list(/datum/quirk/mute, /datum/quirk/brainproblems, /datum/quirk/insanity)
threat = 0.5
-
+
family_heirlooms = list(
/obj/item/stamp,
/obj/item/stamp/denied
)
+ mail_goodies = list(
+ /obj/item/circuitboard/machine/emitter = 3
+ )
+
/datum/outfit/job/quartermaster
name = "Quartermaster"
jobtype = /datum/job/qm
diff --git a/code/modules/jobs/job_types/research_director.dm b/code/modules/jobs/job_types/research_director.dm
index 606c34af5e..f4589cae3d 100644
--- a/code/modules/jobs/job_types/research_director.dm
+++ b/code/modules/jobs/job_types/research_director.dm
@@ -38,11 +38,17 @@
starting_modifiers = list(/datum/skill_modifier/job/level/wiring)
blacklisted_quirks = list(/datum/quirk/mute, /datum/quirk/brainproblems, /datum/quirk/insanity)
threat = 5
-
+
family_heirlooms = list(
/obj/item/toy/plush/slimeplushie
)
+ mail_goodies = list(
+ /obj/item/storage/box/monkeycubes = 30,
+ /obj/item/circuitboard/machine/sleeper/party = 3,
+ /obj/item/borg/upgrade/ai = 2
+ )
+
/datum/outfit/job/rd
name = "Research Director"
jobtype = /datum/job/rd
diff --git a/code/modules/jobs/job_types/roboticist.dm b/code/modules/jobs/job_types/roboticist.dm
index 0e48467d91..089e5cf506 100644
--- a/code/modules/jobs/job_types/roboticist.dm
+++ b/code/modules/jobs/job_types/roboticist.dm
@@ -24,11 +24,17 @@
display_order = JOB_DISPLAY_ORDER_ROBOTICIST
threat = 1
-
+
family_heirlooms = list(
/obj/item/toy/figure/borg
)
+ mail_goodies = list(
+ /obj/item/storage/box/flashes = 20,
+ /obj/item/stack/sheet/metal/twenty = 15,
+ /obj/item/modular_computer/tablet/preset/advanced = 5
+ )
+
/datum/outfit/job/roboticist
name = "Roboticist"
jobtype = /datum/job/roboticist
diff --git a/code/modules/jobs/job_types/scientist.dm b/code/modules/jobs/job_types/scientist.dm
index 4bdbe6833b..5fcfb7e6f6 100644
--- a/code/modules/jobs/job_types/scientist.dm
+++ b/code/modules/jobs/job_types/scientist.dm
@@ -22,11 +22,17 @@
starting_modifiers = list(/datum/skill_modifier/job/level/wiring/basic)
display_order = JOB_DISPLAY_ORDER_SCIENTIST
threat = 1.2
-
+
family_heirlooms = list(
/obj/item/toy/plush/slimeplushie
)
+ mail_goodies = list(
+ /obj/item/raw_anomaly_core/random = 10,
+// /obj/item/disk/tech_disk/spaceloot = 2,
+ /obj/item/camera_bug = 1
+ )
+
/datum/outfit/job/scientist
name = "Scientist"
jobtype = /datum/job/scientist
diff --git a/code/modules/jobs/job_types/security_officer.dm b/code/modules/jobs/job_types/security_officer.dm
index 3985a07049..4e338da1fa 100644
--- a/code/modules/jobs/job_types/security_officer.dm
+++ b/code/modules/jobs/job_types/security_officer.dm
@@ -34,6 +34,14 @@
/obj/item/clothing/head/beret/sec
)
+ mail_goodies = list(
+ /obj/item/reagent_containers/food/snacks/donut/caramel = 10,
+ /obj/item/reagent_containers/food/snacks/donut/matcha = 10,
+ /obj/item/reagent_containers/food/snacks/donut/blumpkin = 5,
+// /obj/item/clothing/mask/whistle = 5,
+ /obj/item/melee/baton/boomerang/loaded = 1
+ )
+
/datum/job/officer/get_access()
var/list/L = list()
L |= ..() | check_config_for_sec_maint()
diff --git a/code/modules/jobs/job_types/station_engineer.dm b/code/modules/jobs/job_types/station_engineer.dm
index 58822dc4c5..d8ea7e1df5 100644
--- a/code/modules/jobs/job_types/station_engineer.dm
+++ b/code/modules/jobs/job_types/station_engineer.dm
@@ -27,7 +27,7 @@
display_order = JOB_DISPLAY_ORDER_STATION_ENGINEER
threat = 1
-
+
family_heirlooms = list(
/obj/item/clothing/head/hardhat,
/obj/item/screwdriver/brass/family,
@@ -37,6 +37,13 @@
/obj/item/wirecutters/brass/family
)
+ mail_goodies = list(
+ /obj/item/storage/box/lights/mixed = 20,
+ /obj/item/lightreplacer = 10,
+ /obj/item/holosign_creator/engineering = 8,
+ /obj/item/clothing/head/hardhat/red/upgraded = 1
+ )
+
/datum/outfit/job/engineer
name = "Station Engineer"
jobtype = /datum/job/engineer
diff --git a/code/modules/jobs/job_types/virologist.dm b/code/modules/jobs/job_types/virologist.dm
index 423a65048f..e5c64acbc8 100644
--- a/code/modules/jobs/job_types/virologist.dm
+++ b/code/modules/jobs/job_types/virologist.dm
@@ -25,11 +25,19 @@
threat = 1.5
starting_modifiers = list(/datum/skill_modifier/job/surgery, /datum/skill_modifier/job/affinity/surgery)
-
+
family_heirlooms = list(
/obj/item/reagent_containers/syringe
)
+ mail_goodies = list(
+ /obj/item/reagent_containers/glass/bottle/random_virus = 15,
+ /obj/item/reagent_containers/glass/bottle/formaldehyde = 10,
+ /obj/item/reagent_containers/glass/bottle/synaptizine = 10,
+ /obj/item/stack/sheet/mineral/plasma = 10,
+ /obj/item/stack/sheet/mineral/uranium = 5
+ )
+
/datum/outfit/job/virologist
name = "Virologist"
jobtype = /datum/job/virologist
diff --git a/code/modules/jobs/job_types/warden.dm b/code/modules/jobs/job_types/warden.dm
index ec4e81caea..eda6257653 100644
--- a/code/modules/jobs/job_types/warden.dm
+++ b/code/modules/jobs/job_types/warden.dm
@@ -34,6 +34,15 @@
/obj/item/book/manual/wiki/security_space_law
)
+ mail_goodies = list(
+ /obj/item/storage/fancy/cigarettes = 15,
+ /obj/item/storage/box/handcuffs = 10,
+ /obj/item/storage/box/teargas = 10,
+ /obj/item/storage/box/flashbangs = 10,
+ /obj/item/storage/box/rubbershot = 10,
+ /obj/item/storage/box/lethalshot = 5
+ )
+
/datum/job/warden/get_access()
var/list/L = list()
L = ..() | check_config_for_sec_maint()
diff --git a/code/modules/mob/living/silicon/robot/robot_modules.dm b/code/modules/mob/living/silicon/robot/robot_modules.dm
index 0e2daf82db..0e2d27889e 100644
--- a/code/modules/mob/living/silicon/robot/robot_modules.dm
+++ b/code/modules/mob/living/silicon/robot/robot_modules.dm
@@ -903,7 +903,7 @@
/obj/item/gripper/mining,
/obj/item/cyborg_clamp,
/obj/item/stack/marker_beacon/cyborg,
- /obj/item/destTagger,
+ /obj/item/dest_tagger,
/obj/item/stack/packageWrap/cyborg,
/obj/item/card/id/miningborg)
emag_modules = list(/obj/item/borg/stun)
@@ -1063,7 +1063,7 @@
/obj/item/stack/sheet/rglass/cyborg,
/obj/item/stack/rods/cyborg,
/obj/item/stack/tile/plasteel/cyborg,
- /obj/item/destTagger/borg,
+ /obj/item/dest_tagger/borg,
/obj/item/stack/cable_coil/cyborg,
/obj/item/pinpointer/syndicate_cyborg,
/obj/item/borg_chameleon,
@@ -1192,7 +1192,7 @@
/obj/item/stack/sheet/rglass/cyborg,
/obj/item/stack/rods/cyborg,
/obj/item/stack/tile/plasteel/cyborg,
- /obj/item/destTagger/borg,
+ /obj/item/dest_tagger/borg,
/obj/item/stack/cable_coil/cyborg,
/obj/item/borg_chameleon,
/obj/item/pinpointer/spider_cyborg)
diff --git a/code/modules/mod/modules/modules_supply.dm b/code/modules/mod/modules/modules_supply.dm
index 57d2b39db8..1009e3f605 100644
--- a/code/modules/mod/modules/modules_supply.dm
+++ b/code/modules/mod/modules/modules_supply.dm
@@ -51,7 +51,7 @@
return
if(!mod.wearer.Adjacent(target))
return
- if(istype(target, /obj/structure/closet) || istype(target, /obj/structure/bigDelivery))
+ if(istype(target, /obj/structure/closet) || istype(target, /obj/structure/big_delivery))
var/atom/movable/picked_crate = target
if(!check_crate_pickup(picked_crate))
return
diff --git a/code/modules/recycling/disposal/bin.dm b/code/modules/recycling/disposal/bin.dm
index a8835d0cee..e8c4b0d3d3 100644
--- a/code/modules/recycling/disposal/bin.dm
+++ b/code/modules/recycling/disposal/bin.dm
@@ -210,7 +210,7 @@
flush = FALSE
/obj/machinery/disposal/proc/newHolderDestination(obj/structure/disposalholder/H)
- for(var/obj/item/smallDelivery/O in src)
+ for(var/obj/item/small_delivery/O in src)
H.tomail = TRUE
return
diff --git a/code/modules/recycling/disposal/holder.dm b/code/modules/recycling/disposal/holder.dm
index bce1b3d98d..d01cb87e9a 100644
--- a/code/modules/recycling/disposal/holder.dm
+++ b/code/modules/recycling/disposal/holder.dm
@@ -41,21 +41,15 @@
// now everything inside the disposal gets put into the holder
// note AM since can contain mobs or objs
for(var/A in D)
- var/atom/movable/AM = A
- if(AM == src)
+ var/atom/movable/atom_in_transit = A
+ if(atom_in_transit == src)
continue
- SEND_SIGNAL(AM, COMSIG_MOVABLE_DISPOSING, src, D)
- AM.forceMove(src)
- if(istype(AM, /obj/structure/bigDelivery) && !hasmob)
- var/obj/structure/bigDelivery/T = AM
- src.destinationTag = T.sortTag
- if(istype(AM, /obj/item/smallDelivery) && !hasmob)
- var/obj/item/smallDelivery/T = AM
- src.destinationTag = T.sortTag
- else if(istype(AM, /mob/living/silicon/robot))
- var/obj/item/destTagger/borg/tagger = locate() in AM
- if (tagger)
- src.destinationTag = tagger.currTag
+ SEND_SIGNAL(atom_in_transit, COMSIG_MOVABLE_DISPOSING, src, D, hasmob)
+ atom_in_transit.forceMove(src)
+ if(iscyborg(atom_in_transit))
+ var/obj/item/dest_tagger/borg/tagger = locate() in atom_in_transit
+ if(tagger)
+ destinationTag = tagger.currTag
// start the movement process
diff --git a/code/modules/recycling/disposal/pipe_sorting.dm b/code/modules/recycling/disposal/pipe_sorting.dm
index 1ae5698312..ec20db22b5 100644
--- a/code/modules/recycling/disposal/pipe_sorting.dm
+++ b/code/modules/recycling/disposal/pipe_sorting.dm
@@ -60,8 +60,8 @@
/obj/structure/disposalpipe/sorting/mail/attackby(obj/item/I, mob/user, params)
- if(istype(I, /obj/item/destTagger))
- var/obj/item/destTagger/O = I
+ if(istype(I, /obj/item/dest_tagger))
+ var/obj/item/dest_tagger/O = I
if(O.currTag)// Tagger has a tag set
if(O.currTag in sortTypes)
diff --git a/code/modules/recycling/sortingmachinery.dm b/code/modules/recycling/sortingmachinery.dm
index 97a35f9312..ba6b9ede62 100644
--- a/code/modules/recycling/sortingmachinery.dm
+++ b/code/modules/recycling/sortingmachinery.dm
@@ -1,4 +1,4 @@
-/obj/structure/bigDelivery
+/obj/structure/big_delivery
name = "large parcel"
desc = "A large delivery parcel."
icon = 'icons/obj/storage.dmi'
@@ -6,10 +6,14 @@
density = TRUE
mouse_drag_pointer = MOUSE_ACTIVE_POINTER
var/giftwrapped = FALSE
- var/sortTag = 0
+ var/sort_tag = 0
var/obj/item/barcode/sticker
-/obj/structure/bigDelivery/interact(mob/user)
+/obj/structure/big_delivery/Initialize()
+ . = ..()
+ RegisterSignal(src, COMSIG_MOVABLE_DISPOSING, .proc/disposal_handling)
+
+/obj/structure/big_delivery/interact(mob/user)
to_chat(user, "You start to unwrap the package...")
if(!do_after(user, 15, target = user))
return
@@ -18,29 +22,29 @@
unwrap_contents()
qdel(src)
-/obj/structure/bigDelivery/Destroy()
+/obj/structure/big_delivery/Destroy()
var/turf/T = get_turf(src)
for(var/atom/movable/AM in contents)
AM.forceMove(T)
return ..()
-/obj/structure/bigDelivery/examine(mob/user)
+/obj/structure/big_delivery/examine(mob/user)
. = ..()
if(sticker)
. += "There's a barcode attached to the side."
-/obj/structure/bigDelivery/contents_explosion(severity, target, origin)
+/obj/structure/big_delivery/contents_explosion(severity, target, origin)
for(var/atom/movable/AM in contents)
AM.ex_act(severity, target, origin)
-/obj/structure/bigDelivery/attackby(obj/item/W, mob/user, params)
- if(istype(W, /obj/item/destTagger))
- var/obj/item/destTagger/O = W
+/obj/structure/big_delivery/attackby(obj/item/W, mob/user, params)
+ if(istype(W, /obj/item/dest_tagger))
+ var/obj/item/dest_tagger/O = W
- if(sortTag != O.currTag)
+ if(sort_tag != O.currTag)
var/tag = uppertext(GLOB.TAGGERLOCATIONS[O.currTag])
to_chat(user, "*[tag]*")
- sortTag = O.currTag
+ sort_tag = O.currTag
playsound(loc, 'sound/machines/twobeep.ogg', 100, 1)
else if(istype(W, /obj/item/pen))
@@ -108,7 +112,7 @@
else
return ..()
-/obj/structure/bigDelivery/relay_container_resist(mob/living/user, obj/O)
+/obj/structure/big_delivery/relay_container_resist(mob/living/user, obj/O)
if(ismovable(loc))
var/atom/movable/AM = loc //can't unwrap the wrapped container if it's inside something.
AM.relay_container_resist(user, O)
@@ -127,26 +131,35 @@
if(user.loc == src) //so we don't get the message if we resisted multiple times and succeeded.
to_chat(user, "You fail to remove [O]'s wrapping!")
-/obj/structure/bigDelivery/proc/unwrap_contents()
+/obj/structure/big_delivery/proc/unwrap_contents()
if(!sticker)
return
for(var/obj/I in src.GetAllContents())
SEND_SIGNAL(I, COMSIG_STRUCTURE_UNWRAPPED)
-/obj/item/smallDelivery
+/obj/structure/big_delivery/proc/disposal_handling(disposal_source, obj/structure/disposalholder/disposal_holder, obj/machinery/disposal/disposal_machine, hasmob)
+ SIGNAL_HANDLER
+ if(!hasmob)
+ disposal_holder.destinationTag = sort_tag
+
+/obj/item/small_delivery
name = "parcel"
desc = "A brown paper delivery parcel."
icon = 'icons/obj/storage.dmi'
icon_state = "deliverypackage3"
var/giftwrapped = 0
- var/sortTag = 0
+ var/sort_tag = 0
var/obj/item/barcode/sticker
-/obj/item/smallDelivery/contents_explosion(severity, target, origin)
+/obj/item/small_delivery/Initialize()
+ . = ..()
+ RegisterSignal(src, COMSIG_MOVABLE_DISPOSING, .proc/disposal_handling)
+
+/obj/item/small_delivery/contents_explosion(severity, target, origin)
for(var/atom/movable/AM in contents)
AM.ex_act(severity, target, origin)
-/obj/item/smallDelivery/attack_self(mob/user)
+/obj/item/small_delivery/attack_self(mob/user)
to_chat(user, "You start to unwrap the package...")
if(!do_after(user, 15, target = user))
return
@@ -159,7 +172,7 @@
new /obj/effect/decal/cleanable/wrapping(get_turf(user))
qdel(src)
-/obj/item/smallDelivery/attack_self_tk(mob/user)
+/obj/item/small_delivery/attack_self_tk(mob/user)
if(ismob(loc))
var/mob/M = loc
M.temporarilyRemoveItemFromInventory(src, TRUE)
@@ -175,14 +188,14 @@
unwrap_contents()
qdel(src)
-/obj/item/smallDelivery/attackby(obj/item/W, mob/user, params)
- if(istype(W, /obj/item/destTagger))
- var/obj/item/destTagger/O = W
+/obj/item/small_delivery/attackby(obj/item/W, mob/user, params)
+ if(istype(W, /obj/item/dest_tagger))
+ var/obj/item/dest_tagger/O = W
- if(sortTag != O.currTag)
+ if(sort_tag != O.currTag)
var/tag = uppertext(GLOB.TAGGERLOCATIONS[O.currTag])
to_chat(user, "*[tag]*")
- sortTag = O.currTag
+ sort_tag = O.currTag
playsound(loc, 'sound/machines/twobeep.ogg', 100, 1)
else if(istype(W, /obj/item/pen))
@@ -249,19 +262,23 @@
overlaystring = copytext_char(overlaystring, 5) //5 == length("gift") + 1
add_overlay(overlaystring)
-/obj/item/smallDelivery/proc/unwrap_contents()
+/obj/item/small_delivery/proc/unwrap_contents()
if(!sticker)
return
for(var/obj/I in src.GetAllContents())
SEND_SIGNAL(I, COMSIG_ITEM_UNWRAPPED)
-/obj/item/smallDelivery/examine(mob/user)
+/obj/item/small_delivery/examine(mob/user)
. = ..()
if(sticker)
. += "There's a barcode attached to the side."
+/obj/item/small_delivery/proc/disposal_handling(disposal_source, obj/structure/disposalholder/disposal_holder, obj/machinery/disposal/disposal_machine, hasmob)
+ SIGNAL_HANDLER
+ if(!hasmob)
+ disposal_holder.destinationTag = sort_tag
-/obj/item/destTagger
+/obj/item/dest_tagger
name = "destination tagger"
desc = "Used to set the destination of properly wrapped packages."
icon = 'icons/obj/device.dmi'
@@ -275,11 +292,11 @@
flags_1 = CONDUCT_1
slot_flags = ITEM_SLOT_BELT
-/obj/item/destTagger/borg
+/obj/item/dest_tagger/borg
name = "cyborg destination tagger"
desc = "Used to fool the disposal mail network into thinking that you're a harmless parcel. Does actually work as a regular destination tagger as well."
-/obj/item/destTagger/suicide_act(mob/living/user)
+/obj/item/dest_tagger/suicide_act(mob/living/user)
user.visible_message("[user] begins tagging [user.p_their()] final destination! It looks like [user.p_theyre()] trying to commit suicide!")
if (islizard(user))
to_chat(user, "*HELL*")//lizard nerf
@@ -288,7 +305,7 @@
playsound(src, 'sound/machines/twobeep.ogg', 100, 1)
return BRUTELOSS
-/obj/item/destTagger/proc/openwindow(mob/user)
+/obj/item/dest_tagger/proc/openwindow(mob/user)
var/dat = "TagMaster 2.2
"
dat += ""
@@ -303,12 +320,12 @@
user << browse(dat, "window=destTagScreen;size=450x350")
onclose(user, "destTagScreen")
-/obj/item/destTagger/attack_self(mob/user)
+/obj/item/dest_tagger/attack_self(mob/user)
if(!locked_destination)
openwindow(user)
return
-/obj/item/destTagger/Topic(href, href_list)
+/obj/item/dest_tagger/Topic(href, href_list)
add_fingerprint(usr)
if(href_list["nextTag"])
var/n = text2num(href_list["nextTag"])
diff --git a/code/modules/research/designs/autolathe_desings/autolathe_designs_electronics.dm b/code/modules/research/designs/autolathe_desings/autolathe_designs_electronics.dm
index fea67a921f..a86195f526 100644
--- a/code/modules/research/designs/autolathe_desings/autolathe_designs_electronics.dm
+++ b/code/modules/research/designs/autolathe_desings/autolathe_designs_electronics.dm
@@ -56,7 +56,7 @@
id = "desttagger"
build_type = AUTOLATHE | PROTOLATHE
materials = list(/datum/material/iron = 250, /datum/material/glass = 125)
- build_path = /obj/item/destTagger
+ build_path = /obj/item/dest_tagger
category = list("initial", "Electronics")
/datum/design/handlabeler
diff --git a/code/modules/shuttle/supply.dm b/code/modules/shuttle/supply.dm
index 21d616bee4..0cebcbb20c 100644
--- a/code/modules/shuttle/supply.dm
+++ b/code/modules/shuttle/supply.dm
@@ -27,6 +27,9 @@ GLOBAL_LIST_INIT(blacklisted_cargo_types, typecacheof(list(
/obj/machinery/syndicatebomb,
/obj/item/hilbertshotel,
/obj/machinery/launchpad,
+ /obj/machinery/disposal,
+ /obj/structure/disposalpipe,
+ /obj/item/mail,
/obj/item/hilbertshotel,
/obj/machinery/camera,
/obj/item/gps,
@@ -102,6 +105,7 @@ GLOBAL_LIST_INIT(cargo_shuttle_leave_behind_typecache, typecacheof(list(
/obj/docking_port/mobile/supply/initiate_docking()
if(getDockedId() == "supply_away") // Buy when we leave home.
buy()
+ create_mail()
. = ..() // Fly/enter transit.
if(. != DOCKING_SUCCESS)
return
@@ -236,6 +240,7 @@ GLOBAL_LIST_INIT(cargo_shuttle_leave_behind_typecache, typecacheof(list(
SO.generateCombo(miscboxes[I], I, misc_contents[I])
qdel(SO)
+ SSeconomy.import_total += value
var/datum/bank_account/cargo_budget = SSeconomy.get_dep_account(ACCOUNT_CAR)
investigate_log("[purchases] orders in this shipment, worth [value] credits. [cargo_budget.account_balance] credits left.", INVESTIGATE_CARGO)
@@ -286,8 +291,53 @@ GLOBAL_LIST_INIT(cargo_shuttle_leave_behind_typecache, typecacheof(list(
D.adjust_money(gain)
msg = copytext_char(msg, 1, MAX_MESSAGE_LEN)
+ SSeconomy.export_total += (D.account_balance - presale_points)
SSshuttle.centcom_message = msg
investigate_log("Shuttle contents sold for [D.account_balance - presale_points] credits. Contents: [ex.exported_atoms ? ex.exported_atoms.Join(",") + "." : "none."] Message: [SSshuttle.centcom_message || "none."]", INVESTIGATE_CARGO)
+/*
+ Generates a box of mail depending on our exports and imports.
+ Applied in the cargo shuttle sending/arriving, by building the crate if the round is ready to introduce mail based on the economy subsystem.
+ Then, fills the mail crate with mail, by picking applicable crew who can recieve mail at the time to sending.
+*/
+/obj/docking_port/mobile/supply/proc/create_mail()
+ //Early return if there's no mail waiting to prevent taking up a slot.
+ if(!SSeconomy.mail_waiting)
+ return
+ //spawn crate
+ var/list/empty_turfs = list()
+ for(var/place as anything in shuttle_areas)
+ var/area/shuttle/shuttle_area = place
+ for(var/turf/open/floor/shuttle_floor in shuttle_area)
+ if(is_blocked_turf(shuttle_floor))
+ continue
+ empty_turfs += shuttle_floor
+ var/obj/structure/closet/crate/mail/mailcrate = new(pick(empty_turfs))
+
+ //collect recipients
+ var/list/mail_recipients = list()
+ for(var/mob/living/carbon/human/player_human in GLOB.player_list)
+ if(player_human.stat != DEAD)
+ mail_recipients += player_human
+
+ //Creates mail for all the mail waiting to arrive, if there's nobody to recieve it it's just junkmail.
+ for(var/mail_iterator in 1 to SSeconomy.mail_waiting)
+ var/obj/item/mail/new_mail
+ if(prob(FULL_CRATE_LETTER_ODDS))
+ new_mail = new /obj/item/mail(mailcrate)
+ else
+ new_mail = new /obj/item/mail/envelope(mailcrate)
+ var/mob/living/carbon/human/mail_to
+ if(mail_recipients.len)
+ mail_to = pick(mail_recipients)
+ new_mail.initialize_for_recipient(mail_to)
+ mail_recipients -= mail_to
+ else
+ new_mail.junk_mail()
+ if(new_mail)
+ SSeconomy.mail_waiting += 1
+ mailcrate.update_icon()
+ return mailcrate
+
#undef GOODY_FREE_SHIPPING_MAX
#undef CRATE_TAX
diff --git a/code/modules/vending/wardrobes.dm b/code/modules/vending/wardrobes.dm
index f60ea76015..439ed6b2ed 100644
--- a/code/modules/vending/wardrobes.dm
+++ b/code/modules/vending/wardrobes.dm
@@ -144,16 +144,24 @@
icon_state = "cargodrobe"
product_ads = "Upgraded Assistant Style! Pick yours today!;These shorts are comfy and easy to wear, get yours now!"
vend_reply = "Thank you for using the CargoDrobe!"
- products = list(/obj/item/clothing/suit/hooded/wintercoat/cargo = 3,
- /obj/item/clothing/under/rank/cargo/tech = 5,
- /obj/item/clothing/under/rank/cargo/tech/skirt = 5,
- /obj/item/clothing/under/rank/cargo/util = 5,
- /obj/item/clothing/suit/toggle/labcoat/depjacket/sup = 5,
- /obj/item/clothing/under/rank/cargo/tech/long = 5,
- /obj/item/clothing/shoes/sneakers/black = 5,
- /obj/item/clothing/gloves/fingerless = 5,
- /obj/item/clothing/head/soft = 5,
- /obj/item/radio/headset/headset_cargo = 3)
+ products = list(
+ /obj/item/storage/bag/mail = 3,
+ /obj/item/clothing/suit/hooded/wintercoat/cargo = 3,
+ /obj/item/clothing/under/rank/cargo/tech = 3,
+ /obj/item/clothing/under/rank/cargo/tech/skirt = 3,
+ /obj/item/clothing/under/rank/cargo/util = 3,
+ /obj/item/clothing/suit/toggle/labcoat/depjacket/sup = 3,
+ /obj/item/clothing/under/rank/cargo/tech/long = 3,
+ /obj/item/clothing/shoes/sneakers/black = 3,
+ /obj/item/clothing/gloves/fingerless = 3,
+ /obj/item/clothing/head/soft = 3,
+ /obj/item/radio/headset/headset_cargo = 3
+ )
+ premium = list(
+ /obj/item/clothing/under/rank/cargo/miner = 3,
+ /obj/item/clothing/head/mailman = 1,
+ /obj/item/clothing/under/misc/mailman = 1
+ )
refill_canister = /obj/item/vending_refill/wardrobe/cargo_wardrobe
payment_department = ACCOUNT_CAR
diff --git a/icons/obj/bureaucracy.dmi b/icons/obj/bureaucracy.dmi
index 7b00c155ef..0fc25e4caf 100644
Binary files a/icons/obj/bureaucracy.dmi and b/icons/obj/bureaucracy.dmi differ
diff --git a/icons/obj/crates.dmi b/icons/obj/crates.dmi
index c6574ca86b..1310342019 100644
Binary files a/icons/obj/crates.dmi and b/icons/obj/crates.dmi differ
diff --git a/strings/junkmail.txt b/strings/junkmail.txt
new file mode 100644
index 0000000000..db916907d8
--- /dev/null
+++ b/strings/junkmail.txt
@@ -0,0 +1,14 @@
+Hello! I am executive at Nanotrasen Nigel Takall. Due to accounting error all of my salary is stored in an account unreachable. In order to withdraw I am required to utilize your account to make a deposit to confirm my reality situation. In exchange for a temporary deposit I will give you a payment 1000 credits. All I need is access to your account. Will you be assistant please?
+WE NEED YOUR BLOOD! WE ARE AN ANARCHO-COMMUNIST VAMPIRE COMMUNE. BLOOD ONLY LASTS 42 DAYS BEFORE IT GOES BAD! WE DO NOT HAVE NANOTRASEN STASIS! PLEASE, SEND BLOOD! THANK YOU! OR WE KILL YOU!
+Triple deposits are waiting for you at MaxBet Online when you register to play with us. You can qualify for a 200% Welcome Bonus at MaxBet Online when you sign up today. Once you are a player with MaxBet, you will also receive lucrative weekly and monthly promotions. You will be able to enjoy over 450 top-flight casino games at MaxBet.
+Hello !, I'm the former HoS of your deerest station accused by the Nanotrasen of being a traitor . I was the best we had to offer but it seems that nanotramsen has turned their back on me. I need 2000 credits to pay for my bail and then we can restore order on space station 14!
+Hello, I noticed you riding in a 2555 Ripley and wondered if you'd be interested in selling. Low mileage mechs sell very well in our current market. Please call 223-334-3245 if you're interested
+Resign Now. I’m on you now. You are fucking with me now Let’s see who you are. Watch your back , bitch. Call me. Don’t be afraid, you piece of shit. Stand up. If you don’t call, you’re just afraid. And later: I already know where you live, I’m on you. You might as well call me. You will see me. I promise. Bro.
+Clown Planet Is Going To Become Awesome Possum Again! If This Wasn't Sent To A Clown, Disregard. If This Was Sent To A Mime, Blow It Out Your Ass, Space Frenchie! Anyway! We Make Big Progress On Clown Planet After Stupid Mimes BLOW IT ALL TO SAM HELL!!!!! Sorry I Am Mad.. Anyway Come And Visit, Honkles! We Thought You Were Dead Long Time :^()
+MONTHPEOPLE ARE REAL, THE NANOTRASEN DEEP STATE DOESN'T WANT YOU TO SEE THIS! I'VE SEEN THEM IN REAL LIFE, THEY HAVE HUGE EYEBALLS AND NO HEAD. THEY'RE SENTIENT CALENDARS. I'M NOT CRAZY. SEARCH THE CALENDAR INCIDENT ON NTNET. USE A PROXY! #BIGTRUTHS #WAKEYWAKEYSPACEMEN #21STOFSEPTEMBER
+hello 👋👋 nanotrasens! fuck 👈👌 the syndicate! they 👵 got ☄ me 😍😰 questioning my 🤰 loyalty to nanotraben! so 👌💯 please 😫 lets ⛔👀 gather our 📸💩 energy 😎 and 💰🔣 QUICK. 😲 send this 🗑👈 to 💦💊 10 😂😂 other loyal 💯 nanotraysens to 💦🤔 show we 🐶 dont 🙅🚫 take 🛍 nothing from 😂 the ✝ syndicate!! bless your 👉🏼 heart 😍💔
+Hello, my name is Immigration officer Mimi Sashimi from the American-Felinid Homeworld consulate. It appears your current documents are either inaccurate if not entirely fraudulent. This action in it's current state is a federal offense as listed in the United Earth Commission charter section NY-4. Please pay a fine of 300,000 Space credits or $3000 United States Dollars or face deportation
+Hi %name%, We are unable to validate your billing information for the next billing cycle of your subscription to HONK Weekly therefore we'll suspend your membership if we do not receive a response from you within 48 hours. Obviously we'd love to have you back, simply mail %address% to update your details and continue to enjoy all the best pranks & gags without interruption.
+Loyal customer, DonkCo Customer Service. We appreciate your brand loyalty support. As such, it is our responsibility and pleasure to inform you of the status of your package. Your package for one "Moth-Fuzz Parka" has been delayed. Due to local political tensions, an animal rights group has seized and eaten your package. We appreciate the patience, DonkCo
+MESSAGE FROM CENTCOM HIGH COMMAND: DO NOT ACCEPT THE FRIEND REQUEST OF TICKLEBALLS THE CLOWN. HE IS NOT FUNNY AND ON TOP OF THAT HE WILL HACK YOUR NTNET ACCOUNT AND MAKE YOU UNFUNNY TOO. YOU WILL LOSE ALL YOUR SPACECREDITS!!!!! SPREAD THE WORD. ANYONE WHO BECOMES FRIENDS WITH TINKLEBALLS THE CLOWN IS GOING TO LOSE ALL OF THEIR SPACECREDITS AND LOOK LIKE A HUGE IDIOT.
+i WAS A NORMAL BOY AND I CAME HOME FROM SCHOOL AND I WANTED TO PLAY SOME ORION TRAIL WHICH IS A VERY FUN GAME BUT WHEN WENT TO ARCADE MACHINE SOMETHING WAS WEIRD TEH LOGO HASD BLOD IN IT AND I BECAME VERY SCARE AND I CHECK OPTIONS AND TEHRES ONLY 1 "GO BACK" I CKLICK IT AND I SEE CHAT SI EMPTY THERE'S ONLY ONE CHARACTER CALLED "CLOSE TEH GAME " AND I GO TO ANOTHER MACHINE AND PLAY THERE BUT WHEN I PLAY GAME IS FULL OF BLOOD AND DEAD BODIES FROM SPACEMAN LOOK CLOSER AND SEE CLOWN AND CLOWN COMES CLOSER AND LOOKS AT ME AND SAYS "DON'T SAY I DIKDNT' WWARN YOU" AND CLOWN CLOSEUP APPEARS WITH BLOOD-RED HYPERREALISTIC EYES AND HE TELLS ME "YOU WILL BE THE NEXT ONE" AND ARCADE MACHINE POWER SHUT OFF AND THAT NITE CLOWN APPEAR AT MY WINDOW AND KILL ME AT 3 AM AND NOW IM DEAD AND YOU WILL BE TRHNE NEXT OEN UNLESS YOU PASTE THIS STORY TO 10 NTNET FRIENDS
diff --git a/tgstation.dme b/tgstation.dme
index b2aa6b767e..9d25bf3a57 100644
--- a/tgstation.dme
+++ b/tgstation.dme
@@ -187,6 +187,7 @@
#include "code\__DEFINES\skills\helpers.dm"
#include "code\__DEFINES\storage\_storage.dm"
#include "code\__DEFINES\storage\volumetrics.dm"
+#include "code\__DEFINES\traits\sources.dm"
#include "code\__HELPERS\_auxtools_api.dm"
#include "code\__HELPERS\_cit_helpers.dm"
#include "code\__HELPERS\_lists.dm"
@@ -712,6 +713,7 @@
#include "code\datums\elements\flavor_text.dm"
#include "code\datums\elements\forced_gravity.dm"
#include "code\datums\elements\ghost_role_eligibility.dm"
+#include "code\datums\elements\item_scaling.dm"
#include "code\datums\elements\mob_holder.dm"
#include "code\datums\elements\object_reskinning.dm"
#include "code\datums\elements\photosynthesis.dm"
@@ -1167,6 +1169,7 @@
#include "code\game\objects\items\inducer.dm"
#include "code\game\objects\items\kitchen.dm"
#include "code\game\objects\items\latexballoon.dm"
+#include "code\game\objects\items\mail.dm"
#include "code\game\objects\items\manuals.dm"
#include "code\game\objects\items\miscellaneous.dm"
#include "code\game\objects\items\mop.dm"