Ports "Fixes powernet avail checks"

This commit is contained in:
Ghommie
2019-12-12 17:35:35 +01:00
parent f637e1e060
commit bc2e6a7f9b
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -217,9 +217,9 @@ By design, d1 is the smallest direction and d2 is the highest
else
return 0
/obj/structure/cable/proc/avail()
/obj/structure/cable/proc/avail(amount)
if(powernet)
return powernet.avail
return amount ? powernet.avail >= amount : powernet.avail
else
return 0