Skip to content

Commit

Permalink
doing it the easier way this time
Browse files Browse the repository at this point in the history
  • Loading branch information
morrowwolf committed Oct 28, 2023
1 parent 3cdfadf commit 3b24bbd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions code/game/machinery/vending/cm_vending.dm
Original file line number Diff line number Diff line change
Expand Up @@ -763,10 +763,9 @@ GLOBAL_LIST_EMPTY(vending_products)

/obj/structure/machinery/cm_vending/gear/Initialize()
. = ..()
if(length(list(z) & SSmapping.levels_by_trait(ZTRAIT_GROUND)))
if(z in SSmapping.levels_by_trait(ZTRAIT_GROUND))
malfunction()


/obj/structure/machinery/cm_vending/gear/ui_static_data(mob/user)
. = ..(user)
.["vendor_type"] = "gear"
Expand All @@ -786,7 +785,7 @@ GLOBAL_LIST_EMPTY(vending_products)

/obj/structure/machinery/cm_vending/clothing/Initialize()
. = ..()
if(length(list(z) & SSmapping.levels_by_trait(ZTRAIT_GROUND)))
if(z in SSmapping.levels_by_trait(ZTRAIT_GROUND))
malfunction()

/obj/structure/machinery/cm_vending/clothing/ui_static_data(mob/user)
Expand Down
6 changes: 3 additions & 3 deletions code/game/machinery/vending/vendor_types/requisitions.dm
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

/obj/structure/machinery/cm_vending/sorted/cargo_guns/Initialize()
. = ..()
if(length(list(z) & SSmapping.levels_by_trait(ZTRAIT_GROUND)))
if(z in SSmapping.levels_by_trait(ZTRAIT_GROUND))
malfunction()

/obj/structure/machinery/cm_vending/sorted/cargo_guns/vend_fail()
Expand Down Expand Up @@ -216,7 +216,7 @@

/obj/structure/machinery/cm_vending/sorted/cargo_ammo/Initialize()
. = ..()
if(length(list(z) & SSmapping.levels_by_trait(ZTRAIT_GROUND)))
if(z in SSmapping.levels_by_trait(ZTRAIT_GROUND))
malfunction()

/obj/structure/machinery/cm_vending/sorted/cargo_ammo/vend_fail()
Expand Down Expand Up @@ -343,7 +343,7 @@

/obj/structure/machinery/cm_vending/sorted/attachments/Initialize()
. = ..()
if(length(list(z) & SSmapping.levels_by_trait(ZTRAIT_GROUND)))
if(z in SSmapping.levels_by_trait(ZTRAIT_GROUND))
malfunction()

/obj/structure/machinery/cm_vending/sorted/attachments/vend_fail()
Expand Down

1 comment on commit 3b24bbd

@harryob
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you

Please sign in to comment.