mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-21 15:14:17 +00:00
* Converts slapcrafting into a bespoke element (#84226) ## About The Pull Request Converts slapcrafting into a bespoke element, used to be ac omponent ## Why It's Good For The Game Noticed this was a big C and realized there was no real reason for that. It's the same recipe shared across different items. ## Changelog N/A --------- Co-authored-by: Ghom <42542238+Ghommie@ users.noreply.github.com> * Converts slapcrafting into a bespoke element --------- Co-authored-by: carlarctg <53100513+carlarctg@users.noreply.github.com> Co-authored-by: Ghom <42542238+Ghommie@ users.noreply.github.com>
101 lines
4.5 KiB
Plaintext
101 lines
4.5 KiB
Plaintext
//Gun crafting parts til they can be moved elsewhere
|
|
|
|
// PARTS //
|
|
|
|
/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 tranform 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."
|
|
|
|
/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 tranform a standard energy gun into a temperature gun. Fantastic at birthday parties and killing indigenious 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."
|