extreme optimization project to maybe fix game
This commit is contained in:
@@ -210,13 +210,9 @@
|
||||
|
||||
// Priority 3: use internals tank.
|
||||
var/obj/item/tank/I = owner.internal
|
||||
if(I && I.air_contents && I.air_contents.total_moles() > num)
|
||||
var/datum/gas_mixture/removed = I.air_contents.remove(num)
|
||||
if(removed.total_moles() > 0.005)
|
||||
T.assume_air(removed)
|
||||
return 1
|
||||
else
|
||||
T.assume_air(removed)
|
||||
if(I && I.air_contents && I.air_contents.total_moles() >= num)
|
||||
T.assume_air_moles(I.air_contents, num)
|
||||
return 1
|
||||
|
||||
toggle(silent = TRUE)
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user