mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 19:13:30 +01:00
Fixes epic fail with reinforced glass tables (#19914)
* really? * shove stun
This commit is contained in:
@@ -515,19 +515,19 @@
|
||||
smoothing_groups = list(SMOOTH_GROUP_REINFORCED_TABLES)
|
||||
canSmoothWith = list(SMOOTH_GROUP_REINFORCED_TABLES)
|
||||
|
||||
/obj/structure/table/reinforced/deconstruction_hints(mob/user) //look, it was either copy paste these 3 procs, or copy paste all of the glass stuff
|
||||
/obj/structure/table/glass/reinforced/deconstruction_hints(mob/user) //look, it was either copy paste these 4 procs, or copy paste all of the glass stuff
|
||||
if(deconstruction_ready)
|
||||
to_chat(user, "<span class='notice'>The top cover has been <i>welded</i> loose and the main frame's <b>bolts</b> are exposed.</span>")
|
||||
else
|
||||
to_chat(user, "<span class='notice'>The top cover is firmly <b>welded</b> on.</span>")
|
||||
|
||||
/obj/structure/table/reinforced/flip(direction)
|
||||
/obj/structure/table/glass/reinforced/flip(direction)
|
||||
if(!deconstruction_ready)
|
||||
return FALSE
|
||||
else
|
||||
return ..()
|
||||
|
||||
/obj/structure/table/reinforced/welder_act(mob/user, obj/item/I)
|
||||
/obj/structure/table/glass/reinforced/welder_act(mob/user, obj/item/I)
|
||||
. = TRUE
|
||||
if(!I.tool_use_check(user, 0))
|
||||
return
|
||||
@@ -536,6 +536,19 @@
|
||||
to_chat(user, "<span class='notice'>You [deconstruction_ready ? "strengthen" : "weaken"] the table.</span>")
|
||||
deconstruction_ready = !deconstruction_ready
|
||||
|
||||
/obj/structure/table/glass/reinforced/shove_impact(mob/living/target, mob/living/attacker)
|
||||
if(locate(/obj/structure/table) in get_turf(target))
|
||||
return FALSE
|
||||
var/pass_flags_cache = target.pass_flags
|
||||
target.pass_flags |= PASSTABLE
|
||||
if(target.Move(loc))
|
||||
. = TRUE
|
||||
target.Weaken(4 SECONDS)
|
||||
add_attack_logs(attacker, target, "pushed onto [src]", ATKLOG_ALL)
|
||||
else
|
||||
. = FALSE
|
||||
target.pass_flags = pass_flags_cache
|
||||
|
||||
/obj/structure/table/glass/reinforced/check_break(mob/living/M)
|
||||
if(has_gravity(M) && M.mob_size > MOB_SIZE_SMALL && (obj_integrity < (max_integrity / 2))) //big tables for big boys, only breaks under 50% hp
|
||||
table_shatter(M)
|
||||
|
||||
Reference in New Issue
Block a user