mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13.git
synced 2026-08-31 00:27:23 +01:00
push
This commit is contained in:
@@ -47,14 +47,14 @@
|
||||
if(BURN)
|
||||
playsound(src.loc, 'sound/items/welder.ogg', 100, 1)
|
||||
|
||||
/obj/hitby(atom/movable/AM, skipcatch, hitpush, blocked, datum/thrownthing/throwingdatum)
|
||||
/obj/hitby(atom/movable/hit_by, skipcatch, hitpush, blocked, datum/thrownthing/throwingdatum)
|
||||
..()
|
||||
var/throwdamage = AM.throwforce
|
||||
if(isobj(AM))
|
||||
var/obj/O = AM
|
||||
if(O.damtype == STAMINA)
|
||||
var/throwdamage = hit_by.throwforce
|
||||
if(isobj(hit_by))
|
||||
var/obj/as_obj = hit_by
|
||||
if(as_obj.damtype == STAMINA)
|
||||
throwdamage = 0
|
||||
take_damage(throwdamage, BRUTE, MELEE, 1, get_dir(src, AM))
|
||||
take_damage(throwdamage, BRUTE, MELEE, 1, get_dir(src, hit_by))
|
||||
|
||||
/obj/ex_act(severity, target, origin)
|
||||
if(resistance_flags & INDESTRUCTIBLE)
|
||||
|
||||
@@ -17,9 +17,9 @@
|
||||
|
||||
/obj/structure/chair/examine(mob/user)
|
||||
. = ..()
|
||||
. += "<span class='notice'>It's held together by a couple of <b>bolts</b>.</span>"
|
||||
. += span_notice("It's held together by a couple of <b>bolts</b>.")
|
||||
if(!has_buckled_mobs())
|
||||
. += "<span class='notice'>Drag your sprite to sit in it.</span>"
|
||||
. += span_notice("Drag your sprite to sit in it.")
|
||||
|
||||
/obj/structure/chair/Initialize(mapload)
|
||||
. = ..()
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
/obj/structure/chair/ComponentInitialize()
|
||||
. = ..()
|
||||
AddComponent(/datum/component/simple_rotation,ROTATION_ALTCLICK | ROTATION_CLOCKWISE, CALLBACK(src, PROC_REF(can_user_rotate),CALLBACK(src), PROC_REF(can_be_rotated)),null)
|
||||
AddComponent(/datum/component/simple_rotation, ROTATION_ALTCLICK | ROTATION_CLOCKWISE, CALLBACK(src, PROC_REF(can_user_rotate)), CALLBACK(src, PROC_REF(can_be_rotated)), null)
|
||||
|
||||
/obj/structure/chair/proc/can_be_rotated(mob/user)
|
||||
return TRUE
|
||||
|
||||
Reference in New Issue
Block a user