Files
2026-04-11 08:57:59 -06:00

48 lines
2.1 KiB
Plaintext

/obj/item/crafting_conversion_kit
name = "base conversion kit"
desc = "It's a set of parts, for something. This shouldn't be here, and you should probably throw this away, since it's not going to be very useful."
icon = 'icons/obj/storage/box.dmi'
icon_state = "secbox"
// the inhands are just what the box uses
inhand_icon_state = "syringe_kit"
lefthand_file = 'icons/mob/inhands/equipment/medical_lefthand.dmi'
righthand_file = 'icons/mob/inhands/equipment/medical_righthand.dmi'
drop_sound = 'sound/items/handling/component_drop.ogg'
pickup_sound = 'sound/items/handling/component_pickup.ogg'
/obj/item/crafting_conversion_kit/mosin_pro
name = "\improper Xhihao 'Rengo' rifle conversion kit"
desc = "All the parts you need to make a 'Rengo' rifle, outside of the parts that make the gun actually a gun. \
It looks like this stuff could fit on an old Sakhno rifle, if only you had one of those around."
icon = 'modular_skyrat/modules/modular_weapons/icons/obj/company_and_or_faction_based/cases.dmi'
icon_state = "xhihao_conversion_kit"
/datum/crafting_recipe/mosin_pro
name = "Sakhno to Xhihao 'Rengo' Conversion"
desc = "It's actually really easy to change the stock on your Sakhno. Anyone can do it. \
It takes roughly thirty seconds and a screwdriver."
result = /obj/item/gun/ballistic/rifle/boltaction/sporterized/empty
reqs = list(
/obj/item/gun/ballistic/rifle/boltaction = 1,
/obj/item/crafting_conversion_kit/mosin_pro = 1
)
steps = list(
"Empty the rifle",
"Leave the bolt open"
)
tool_behaviors = list(TOOL_SCREWDRIVER)
time = 30 SECONDS
category = CAT_WEAPON_RANGED
/datum/crafting_recipe/mosin_pro/New()
. = ..()
LAZYOR(blacklist, subtypesof(/obj/item/gun/ballistic/rifle/boltaction) - list(/obj/item/gun/ballistic/rifle/boltaction/surplus))
/datum/crafting_recipe/mosin_pro/check_requirements(mob/user, list/collected_requirements)
var/obj/item/gun/ballistic/rifle/boltaction/the_piece = collected_requirements[/obj/item/gun/ballistic/rifle/boltaction][1]
if(!the_piece.bolt_locked)
return FALSE
if(LAZYLEN(the_piece.magazine.stored_ammo))
return FALSE
return ..()