Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
apply drulikar modification

Co-authored-by: Drathek <[email protected]>
  • Loading branch information
Huffie56 and Drulikar committed Aug 18, 2023
1 parent cfccaa8 commit b258d59
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/game/objects/items/storage/belt.dm
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
return FALSE
return ..()

/obj/item/storage/belt/gun/flaregun/has_room(obj/item/W as obj, W_class_override = null)
/obj/item/storage/belt/gun/flaregun/has_room(obj/item/new_item, W_class_override = null)

if(istype(W, /obj/item/device/flashlight/flare) && length(holstered_guns) < 1 && length(contents) >= (storage_slots-1))
if(istype(new_item, /obj/item/device/flashlight/flare) && length(holstered_guns) < 1 && length(contents) >= (storage_slots-1))
return FALSE //No slot open because gun in holster.
return ..()

Expand Down Expand Up @@ -773,7 +773,7 @@
for(var/i = 1 to storage_slots)
new /obj/item/weapon/throwing_knife(src)

/obj/item/storage/belt/knifepouch/_item_insertion(obj/item/W, prevent_warning = FALSE)
/obj/item/storage/belt/knifepouch/_item_insertion(obj/item/new_item, prevent_warning = FALSE)
..()
playsound(src, 'sound/weapons/gun_shotgun_shell_insert.ogg', 15, TRUE)

Expand Down

0 comments on commit b258d59

Please sign in to comment.