mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-17 18:13:34 +01:00
Merge pull request #552 from ZomgPonies/table
Balancing out tableclimbing
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
/obj/structure
|
||||
icon = 'icons/obj/structures.dmi'
|
||||
var/climbable
|
||||
var/mob/climber
|
||||
|
||||
/obj/structure/blob_act()
|
||||
if(prob(50))
|
||||
@@ -73,20 +74,26 @@
|
||||
if(S && S.density) return
|
||||
|
||||
usr.visible_message("<span class='warning'>[user] starts climbing onto \the [src]!</span>")
|
||||
|
||||
climber = user
|
||||
if(!do_after(user,50))
|
||||
climber = null
|
||||
return
|
||||
|
||||
if (!can_touch(user) || !climbable)
|
||||
climber = null
|
||||
return
|
||||
|
||||
S = locate() in T.contents
|
||||
if(S && S.density) return
|
||||
if(S && S.density)
|
||||
climber = null
|
||||
return
|
||||
|
||||
usr.loc = get_turf(src)
|
||||
if (get_turf(user) == get_turf(src))
|
||||
usr.visible_message("<span class='warning'>[user] climbs onto \the [src]!</span>")
|
||||
|
||||
climber = null
|
||||
|
||||
/obj/structure/proc/structure_shaken()
|
||||
|
||||
for(var/mob/living/M in get_turf(src))
|
||||
|
||||
@@ -307,6 +307,9 @@
|
||||
destroy()
|
||||
else
|
||||
..()
|
||||
if(climber)
|
||||
climber.Weaken(2)
|
||||
climber.visible_message("<span class='warning'>[climber.name] has been knocked off the table", "You've been knocked off the table", "You see [climber.name] get knocked off the table</span>")
|
||||
|
||||
/obj/structure/table/attack_tk() // no telehulk sorry
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user