Merge pull request #2538 from Neerti/9/24/2016_port_of_port_of_circuits

Ports the Port of Integrated Circuits
This commit is contained in:
Anewbe
2016-09-24 20:40:44 -05:00
committed by GitHub
19 changed files with 898 additions and 1095 deletions
@@ -630,3 +630,14 @@
return ITEMSIZE_COST_HUGE
else
return ITEMSIZE_COST_NO_CONTAINER
/obj/item/weapon/storage/proc/make_exact_fit()
storage_slots = contents.len
can_hold.Cut()
max_w_class = 0
max_storage_space = 0
for(var/obj/item/I in src)
can_hold[I.type]++
max_w_class = max(I.w_class, max_w_class)
max_storage_space += I.get_storage_cost()