stop this nonsense
This commit is contained in:
@@ -198,12 +198,12 @@ By design, d1 is the smallest direction and d2 is the highest
|
||||
// shock the user with probability prb
|
||||
/obj/structure/cable/proc/shock(mob/user, prb, siemens_coeff = 1)
|
||||
if(!prob(prb))
|
||||
return 0
|
||||
return FALSE
|
||||
if (electrocute_mob(user, powernet, src, siemens_coeff))
|
||||
do_sparks(5, TRUE, src)
|
||||
return 1
|
||||
return TRUE
|
||||
else
|
||||
return 0
|
||||
return FALSE
|
||||
|
||||
/obj/structure/cable/singularity_pull(S, current_size)
|
||||
..()
|
||||
@@ -235,13 +235,13 @@ By design, d1 is the smallest direction and d2 is the highest
|
||||
if(powernet)
|
||||
return clamp(powernet.avail-powernet.load, 0, powernet.avail)
|
||||
else
|
||||
return 0
|
||||
return FALSE
|
||||
|
||||
/obj/structure/cable/proc/avail(amount)
|
||||
if(powernet)
|
||||
return amount ? powernet.avail >= amount : powernet.avail
|
||||
else
|
||||
return 0
|
||||
return FALSE
|
||||
|
||||
/obj/structure/cable/proc/add_delayedload(amount)
|
||||
if(powernet)
|
||||
@@ -251,13 +251,13 @@ By design, d1 is the smallest direction and d2 is the highest
|
||||
if(powernet)
|
||||
return clamp(powernet.newavail - powernet.delayedload, 0, powernet.newavail)
|
||||
else
|
||||
return 0
|
||||
return FALSE
|
||||
|
||||
/obj/structure/cable/proc/newavail()
|
||||
if(powernet)
|
||||
return powernet.newavail
|
||||
else
|
||||
return 0
|
||||
return FALSE
|
||||
|
||||
/////////////////////////////////////////////////
|
||||
// Cable laying helpers
|
||||
|
||||
Reference in New Issue
Block a user