Skip to content

Commit

Permalink
Update cmg.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
Arceniu authored Nov 5, 2024
1 parent d030a7d commit 1a96b84
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions modular_ss220/modules/return_prs/sec_haul/code/cmg.dm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
0/**
* The CMG-2.
*
* It sure does exist. Comes with a projectile damage malus for some sense of parity with the old 9mm Peacekeeper round.
Expand Down Expand Up @@ -48,10 +48,8 @@
. = ..()
. += span_notice("<b>Ctrl-click</b> to [folded ? "extend" : "collapse"] the stock.")

/obj/item/gun/ballistic/automatic/cmg/proc/click_ctrl(mob/user)
if(!user.is_holding(src))
return
if(item_flags & IN_STORAGE)
/obj/item/gun/ballistic/automatic/cmg/click_ctrl(mob/user)
if((!user.is_holding(src)) || (item_flags & IN_STORAGE))
return
toggle_stock(user)

Expand Down

0 comments on commit 1a96b84

Please sign in to comment.