mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 03:55:11 +01:00
[MIRROR] Makes the foodcart actually become full (#1768)
* Makes the foodcart actually become full (#55041) The chef's food cart can no longer store an infinite amount of food stuff. Oh also foodcarts support newfood now * Makes the foodcart actually become full Co-authored-by: ArcaneDefence <51932756+ArcaneDefence@users.noreply.github.com>
This commit is contained in:
@@ -76,6 +76,7 @@
|
||||
var/obj/item/S = O
|
||||
if(!user.transferItemToLoc(S, src))
|
||||
return
|
||||
food_stored++
|
||||
if(stored_food[sanitize(S.name)])
|
||||
stored_food[sanitize(S.name)]++
|
||||
else
|
||||
@@ -96,6 +97,7 @@
|
||||
if(!IS_EDIBLE(S))
|
||||
continue
|
||||
if(SEND_SIGNAL(T, COMSIG_TRY_STORAGE_TAKE, S, src))
|
||||
food_stored++
|
||||
if(stored_food[sanitize(S.name)])
|
||||
stored_food[sanitize(S.name)]++
|
||||
else
|
||||
@@ -120,6 +122,7 @@
|
||||
for(var/obj/O in contents)
|
||||
if(sanitize(O.name) == href_list["dispense"])
|
||||
O.forceMove(drop_location())
|
||||
food_stored--
|
||||
break
|
||||
log_combat(usr, src, "dispensed [O] from", null, "with [stored_food[href_list["dispense"]]] remaining")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user