mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
Temporary fix for exosuit fabricators not working.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3200 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -288,14 +288,14 @@
|
||||
return output
|
||||
|
||||
proc/remove_resources(var/obj/item/mecha_parts/part)
|
||||
if(istype(part, /obj/item/mecha_parts/part))
|
||||
if(istype(part, /obj/item))
|
||||
for(var/resource in part.construction_cost)
|
||||
if(resource in src.resources)
|
||||
src.resources[resource] -= get_resource_cost_w_coeff(part,resource)
|
||||
return
|
||||
|
||||
proc/check_resources(var/obj/item/mecha_parts/part)
|
||||
if(istype(part, /obj/item/mecha_parts/part))
|
||||
if(istype(part, /obj/item))
|
||||
for(var/resource in part.construction_cost)
|
||||
if(resource in src.resources)
|
||||
if(src.resources[resource] < get_resource_cost_w_coeff(part,resource))
|
||||
|
||||
Reference in New Issue
Block a user