Skip to content

Commit

Permalink
Add WO check to prevent unstocking groundside vendors.
Browse files Browse the repository at this point in the history
  • Loading branch information
Drulikar committed May 2, 2024
1 parent 6096c25 commit 219a08f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/game/machinery/vending/vendor_types/medical.dm
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,8 @@
// If this is groundside and isn't dynamically changing we will spawn with stock randomly removed from it
if(vend_flags & VEND_STOCK_DYNAMIC)
return
if(Check_WO())
return
var/turf/location = get_turf(src)
if(location && is_ground_level(location.z))
random_unstock()
Expand Down

0 comments on commit 219a08f

Please sign in to comment.