Skip to content

Commit

Permalink
fix the safety + misfiring
Browse files Browse the repository at this point in the history
  • Loading branch information
Erikafox committed Oct 12, 2024
1 parent 0b620b7 commit 6016e7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/projectiles/gun.dm
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,7 @@
// for guns firing on their own without a user
/obj/item/gun/proc/discharge(cause, seek_chance = 10)
var/target
if(!safety)
if(!safety && has_safety)
// someone is very unlucky and about to be shot
if(prob(seek_chance))
for(var/mob/living/target_mob in range(6, get_turf(src)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@
manufacturer = MANUFACTURER_IMPORT
slot_flags = ITEM_SLOT_BACK
has_safety = FALSE
safety = FALSE


/obj/item/gun/ballistic/rocketlauncher/oneshot/Initialize()
Expand Down

0 comments on commit 6016e7b

Please sign in to comment.