From 39ffa4e974a6033180fec5dc504413e7935d54f2 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Tue, 10 Oct 2023 20:04:27 +0200 Subject: [PATCH] [MIRROR] count station food verb counts station food [MDB IGNORE] (#24235) * count station food verb counts station food (#78864) ## About The Pull Request it checked for food not on the station ## Why It's Good For The Game bug bad ## Changelog :cl: fix: count station food verb now counts food only onstation /:cl: * count station food verb counts station food --------- Co-authored-by: jimmyl <70376633+mc-oofert@users.noreply.github.com> --- code/modules/admin/verbs/mapping.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/admin/verbs/mapping.dm b/code/modules/admin/verbs/mapping.dm index 64d2d5831a6..5f61a508b36 100644 --- a/code/modules/admin/verbs/mapping.dm +++ b/code/modules/admin/verbs/mapping.dm @@ -422,7 +422,7 @@ GLOBAL_VAR_INIT(say_disabled, FALSE) var/list/foodcount = list() for(var/obj/item/food/fuck_me in world) var/turf/location = get_turf(fuck_me) - if(!location || SSmapping.level_trait(location.z, ZTRAIT_STATION)) + if(!location || !SSmapping.level_trait(location.z, ZTRAIT_STATION)) continue LAZYADDASSOC(foodcount, fuck_me.type, 1) @@ -445,7 +445,7 @@ GLOBAL_VAR_INIT(say_disabled, FALSE) var/list/stackcount = list() for(var/obj/item/stack/fuck_me in world) var/turf/location = get_turf(fuck_me) - if(!location || SSmapping.level_trait(location.z, ZTRAIT_STATION)) + if(!location || !SSmapping.level_trait(location.z, ZTRAIT_STATION)) continue LAZYADDASSOC(stackcount, fuck_me.type, fuck_me.amount)