Skip to content

Commit

Permalink
live shotgun reaction, somewhat - buyable doublebarrel/.38 revolver, …
Browse files Browse the repository at this point in the history
…12g revolver now has reload CD (#1525)

* liberation of singlepacks, reloads are fine ig

* wait i forgot to push this

---------

Co-authored-by: Hatterhat <[email protected]>
  • Loading branch information
2 people authored and StealsThePRs committed Mar 28, 2024
1 parent ce6dafa commit 5fa482a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 0 additions & 2 deletions modular_nova/master_files/code/modules/cargo/goodies.dm
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

/datum/supply_pack/goody/mars_single
access_view = FALSE
special = TRUE

/datum/supply_pack/goody/Survivalknives_single
access_view = FALSE
Expand Down Expand Up @@ -46,5 +45,4 @@
special = TRUE

/datum/supply_pack/goody/double_barrel
special = TRUE
access_view = FALSE
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,21 @@
*/

/obj/item/gun/ballistic/revolver
box_reload_delay = CLICK_CD_RAPID // honestly this is negligible because of the inherent delay of having to switch hands
box_reload_delay = NONE // honestly this is negligible because of the inherent delay of having to switch hands

/obj/item/gun/ballistic/revolver/shotgun_revolver
box_reload_delay = CLICK_CD_MELEE // unfortunately this is a shotgun

/obj/item/gun/ballistic/rifle/boltaction // slightly less negligible than a revolver, since this is mostly for fairly powerful but crew-accessible stuff like mosins
box_reload_delay = CLICK_CD_RANGE
box_reload_delay = NONE

/// Reloading with ammo box can incur penalty with some guns
/obj/item/gun/ballistic/proc/handle_box_reload(mob/user, obj/item/ammo_box/ammobox, num_loaded)
var/box_load = FALSE // if you're reloading with an ammo box, inflicts a cooldown
if(istype(ammobox, /obj/item/ammo_box) && box_reload_penalty)
if(istype(ammobox, /obj/item/ammo_box) && box_reload_penalty && box_reload_delay)
box_load = TRUE
user.changeNext_move(box_reload_delay) // cooldown to simulate having to fumble for another round
balloon_alert(user, "reload encumbered!")
balloon_alert(user, "reload encumbered ([box_reload_delay * 0.1]s)!")
to_chat(user, span_notice("You load [num_loaded] [cartridge_wording]\s into [src][box_load ? ", but it takes some extra effort" : ""]."))

/obj/effect/temp_visual/dir_setting/firing_effect
Expand Down

0 comments on commit 5fa482a

Please sign in to comment.