mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 02:24:11 +01:00
Reduce lines by removing blank lines added by PJ's script
This commit is contained in:
@@ -69,12 +69,10 @@
|
||||
for(var/obj/O in range(0, src))
|
||||
if(O.density == 1 && O != src && !istype(O, /obj/machinery/door/window)) //Ignores windoors, as those already block climbing, otherwise a windoor on the opposite side of a table would prevent climbing.
|
||||
to_chat(user, "\red You cannot climb [src], as it is blocked by \a [O]!")
|
||||
|
||||
return
|
||||
for(var/turf/T in range(0, src))
|
||||
if(T.density == 1)
|
||||
to_chat(user, "\red You cannot climb [src], as it is blocked by \a [T]!")
|
||||
|
||||
return
|
||||
var/turf/T = src.loc
|
||||
if(!T || !istype(T)) return
|
||||
@@ -112,14 +110,12 @@
|
||||
M.Weaken(5)
|
||||
to_chat(M, "\red You topple as \the [src] moves under you!")
|
||||
|
||||
|
||||
if(prob(25))
|
||||
|
||||
var/damage = rand(15,30)
|
||||
var/mob/living/carbon/human/H = M
|
||||
if(!istype(H))
|
||||
to_chat(H, "\red You land heavily!")
|
||||
|
||||
M.adjustBruteLoss(damage)
|
||||
return
|
||||
|
||||
@@ -139,13 +135,11 @@
|
||||
|
||||
if(affecting)
|
||||
to_chat(M, "\red You land heavily on your [affecting.name]!")
|
||||
|
||||
affecting.take_damage(damage, 0)
|
||||
if(affecting.parent)
|
||||
affecting.parent.add_autopsy_data("Misadventure", damage)
|
||||
else
|
||||
to_chat(H, "\red You land heavily!")
|
||||
|
||||
H.adjustBruteLoss(damage)
|
||||
|
||||
H.UpdateDamageIcon()
|
||||
@@ -159,13 +153,11 @@
|
||||
return 0
|
||||
if (user.restrained() || user.buckled)
|
||||
to_chat(user, "<span class='notice'>You need your hands and legs free for this.</span>")
|
||||
|
||||
return 0
|
||||
if (user.stat || user.paralysis || user.sleeping || user.lying || user.weakened)
|
||||
return 0
|
||||
if (issilicon(user))
|
||||
to_chat(user, "<span class='notice'>You need hands for this.</span>")
|
||||
|
||||
return 0
|
||||
return 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user