mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-13 16:13:19 +01:00
You've Got Mail! Adds Mail system (#22269)
* heres the mail it never fails Adds envelopes and its functions. * It makes me want to wag my tail Adds new envelope sprites courtesy of McRamon, makes mail bags and envelopess able to be carried by cargo clothing. * when it comes i want to whail Makes Wizard and Nukie equip change to off station role. Adds mail crates and functionality/logging for randomly choosing recipients of mail. * MAAAAAAAAAAAAAAIIIL!!!! Adds functionality for the mail scanner alongside sounds. Begins the process of making mail arrive on the shuttle. * MAIL * THE MAILMAN IS HERE * MAIL IS REAL * Give me an M, give me an A, give me an I, give me an L. What does that spell? MAIL. Finalises pre-review mail features, adding the mail scanner to cargo tech loadout/autolathe. * Update code/game/gamemodes/nuclear/nuclear.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/modules/shuttle/supply.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/game/jobs/job/support.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/game/objects/items/weapons/storage/bags.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/game/objects/items/weapons/storage/bags.dm Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> * Update code/game/objects/structures/crates_lockers/crates.dm Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> * Update code/controllers/subsystem/SSeconomy.dm Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com> * check out what you got now Removes unused sprite bloat. * Update code/game/objects/mail.dm Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> * Update code/game/objects/mail.dm * Update code/game/objects/mail.dm Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> * Update code/game/objects/mail.dm Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com> * Update code/game/objects/mail.dm Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> * Update code/game/objects/mail.dm Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com> * First few Contra reviews * Second batch * Cl doesn't fail anymore * Even more fucking reviews * Doesn't quite work yet but we're almost there * WHEN DOES IT EEEEEND * I have no energy to make a blues clues reference More commits to respond to reviews * God I miss Steve Adds hand sprites to mail scanners * Woooo Mail works again * Science envelopes * Update code/game/objects/mail.dm Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> * my god it worked II hate it * Bread and Circuses splits up service envelopes into two categories, addresses other reviews. * Lewc review - needs testing * Almost there Changing lists and more. * Last fix * IT IS ALL WORKING NOW * Mail. Is. Done. Final pass. * Update code/controllers/subsystem/SSeconomy.dm Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> * Update code/game/objects/mail.dm Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> * The fix * Just this one too * Lewc review * mail? yeah * Begone, ye powersink * Sirryan review * Update code/__DEFINES/economy_defines.dm Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> * Update code/game/objects/mail.dm Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> * Update code/game/objects/mail.dm Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> * Update code/controllers/subsystem/SSeconomy.dm Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> * Update code/game/objects/mail.dm Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> * Update code/game/objects/mail.dm Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> * Wjpp[s * Removes useless comment * We ball --------- Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com> Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
This commit is contained in:
@@ -501,7 +501,7 @@
|
||||
name = "cargo winter coat"
|
||||
icon_state = "wintercoat_cargo"
|
||||
item_state = "coatcargo"
|
||||
allowed = list(/obj/item/flashlight, /obj/item/tank/internals/emergency_oxygen, /obj/item/toy, /obj/item/storage/fancy/cigarettes, /obj/item/lighter, /obj/item/rcs, /obj/item/clipboard)
|
||||
allowed = list(/obj/item/flashlight, /obj/item/tank/internals/emergency_oxygen, /obj/item/toy, /obj/item/storage/fancy/cigarettes, /obj/item/lighter, /obj/item/rcs, /obj/item/clipboard, /obj/item/envelope, /obj/item/storage/bag/mail)
|
||||
hoodtype = /obj/item/clothing/head/hooded/winterhood/cargo
|
||||
|
||||
/obj/item/clothing/head/hooded/winterhood/cargo
|
||||
@@ -891,7 +891,7 @@
|
||||
icon_state = "bombercargo"
|
||||
item_state = "bombercargo"
|
||||
ignore_suitadjust = 0
|
||||
allowed = list(/obj/item/rcs, /obj/item/clipboard, /obj/item/flashlight, /obj/item/tank/internals/emergency_oxygen, /obj/item/toy, /obj/item/lighter, /obj/item/storage/fancy/cigarettes)
|
||||
allowed = list(/obj/item/rcs, /obj/item/clipboard, /obj/item/flashlight, /obj/item/tank/internals/emergency_oxygen, /obj/item/toy, /obj/item/lighter, /obj/item/storage/fancy/cigarettes, /obj/item/storage/bag/mail, /obj/item/envelope)
|
||||
body_parts_covered = UPPER_TORSO | LOWER_TORSO | ARMS
|
||||
cold_protection = UPPER_TORSO | LOWER_TORSO | ARMS
|
||||
min_cold_protection_temperature = FIRE_SUIT_MIN_TEMP_PROTECT
|
||||
|
||||
@@ -468,7 +468,7 @@
|
||||
if(!(C.department in supply_consoles))
|
||||
continue
|
||||
if(!supply_consoles[C.department] || length(supply_consoles[C.department] - mats_in_stock))
|
||||
C.createMessage("Ore Redemption Machine", "New Minerals Available!", msg, 1) // RQ_NORMALPRIORITY
|
||||
C.createMessage("Ore Redemption Machine", "New Minerals Available!", msg, RQ_NORMALPRIORITY)
|
||||
|
||||
/**
|
||||
* Tries to insert the ID card held by the given user into the machine.
|
||||
|
||||
@@ -933,3 +933,11 @@
|
||||
materials = list(MAT_METAL = 4000)
|
||||
build_path = /obj/item/desk_bell
|
||||
category = list("initial", "Miscellaneous")
|
||||
|
||||
/datum/design/mailscanner
|
||||
name = "Mail Scanner"
|
||||
id = "mailscanner"
|
||||
build_type = AUTOLATHE
|
||||
materials = list(MAT_METAL = 1500, MAT_GLASS = 500)
|
||||
build_path = /obj/item/mail_scanner
|
||||
category = list("initial", "Miscellaneous")
|
||||
|
||||
@@ -34,8 +34,8 @@
|
||||
/obj/effect/hierophant,
|
||||
/obj/item/warp_cube,
|
||||
/obj/machinery/quantumpad,
|
||||
/obj/structure/extraction_point
|
||||
)
|
||||
/obj/structure/extraction_point,
|
||||
/obj/item/envelope)
|
||||
if(A)
|
||||
if(is_type_in_list(A, blacklist))
|
||||
return TRUE
|
||||
@@ -126,10 +126,12 @@
|
||||
continue
|
||||
if(istype(MA, /mob/dead))
|
||||
continue
|
||||
if(istype(MA, /obj/structure/closet/crate/mail))
|
||||
continue
|
||||
SSeconomy.sold_atoms += " [MA.name]"
|
||||
|
||||
// Must be in a crate (or a critter crate)!
|
||||
if(istype(MA,/obj/structure/closet/crate) || istype(MA,/obj/structure/closet/critter))
|
||||
if(istype(MA, /obj/structure/closet/crate) || istype(MA, /obj/structure/closet/critter))
|
||||
SSeconomy.sold_atoms += ":"
|
||||
if(!length(MA.contents))
|
||||
SSeconomy.sold_atoms += " (empty)"
|
||||
|
||||
@@ -410,7 +410,7 @@
|
||||
if(is_public) // Public consoles cant move the shuttle. Dont allow exploiters.
|
||||
return
|
||||
if(SSshuttle.supply.canMove())
|
||||
to_chat(user, "<span class='warning'>For safety reasons the automated supply shuttle cannot transport live organisms, classified nuclear weaponry or homing beacons.</span>")
|
||||
to_chat(user, "<span class='warning'>For safety reasons the automated supply shuttle cannot transport live organisms, undelivered mail, classified nuclear weaponry or homing beacons.</span>")
|
||||
else if(SSshuttle.supply.getDockedId() == "supply_home")
|
||||
SSshuttle.toggleShuttle("supply", "supply_home", "supply_away", 1)
|
||||
investigate_log("| [key_name(user)] has sent the supply shuttle away. Shuttle contents: [SSeconomy.sold_atoms]", "cargo")
|
||||
|
||||
Reference in New Issue
Block a user