Skip to content

Commit

Permalink
SM now comes in crates (#8306)
Browse files Browse the repository at this point in the history
* SM now comes in crates
Per issue #7994, quick check for SM shard and crates the order if SM is present in order

* Fix for always true
find() returns 0 if item is not found, not -1 apparently

---------

Co-authored-by: Eugene Shih <eugene.shih.1@gmail.com>
  • Loading branch information
null-Aurelian and nullAurelian committed Sep 15, 2023
1 parent 5f10574 commit f9d3804
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/controllers/subsystems/trade.dm
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ SUBSYSTEM_DEF(trade)
var/obj/structure/closet/secure_closet/personal/trade/C
var/count_of_all = collect_counts_from(shopList)
var/price_for_all = collect_price_for_list(shopList)
if(isnum(count_of_all) && count_of_all > 1)
if((isnum(count_of_all) && count_of_all > 1) || shopList.Find("/obj/machinery/power/supermatter") > 0)
C = senderBeacon.drop(/obj/structure/closet/secure_closet/personal/trade)
if(is_order)
C.locked = TRUE
Expand Down

0 comments on commit f9d3804

Please sign in to comment.