Fixes unremovable components counting towards overall capacity (#60528)

BCIs are no longer 6 slot instead of 10
This commit is contained in:
SmArtKar
2021-07-30 17:54:55 +03:00
committed by GitHub
parent 7bb90d81c4
commit f43932a2bb
+1 -1
View File
@@ -159,7 +159,7 @@
source.balloon_alert(attacker, "there is already a circuitboard inside!")
return
if(length(logic_board.attached_components) > capacity)
if(length(logic_board.attached_components) - length(unremovable_circuit_components) > capacity)
source.balloon_alert(attacker, "this is too large to fit into [parent]!")
return