Sanity checks, miscellaneous bugfixes, failsafes.

Disposals no longer indiscriminately let items land inside it - the items have to have been thrown by someone.

The ongoing attempt to fix the thousands of runtimes plaguing the game.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3195 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
vageyenaman@gmail.com
2012-02-26 02:17:17 +00:00
parent 70424f3b07
commit 4eaf8e1d1a
9 changed files with 29 additions and 18 deletions
+5 -4
View File
@@ -288,13 +288,14 @@
return output
proc/remove_resources(var/obj/item/mecha_parts/part)
for(var/resource in part.construction_cost)
if(resource in src.resources)
src.resources[resource] -= get_resource_cost_w_coeff(part,resource)
if(istype(part, /obj/item/mecha_parts/part))
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))
if(istype(part, /obj/item/mecha_parts/part))
for(var/resource in part.construction_cost)
if(resource in src.resources)
if(src.resources[resource] < get_resource_cost_w_coeff(part,resource))
+2
View File
@@ -261,6 +261,8 @@ var/GLOBAL_RADIO_TYPE = 1 // radio type to use
channel = null
if (!istype(connection))
return
if (!connection)
return
+4
View File
@@ -496,6 +496,10 @@
usr << "\red You don't have the dexterity to do this!"
return
if(!istype(src, /turf/simulated/wall/r_wall))
return // this may seem stupid and redundant but apparently floors can call this attackby() proc, it was spamming shit up. -- Doohl
if (istype(W, /obj/item/weapon/weldingtool) && W:welding)
W:eyecheck(user)
var/turf/T = user.loc