Balancing out tableclimbing.

This commit is contained in:
Mandurrrh
2015-03-01 20:53:22 -05:00
parent 14d5b559c7
commit 9013a8d0a2
@@ -27,6 +27,7 @@
var/busy = 0
var/buildstackamount = 1
var/framestackamount = 2
var/mob/tableclimber
/obj/structure/table/New()
..()
@@ -219,6 +220,10 @@
/obj/structure/table/attack_hand(mob/living/user)
user.changeNext_move(CLICK_CD_MELEE)
if(tableclimber)
tableclimber.Stun(2)
visible_message("You've been knocked off the table!")
/obj/structure/table/attack_tk() // no telehulk sorry
return
@@ -383,6 +388,7 @@
var/climb_time = 20
if(user.restrained()) //Table climbing takes twice as long when restrained.
climb_time *= 2
tableclimber = user
if(do_mob(user, user, climb_time))
if(src.loc) //Checking if table has been destroyed
user.pass_flags += PASSTABLE
@@ -393,6 +399,7 @@
add_logs(user, src, "climbed onto")
user.Stun(2)
return 1
tableclimber = null
return 0