Files
36c0549bce Removes guncases from Skyrat cargo (#3122)
## About The Pull Request
What it says on the tin. These gun cases can be used to store a massive
amount of ammo.

## Why It's Good For The Game
Hitting the ammo economy of ballistic weapons approaching the removal,
feel like this is a small change that will have a big impact.

## Proof Of Testing
Compiles, currently testing

<details>
<summary>Screenshots/Videos</summary>

</details>

## Changelog

🆑 ReturnToZender
balance: Cargo-ordered weapons no longer come in gun cases. Gun cases
are now bulky, and cannot fit in backpacks.
del: Armadyne corporate security no longer come with Wespe cases on top
of their issued guns
del: DS-2 Mining Officer (not the Persistence, DS-2) no longer has a
Makarov.
/🆑

---------

Co-authored-by: Waterpig <49160555+Majkl-J@users.noreply.github.com>
2025-03-22 21:24:39 +02:00

71 lines
1.8 KiB
Plaintext

/*
* GUNSET BOXES
*/
/obj/item/storage/toolbox/guncase/skyrat
desc = "A thick gun case with foam inserts laid out to fit a weapon, magazines, and gear securely."
icon = 'modular_skyrat/modules/modular_weapons/icons/obj/gunsets.dmi'
icon_state = "guncase"
worn_icon = 'modular_skyrat/modules/modular_weapons/icons/mob/worn/cases.dmi'
worn_icon_state = "darkcase"
slot_flags = ITEM_SLOT_BACK
material_flags = NONE
/// Is the case visually opened or not
var/opened = FALSE
/obj/item/storage/toolbox/guncase/skyrat/Initialize(mapload)
. = ..()
atom_storage.max_total_storage = 14 // Technically means you could fit multiple large guns in here but its a case you cant backpack anyways so what it do
atom_storage.max_slots = 6 // We store some extra items in these so lets make a little extra room
/obj/item/storage/toolbox/guncase/skyrat/update_icon()
. = ..()
if(opened)
icon_state = "[initial(icon_state)]-open"
else
icon_state = initial(icon_state)
/obj/item/storage/toolbox/guncase/skyrat/click_alt(mob/user)
opened = !opened
update_icon()
return CLICK_ACTION_SUCCESS
/obj/item/storage/toolbox/guncase/skyrat/attack_self(mob/user)
. = ..()
opened = !opened
update_icon()
// Empty guncase
/obj/item/storage/toolbox/guncase/skyrat/empty
/obj/item/storage/toolbox/guncase/skyrat/empty/PopulateContents()
return
// Small case for pistols and whatnot
/obj/item/storage/toolbox/guncase/skyrat/pistol
name = "small gun case"
icon_state = "guncase_s"
slot_flags = NONE
w_class = WEIGHT_CLASS_BULKY
/obj/item/storage/toolbox/guncase/skyrat/pistol/Initialize(mapload)
. = ..()
atom_storage.max_specific_storage = WEIGHT_CLASS_NORMAL
// Empty pistol case
/obj/item/storage/toolbox/guncase/skyrat/pistol/empty
/obj/item/storage/toolbox/guncase/skyrat/pistol/empty/PopulateContents()
return