Aliens and monkeys can now climb structures

This commit is contained in:
Nerd Lord
2016-04-21 08:59:47 -04:00
parent ec1f1db557
commit fb87a435d1
2 changed files with 12 additions and 3 deletions
+9 -3
View File
@@ -60,7 +60,7 @@
. = ..()
if(!climbable)
return
if(ismob(O) && user == O && ishuman(user))
if(ismob(O) && user == O && iscarbon(user))
if(user.canmove)
climb_structure(user)
return
@@ -81,6 +81,8 @@
var/adjusted_climb_time = climb_time
if(user.restrained()) //climbing takes twice as long when restrained.
adjusted_climb_time *= 2
if(istype(user, /mob/living/carbon/alien))
adjusted_climb_time *= 0.25 //aliens are terrifyingly fast
structureclimber = user
if(do_mob(user, user, adjusted_climb_time))
if(src.loc) //Checking if structure has been destroyed
@@ -92,8 +94,12 @@
user.Stun(climb_stun)
else
user << "<span class='warning'>You fail to climb onto [src].</span>"
density = 1
structureclimber = null
return 0
density = 1
structureclimber = null
return 1
structureclimber = null
return ..()
else
structureclimber = null
return 0