Something somethig sec followup (#29536)

* fuck

* fixes my stuff
This commit is contained in:
projectkepler-RU
2024-08-22 23:50:57 +00:00
committed by GitHub
parent 2b5d19b579
commit f3e2f2b2f7
7 changed files with 17 additions and 5 deletions
@@ -26,6 +26,7 @@
projectile_type = /obj/projectile/bullet/caflechette
custom_materials = AMMO_MATS_SHOTGUN_FLECH
advanced_print_req = TRUE
can_be_printed = TRUE
/obj/item/ammo_casing/caflechette/Initialize(mapload)
. = ..()
@@ -36,6 +36,8 @@
icon = 'modular_skyrat/modules/modular_weapons/icons/obj/company_and_or_faction_based/romulus_technology/ammo.dmi'
icon_state = "cmg_penetrator"
max_ammo = 25
multitype = TRUE
multiple_sprites = AMMO_BOX_FULL_EMPTY
/obj/item/ammo_box/magazine/caflechette/ripper
name = "flechette ripper box"
@@ -156,7 +156,10 @@
var/unfolded_spread = 5
/// what's our spread with a folded stock (see above comment)?
var/folded_spread = 20
/// Do we have any recoil if it's folded?
var/folded_recoil = 5
///Do we lose any recoil when it's not?
var/unfolded_recoil = 0
/obj/item/gun/ballistic/automatic/rom_flech/examine(mob/user)
. = ..()
. += span_notice("<b>Alt-click</b> to [folded ? "extend" : "collapse"] the stock.")
@@ -185,8 +188,12 @@
/obj/item/gun/ballistic/automatic/rom_flech/proc/update_fold_stats()
if(folded)
spread = folded_spread
w_class = WEIGHT_CLASS_NORMAL
recoil = folded_recoil
else
spread = unfolded_spread
w_class = WEIGHT_CLASS_BULKY
recoil = unfolded_recoil
update_icon()
/obj/item/gun/ballistic/automatic/rom_flech/update_overlays()
@@ -228,6 +235,8 @@
pin = /obj/item/firing_pin
unfolded_spread = 0
folded_spread = 7
folded_recoil = 2
unfolded_recoil = 0
/obj/item/gun/ballistic/automatic/rom_flech/blueshield/empty
spawnwithmagazine = FALSE