mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 22:19:30 +01:00
Balancing out tableclimbing.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user