From a11b7103a7ee0889e3db5ae44b890a43fcd65a6b Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Thu, 14 Mar 2024 00:32:43 +0100 Subject: [PATCH] [MIRROR] [NO GBP] The museum piggy bank now spawns with at least 400 creds in it. (#26850) * [NO GBP] The museum piggy bank now spawns with at least 400 creds in it. (#81895) ## About The Pull Request Used the wrong operator in a control statement. ## Why It's Good For The Game Title. ## Changelog :cl: fix: The museum piggy bank now spawns with at least 400 creds in it. /:cl: * [NO GBP] The museum piggy bank now spawns with at least 400 creds in it. --------- Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com> --- code/game/objects/items/piggy_bank.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/objects/items/piggy_bank.dm b/code/game/objects/items/piggy_bank.dm index 6a9ee494a22..012ff91b021 100644 --- a/code/game/objects/items/piggy_bank.dm +++ b/code/game/objects/items/piggy_bank.dm @@ -46,7 +46,7 @@ persistence_cb = CALLBACK(src, PROC_REF(save_cash)) SSticker.OnRoundend(persistence_cb) - if(initial_value & initial_value + calculate_dosh_amount() <= maximum_value) + if(initial_value && initial_value + calculate_dosh_amount() <= maximum_value) new /obj/item/holochip(src, initial_value) /obj/item/piggy_bank/proc/save_cash()