mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-15 12:11:45 +00:00
## About The Pull Request moves all implementations (im aware of) for "Im a parent type dont spawn me please" to the datum layer to standardized behavior adds a standerized proc for filtering out "bad" items that we dont want spawning. applies to it the subtype vendor, gifts, and a new spawner and mystery box for a random gun (neither playerfacing) "port" of https://github.com/shiptest-ss13/Shiptest/pull/4621 https://github.com/user-attachments/assets/22f6f0b2-b44e-411a-b3dc-6b97dc0287aa small warning: I dont have EVERY abstract type defined right now but, ive done a good enough job for now. Im tired of data entry rn ## Why It's Good For The Game standardizing behavior. Might be a micro hit to performance however having this lets us not rely on icon state to determine whether something is a parent type and makes it much easier to tell something is a parent type (could be applied further to things like admin spawning menus and things like that). need feedback on if this is actually good for the game. ## Changelog 🆑 add: Soda cans show up in the silver slime drink table. add: Examine tag for items that are not mean to show up ingame. refactor: Standardizes how gifts rule out abstract types. fix: gifts no longer check if something has an inhand, massively expanding the list of potential items. /🆑
108 lines
4.8 KiB
Plaintext
108 lines
4.8 KiB
Plaintext
//Gun crafting parts til they can be moved elsewhere
|
|
|
|
// PARTS //
|
|
/obj/item/weaponcrafting
|
|
abstract_type = /obj/item/weaponcrafting
|
|
|
|
/obj/item/weaponcrafting/Initialize(mapload)
|
|
. = ..()
|
|
create_slapcraft_component()
|
|
|
|
/obj/item/weaponcrafting/proc/create_slapcraft_component()
|
|
return
|
|
|
|
/obj/item/weaponcrafting/receiver
|
|
name = "modular receiver"
|
|
desc = "A prototype modular receiver and trigger assembly for a firearm."
|
|
icon = 'icons/obj/weapons/improvised.dmi'
|
|
icon_state = "receiver"
|
|
|
|
/obj/item/weaponcrafting/receiver/create_slapcraft_component()
|
|
var/static/list/slapcraft_recipe_list = list(/datum/crafting_recipe/pipegun)
|
|
|
|
AddElement(
|
|
/datum/element/slapcrafting,\
|
|
slapcraft_recipes = slapcraft_recipe_list,\
|
|
)
|
|
|
|
/obj/item/weaponcrafting/stock
|
|
name = "rifle stock"
|
|
desc = "A classic rifle stock that doubles as a grip, roughly carved out of wood."
|
|
custom_materials = list(/datum/material/wood = SHEET_MATERIAL_AMOUNT * 6)
|
|
resistance_flags = FLAMMABLE
|
|
icon = 'icons/obj/weapons/improvised.dmi'
|
|
icon_state = "riflestock"
|
|
|
|
/obj/item/weaponcrafting/stock/create_slapcraft_component()
|
|
var/static/list/slapcraft_recipe_list = list(/datum/crafting_recipe/smoothbore_disabler, /datum/crafting_recipe/laser_musket)
|
|
|
|
AddElement(
|
|
/datum/element/slapcrafting,\
|
|
slapcraft_recipes = slapcraft_recipe_list,\
|
|
)
|
|
|
|
/obj/item/weaponcrafting/giant_wrench
|
|
name = "Big Slappy parts kit"
|
|
desc = "Illegal parts to make a giant like wrench commonly known as a Big Slappy."
|
|
icon = 'icons/obj/weapons/improvised.dmi'
|
|
icon_state = "weaponkit_gw"
|
|
|
|
/obj/item/weaponcrafting/giant_wrench/create_slapcraft_component() // slappycraft
|
|
var/static/list/slapcraft_recipe_list = list(/datum/crafting_recipe/giant_wrench)
|
|
|
|
AddElement(
|
|
/datum/element/slapcrafting,\
|
|
slapcraft_recipes = slapcraft_recipe_list,\
|
|
)
|
|
|
|
///These gun kits are printed from the security protolathe to then be used in making new weapons
|
|
|
|
// GUN PART KIT //
|
|
|
|
/obj/item/weaponcrafting/gunkit // These don't get a slapcraft component, it's added to the gun - more intuitive player-facing to slap the kit onto the gun.
|
|
name = "generic gun parts kit"
|
|
desc = "It's an empty gun parts container! Why do you have this?"
|
|
icon = 'icons/obj/weapons/improvised.dmi'
|
|
icon_state = "kitsuitcase"
|
|
|
|
/obj/item/weaponcrafting/gunkit/nuclear
|
|
name = "advanced energy gun parts kit (lethal/nonlethal)"
|
|
desc = "A suitcase containing the necessary gun parts to transform a standard energy gun into an advanced energy gun."
|
|
|
|
/obj/item/weaponcrafting/gunkit/tesla
|
|
name = "tesla cannon parts kit (lethal)"
|
|
desc = "A suitcase containing the necessary gun parts to construct a tesla cannon around a stabilized flux anomaly. Handle with care."
|
|
icon_state = "weaponskit_tesla"
|
|
|
|
/obj/item/weaponcrafting/gunkit/xray
|
|
name = "x-ray laser gun parts kit (lethal)"
|
|
desc = "A suitcase containing the necessary gun parts to turn a laser gun into a x-ray laser gun. Do not point most parts directly towards face."
|
|
|
|
/obj/item/weaponcrafting/gunkit/ion
|
|
name = "ion carbine parts kit (nonlethal/highly destructive/very lethal (silicons))"
|
|
desc = "A suitcase containing the necessary gun parts to transform a standard laser gun into a ion carbine. Perfect against lockers you don't have access to."
|
|
|
|
/obj/item/weaponcrafting/gunkit/temperature
|
|
name = "temperature gun parts kit (less lethal/very lethal (lizardpeople))"
|
|
desc = "A suitcase containing the necessary gun parts to transform a standard energy gun into a temperature gun. Fantastic at birthday parties and killing indigenous populations of lizardpeople."
|
|
|
|
/obj/item/weaponcrafting/gunkit/beam_rifle
|
|
name = "\improper Event Horizon anti-existential beam rifle part kit (DOOMSDAY DEVICE, DO NOT CONSTRUCT)"
|
|
desc = "What fevered minds wrought this terrible construction kit? To create a frame to harness the strange energies that flow through the Spinward Sector towards such horrible acts of violence?"
|
|
|
|
/obj/item/weaponcrafting/gunkit/ebow
|
|
name = "energy crossbow part kit (less lethal)"
|
|
desc = "Highly illegal weapons refurbishment kit that allows you to turn the standard proto-kinetic accelerator into a near-duplicate energy crossbow. Almost like the real thing!"
|
|
|
|
/obj/item/weaponcrafting/gunkit/hellgun
|
|
name = "hellfire laser gun degradation kit (warcrime lethal)"
|
|
desc = "Take a perfectly functioning laser gun. Butcher the inside of the gun so it runs hot and mean. You now have a hellfire laser. You monster."
|
|
|
|
/obj/item/weaponcrafting/gunkit/photon
|
|
name = "photon cannon parts kit (nonlethal)"
|
|
desc = "A suitcase containing the necessary gun parts to construct a photon cannon around a stabilized flux anomaly. Harness the power of the sun, in the palms of your hands."
|
|
|
|
/obj/item/weaponcrafting/gunkit/sks
|
|
name = "\improper Sakhno SKS semi-automatic rifle parts kit (lethal)"
|
|
desc = "A suitcase containing the necessary gun parts to construct a Sakhno SKS semi-automatic rifle. These things are all over the frontier worlds."
|