mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 09:42:29 +00:00
## About The Pull Request Misfire chance, gun jamming (currently only on boltaction rifles) and integrity repairs are now handled by gun maintenance kits. Using a kit on a gun resets any misfire chance or jamming, and restores the weapon's integrity back to full. You can find gun maintenance kits in security equipment vendors, or order a crate of them from cargo. You can also make a maint version to retain the improvised nature of the previous cleaning functionaltiy. ## Why It's Good For The Game Firstly, clearing misfires was always a little confusing for most players, as it required a bolt of cloth to fix. That's really on me for making that as confusing as possible. We ended up with multiple firearm degradation mechanics, so consolidating their restoration makes it easier for future code maintenance. I disliked that the kits existed but were mostly only for the sake of an extremely niche interaction. And that interaction was, at best, kind of niche. Expanding out their use to gun maintenance generally is honestly better design. ## Changelog 🆑 refactor: Gun maintenance is now consolidated into a single item, the gun maintenance kit, rather than multiple different item interactions. It is handled on the maintenance kit itself, and not in gun code. qol: You can order maintenance kits from cargo, and get some out of the security equipment vendor. Helpful if someone spilled acid onto your disabler. You can also make a makeshift one from maintenance trash. /🆑
382 lines
14 KiB
Plaintext
382 lines
14 KiB
Plaintext
/datum/supply_pack/security
|
|
group = "Security"
|
|
access = ACCESS_SECURITY
|
|
crate_type = /obj/structure/closet/crate/secure/gear
|
|
|
|
/datum/supply_pack/security/ammo
|
|
name = "Ammo Crate"
|
|
desc = "Contains three boxes of beanbag shotgun shells, three boxes \
|
|
of rubbershot shotgun shells and one of each special .38 speedloaders."
|
|
cost = CARGO_CRATE_VALUE * 8
|
|
access_view = ACCESS_ARMORY
|
|
contains = list(/obj/item/storage/box/beanbag = 3,
|
|
/obj/item/storage/box/rubbershot = 3,
|
|
/obj/item/ammo_box/c38/trac,
|
|
/obj/item/ammo_box/c38/hotshot,
|
|
/obj/item/ammo_box/c38/iceblox,
|
|
)
|
|
crate_name = "ammo crate"
|
|
|
|
/datum/supply_pack/security/armor
|
|
name = "Armor Crate"
|
|
desc = "Three vests of well-rounded, decently-protective armor."
|
|
cost = CARGO_CRATE_VALUE * 2
|
|
access_view = ACCESS_SECURITY
|
|
contains = list(/obj/item/clothing/suit/armor/vest = 3)
|
|
crate_name = "armor crate"
|
|
|
|
/datum/supply_pack/security/disabler
|
|
name = "Disabler Crate"
|
|
desc = "Three stamina-draining disabler weapons."
|
|
cost = CARGO_CRATE_VALUE * 3
|
|
access_view = ACCESS_SECURITY
|
|
contains = list(/obj/item/gun/energy/disabler = 3)
|
|
crate_name = "disabler crate"
|
|
|
|
/datum/supply_pack/security/forensics
|
|
name = "Forensics Crate"
|
|
desc = "Stay hot on the criminal's heels with Nanotrasen's Detective Essentials™. \
|
|
Contains a forensics scanner, six evidence bags, camera, special board for evidences, tape recorder, stick of chalk, \
|
|
and of course, a fedora."
|
|
cost = CARGO_CRATE_VALUE * 2.5
|
|
access_view = ACCESS_MORGUE
|
|
contains = list(/obj/item/detective_scanner,
|
|
/obj/item/storage/box/evidence,
|
|
/obj/item/camera,
|
|
/obj/item/taperecorder,
|
|
/obj/item/toy/crayon/white,
|
|
/obj/item/clothing/head/fedora/det_hat,
|
|
/obj/item/wallframe/detectiveboard
|
|
)
|
|
crate_name = "forensics crate"
|
|
|
|
/datum/supply_pack/security/helmets
|
|
name = "Helmets Crate"
|
|
desc = "Contains three standard-issue brain buckets."
|
|
cost = CARGO_CRATE_VALUE * 2
|
|
contains = list(/obj/item/clothing/head/helmet/sec = 3)
|
|
crate_name = "helmet crate"
|
|
|
|
/datum/supply_pack/security/laser
|
|
name = "Lasers Crate"
|
|
desc = "Contains three lethal, high-energy laser guns."
|
|
cost = CARGO_CRATE_VALUE * 4
|
|
access_view = ACCESS_ARMORY
|
|
contains = list(/obj/item/gun/energy/laser = 3)
|
|
crate_name = "laser crate"
|
|
|
|
/datum/supply_pack/security/securitybarriers
|
|
name = "Security Barrier Grenades"
|
|
desc = "Stem the tide with four Security Barrier grenades."
|
|
access_view = ACCESS_BRIG
|
|
contains = list(/obj/item/grenade/barrier = 4)
|
|
cost = CARGO_CRATE_VALUE * 2
|
|
crate_name = "security barriers crate"
|
|
|
|
/datum/supply_pack/security/securityclothes
|
|
name = "Security Clothing Crate"
|
|
desc = "Contains appropriate outfits for the station's private security force. \
|
|
Contains outfits for the Warden, Head of Security, and two Security Officers. \
|
|
Each outfit comes with a rank-appropriate jumpsuit, suit, and beret."
|
|
cost = CARGO_CRATE_VALUE * 3
|
|
access_view = ACCESS_SECURITY
|
|
contains = list(/obj/item/clothing/under/rank/security/officer/formal = 2,
|
|
/obj/item/clothing/suit/jacket/officer/blue = 2,
|
|
/obj/item/clothing/head/beret/sec/navyofficer = 2,
|
|
/obj/item/clothing/under/rank/security/warden/formal,
|
|
/obj/item/clothing/suit/jacket/warden/blue,
|
|
/obj/item/clothing/head/beret/sec/navywarden,
|
|
/obj/item/clothing/under/rank/security/head_of_security/formal,
|
|
/obj/item/clothing/suit/jacket/hos/blue,
|
|
/obj/item/clothing/head/hats/hos/beret/navyhos,
|
|
)
|
|
crate_name = "security clothing crate"
|
|
|
|
/datum/supply_pack/security/stingpack
|
|
name = "Stingbang Grenade Pack"
|
|
desc = "Contains five \"stingbang\" grenades, perfect for stopping \
|
|
riots and playing morally unthinkable pranks."
|
|
cost = CARGO_CRATE_VALUE * 5
|
|
access_view = ACCESS_ARMORY
|
|
contains = list(/obj/item/storage/box/stingbangs)
|
|
crate_name = "stingbang grenade pack crate"
|
|
|
|
/datum/supply_pack/security/supplies
|
|
name = "Security Supplies Crate"
|
|
desc = "Contains seven flashbangs, seven teargas grenades, six flashes, and seven handcuffs."
|
|
cost = CARGO_CRATE_VALUE * 3.5
|
|
access_view = ACCESS_ARMORY
|
|
contains = list(/obj/item/storage/box/flashbangs,
|
|
/obj/item/storage/box/teargas,
|
|
/obj/item/storage/box/flashes,
|
|
/obj/item/storage/box/handcuffs,
|
|
)
|
|
crate_name = "security supply crate"
|
|
|
|
/datum/supply_pack/security/maintenance_kits
|
|
name = "Gun Maintenance Kits"
|
|
desc = "Three gun maintenance kits for the repair and maintenance of a firearm."
|
|
access_view = ACCESS_BRIG
|
|
contains = list(/obj/item/gun_maintenance_supplies = 3)
|
|
cost = CARGO_CRATE_VALUE * 2
|
|
crate_name = "gun maintenance kit crate"
|
|
|
|
/datum/supply_pack/security/firingpins
|
|
name = "Standard Firing Pins Crate"
|
|
desc = "Upgrade your arsenal with 10 standard firing pins."
|
|
cost = CARGO_CRATE_VALUE * 4
|
|
access_view = ACCESS_ARMORY
|
|
contains = list(/obj/item/storage/box/firingpins = 2)
|
|
crate_name = "firing pins crate"
|
|
|
|
/datum/supply_pack/security/firingpins/paywall
|
|
name = "Paywall Firing Pins Crate"
|
|
desc = "Specialized firing pins with a built-in configurable paywall."
|
|
cost = CARGO_CRATE_VALUE * 2
|
|
access_view = ACCESS_ARMORY
|
|
contains = list(/obj/item/storage/box/firingpins/paywall = 2)
|
|
crate_name = "paywall firing pins crate"
|
|
|
|
/datum/supply_pack/security/justiceinbound
|
|
name = "Standard Justice Enforcer Crate"
|
|
desc = "This is it. The Bee's Knees. The Creme of the Crop. The Pick of the Litter. \
|
|
The best of the best of the best. The Crown Jewel of Nanotrasen. \
|
|
The Alpha and the Omega of security headwear. Guaranteed to strike fear into the hearts \
|
|
of each and every criminal aboard the station. Also comes with a security gasmask."
|
|
cost = CARGO_CRATE_VALUE * 6 //justice comes at a price. An expensive, noisy price.
|
|
contraband = TRUE
|
|
contains = list(/obj/item/clothing/head/helmet/toggleable/justice,
|
|
/obj/item/clothing/mask/gas/sechailer,
|
|
)
|
|
crate_name = "security clothing crate"
|
|
discountable = SUPPLY_PACK_RARE_DISCOUNTABLE
|
|
|
|
/datum/supply_pack/security/baton
|
|
name = "Stun Batons Crate"
|
|
desc = "Arm the Civil Protection Forces with three stun batons. Batteries included."
|
|
cost = CARGO_CRATE_VALUE * 2
|
|
access_view = ACCESS_SECURITY
|
|
contains = list(/obj/item/melee/baton/security/loaded = 3)
|
|
crate_name = "stun baton crate"
|
|
|
|
/datum/supply_pack/security/wall_flash
|
|
name = "Wall-Mounted Flash Crate"
|
|
desc = "Contains four wall-mounted flashes."
|
|
cost = CARGO_CRATE_VALUE * 2
|
|
contains = list(/obj/item/storage/box/wall_flash = 4)
|
|
crate_name = "wall-mounted flash crate"
|
|
|
|
/datum/supply_pack/security/constable
|
|
name = "Traditional Equipment Crate"
|
|
desc = "Spare equipment found in a warehouse. Contains a constable's outfit, \
|
|
whistle, and conversion kit."
|
|
cost = CARGO_CRATE_VALUE * 2.2
|
|
contraband = TRUE
|
|
contains = list(/obj/item/clothing/under/rank/security/constable,
|
|
/obj/item/clothing/head/costume/constable,
|
|
/obj/item/clothing/gloves/color/white,
|
|
/obj/item/clothing/mask/whistle,
|
|
/obj/item/conversion_kit,
|
|
)
|
|
crate_name = "traditional equipment crate"
|
|
discountable = SUPPLY_PACK_RARE_DISCOUNTABLE
|
|
|
|
/// Armory packs
|
|
|
|
/datum/supply_pack/security/armory
|
|
group = "Armory"
|
|
access = ACCESS_ARMORY
|
|
access_view = ACCESS_ARMORY
|
|
crate_type = /obj/structure/closet/crate/secure/weapon
|
|
|
|
/datum/supply_pack/security/armory/bulletarmor
|
|
name = "Bulletproof Armor Crate"
|
|
desc = "Contains three sets of bulletproof armor. Guaranteed to reduce a bullet's \
|
|
stopping power by over half."
|
|
cost = CARGO_CRATE_VALUE * 3
|
|
contains = list(/obj/item/clothing/suit/armor/bulletproof = 3)
|
|
crate_name = "bulletproof armor crate"
|
|
|
|
/datum/supply_pack/security/armory/bullethelmets
|
|
name = "Bulletproof Helmets Crate"
|
|
desc = "Contains three bulletproof helmets."
|
|
cost = CARGO_CRATE_VALUE * 3
|
|
contains = list(/obj/item/clothing/head/helmet/alt = 3)
|
|
crate_name = "bulletproof helmets crate"
|
|
|
|
/datum/supply_pack/security/armory/chemimp
|
|
name = "Chemical Implants Crate"
|
|
desc = "Contains five Remote Chemical implants."
|
|
cost = CARGO_CRATE_VALUE * 3.5
|
|
contains = list(/obj/item/storage/box/chemimp)
|
|
crate_name = "chemical implant crate"
|
|
|
|
/datum/supply_pack/security/armory/ballistic
|
|
name = "Combat Shotguns Crate"
|
|
desc = "For when the enemy absolutely needs to be replaced with lead. \
|
|
Contains three Aussec-designed Combat Shotguns, and three Shotgun Bandoliers."
|
|
cost = CARGO_CRATE_VALUE * 17.5
|
|
contains = list(/obj/item/gun/ballistic/shotgun/automatic/combat = 3,
|
|
/obj/item/storage/belt/bandolier = 3)
|
|
crate_name = "combat shotguns crate"
|
|
|
|
/datum/supply_pack/security/armory/dragnet
|
|
name = "DRAGnet Crate"
|
|
desc = "Contains three \"Dynamic Rapid-Apprehension of the Guilty\" netting devices, \
|
|
a recent breakthrough in law enforcement prisoner management technology. Includes a DRAGnet beacon."
|
|
cost = CARGO_CRATE_VALUE * 5
|
|
contains = list(
|
|
/obj/item/gun/energy/e_gun/dragnet = 3,
|
|
/obj/item/dragnet_beacon = 1
|
|
)
|
|
crate_name = "\improper DRAGnet crate"
|
|
|
|
/datum/supply_pack/security/armory/energy
|
|
name = "Energy Guns Crate"
|
|
desc = "Contains two Energy Guns, capable of firing both nonlethal and lethal \
|
|
blasts of light."
|
|
cost = CARGO_CRATE_VALUE * 18
|
|
contains = list(/obj/item/gun/energy/e_gun = 2)
|
|
crate_name = "energy gun crate"
|
|
crate_type = /obj/structure/closet/crate/secure/plasma
|
|
|
|
/datum/supply_pack/security/armory/laser_carbine
|
|
name = "Laser Carbine Crate"
|
|
desc = "Contains three laser carbines, capable of rapidly firing weak lasers."
|
|
cost = CARGO_CRATE_VALUE * 9
|
|
contains = list(/obj/item/gun/energy/laser/carbine = 3)
|
|
crate_name = "laser carbine crate"
|
|
crate_type = /obj/structure/closet/crate/secure/plasma
|
|
|
|
/datum/supply_pack/security/armory/disabler_smg
|
|
name = "Disabler SMG Crate"
|
|
desc = "Contains three disabler SMGs, capable of rapidly firing weak disabler beams."
|
|
cost = CARGO_CRATE_VALUE * 7
|
|
contains = list(/obj/item/gun/energy/disabler/smg = 3)
|
|
crate_name = "disabler smg crate"
|
|
crate_type = /obj/structure/closet/crate/secure/plasma
|
|
|
|
/datum/supply_pack/security/armory/battle_rifle
|
|
name = "NT BR-38 Crate"
|
|
desc = "An experimental energy-based ballistic battle rifle. Only available to \
|
|
Nanotrasen stations for security purposes. DO NOT RESELL TO OUTSIDE COMPANIES. \
|
|
Contains three NT BR-38 rifles and three magazines containing .38 Standard."
|
|
cost = CARGO_CRATE_VALUE * 100
|
|
contains = list(
|
|
/obj/item/gun/ballistic/automatic/battle_rifle = 2,
|
|
/obj/item/ammo_box/magazine/m38 = 4,
|
|
)
|
|
crate_name = "battle rifle crate"
|
|
|
|
/datum/supply_pack/security/armory/br_mag
|
|
name = "NT BR-38 Magazine Crate"
|
|
desc = "Six .38 magazines, able to fit into the NT BR-38. Contains \
|
|
two standard magazines, two Hot Shot magazines and two Iceblox magazines."
|
|
cost = CARGO_CRATE_VALUE * 7
|
|
contains = list(
|
|
/obj/item/ammo_box/magazine/m38 = 2,
|
|
/obj/item/ammo_box/magazine/m38/hotshot = 2,
|
|
/obj/item/ammo_box/magazine/m38/iceblox =2,
|
|
)
|
|
crate_name = ".38 magazine crate"
|
|
|
|
/datum/supply_pack/security/armory/exileimp
|
|
name = "Exile Implants Crate"
|
|
desc = "Contains five Exile implants."
|
|
cost = CARGO_CRATE_VALUE * 3.5
|
|
contains = list(/obj/item/storage/box/exileimp)
|
|
crate_name = "exile implant crate"
|
|
|
|
/datum/supply_pack/security/armory/fire
|
|
name = "Incendiary Weapons Crate"
|
|
desc = "Burn, baby burn. Contains three incendiary grenades, three plasma canisters, \
|
|
and a flamethrower."
|
|
cost = CARGO_CRATE_VALUE * 7
|
|
access = ACCESS_COMMAND
|
|
contains = list(/obj/item/flamethrower/full,
|
|
/obj/item/tank/internals/plasma = 3,
|
|
/obj/item/grenade/chem_grenade/incendiary = 3,
|
|
)
|
|
crate_name = "incendiary weapons crate"
|
|
crate_type = /obj/structure/closet/crate/secure/plasma
|
|
dangerous = TRUE
|
|
|
|
/datum/supply_pack/security/armory/mindshield
|
|
name = "Mindshield Implants Crate"
|
|
desc = "Prevent against radical thoughts with three Mindshield implants."
|
|
cost = CARGO_CRATE_VALUE * 6
|
|
contains = list(/obj/item/storage/lockbox/loyalty)
|
|
crate_name = "mindshield implant crate"
|
|
|
|
/datum/supply_pack/security/armory/trackingimp
|
|
name = "Tracking Implants Crate"
|
|
desc = "Contains four tracking implants and three tracking speedloaders of tracing .38 ammo."
|
|
cost = CARGO_CRATE_VALUE * 4.5
|
|
contains = list(/obj/item/storage/box/trackimp,
|
|
/obj/item/ammo_box/c38/trac = 3,
|
|
)
|
|
crate_name = "tracking implant crate"
|
|
|
|
/datum/supply_pack/security/armory/laserarmor
|
|
name = "Reflector Vest Crate"
|
|
desc = "Contains two vests of highly reflective material. Each armor piece \
|
|
diffuses a laser's energy by over half, as well as offering a good chance \
|
|
to reflect the laser entirely."
|
|
cost = CARGO_CRATE_VALUE * 5
|
|
contains = list(/obj/item/clothing/suit/armor/laserproof = 2)
|
|
crate_name = "reflector vest crate"
|
|
crate_type = /obj/structure/closet/crate/secure/plasma
|
|
|
|
/datum/supply_pack/security/armory/riotarmor
|
|
name = "Riot Armor Crate"
|
|
desc = "Contains three sets of heavy body armor. Advanced padding protects \
|
|
against close-ranged weaponry, making melee attacks feel only half as \
|
|
potent to the user."
|
|
cost = CARGO_CRATE_VALUE * 6
|
|
contains = list(/obj/item/clothing/suit/armor/riot = 3)
|
|
crate_name = "riot armor crate"
|
|
|
|
/datum/supply_pack/security/armory/riothelmets
|
|
name = "Riot Helmets Crate"
|
|
desc = "Contains three riot helmets."
|
|
cost = CARGO_CRATE_VALUE * 4
|
|
contains = list(/obj/item/clothing/head/helmet/toggleable/riot = 3)
|
|
crate_name = "riot helmets crate"
|
|
|
|
/datum/supply_pack/security/armory/riotshields
|
|
name = "Riot Shields Crate"
|
|
desc = "For when the greytide gets really uppity. Contains three riot shields."
|
|
cost = CARGO_CRATE_VALUE * 5
|
|
contains = list(/obj/item/shield/riot = 3)
|
|
crate_name = "riot shields crate"
|
|
|
|
/datum/supply_pack/security/armory/swat
|
|
name = "SWAT Crate"
|
|
desc = "Contains two fullbody sets of tough, fireproof suits designed in a joint \
|
|
effort by IS-ERI and Nanotrasen. Each set contains a suit, helmet, mask, combat belt, \
|
|
and gorilla gloves."
|
|
cost = CARGO_CRATE_VALUE * 7
|
|
contains = list(/obj/item/clothing/head/helmet/swat/nanotrasen = 2,
|
|
/obj/item/clothing/suit/armor/swat = 2,
|
|
/obj/item/clothing/mask/gas/sechailer/swat = 2,
|
|
/obj/item/storage/belt/military/assault = 2,
|
|
/obj/item/clothing/gloves/tackler/combat = 2,
|
|
)
|
|
crate_name = "swat crate"
|
|
|
|
/datum/supply_pack/security/armory/thermal
|
|
name = "Thermal Pistol Crate"
|
|
desc = "Contains a pair of holsters each with two experimental thermal pistols, \
|
|
using nanites as the basis for their ammo. Can be shaken to reload."
|
|
cost = CARGO_CRATE_VALUE * 10
|
|
contains = list(/obj/item/storage/belt/holster/energy/thermal = 2)
|
|
crate_name = "thermal pistol crate"
|
|
|
|
/datum/supply_pack/security/sunglasses
|
|
name = "Sunglasses Crate"
|
|
desc = "A single pair of flash-proof sunglasses."
|
|
cost = CARGO_CRATE_VALUE * 2
|
|
access_view = ACCESS_SECURITY
|
|
contains = list(/obj/item/clothing/glasses/sunglasses = 1)
|
|
crate_name = "sunglasses crate"
|