mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-02-08 23:39:32 +00:00
* Icon folder cleaning wave one * Fixe a merge conflict * Fixes some more merge conflicts * Fixes some modular icon paths * Fixes even more modular icon paths... Hopefully that's the last of them * Fixes some merge discrepencies * More merge issues * ok * not ok --------- Co-authored-by: YesterdaysPromise <122572637+YesterdaysPromise@users.noreply.github.com> Co-authored-by: Giz <vinylspiders@gmail.com>
55 lines
1.5 KiB
Plaintext
55 lines
1.5 KiB
Plaintext
/obj/structure/broken_flooring
|
|
name = "broken tiling"
|
|
desc = "A segment of broken flooring."
|
|
icon = 'icons/obj/fluff/brokentiling.dmi'
|
|
icon_state = "corner"
|
|
anchored = TRUE
|
|
density = FALSE
|
|
opacity = FALSE
|
|
plane = FLOOR_PLANE
|
|
layer = CATWALK_LAYER
|
|
|
|
/obj/structure/broken_flooring/Initialize(mapload)
|
|
. = ..()
|
|
return INITIALIZE_HINT_LATELOAD
|
|
|
|
/obj/structure/broken_flooring/LateInitialize()
|
|
. = ..()
|
|
var/turf/turf = get_turf(src)
|
|
if(!isplatingturf(turf)) // Render as trash if not on plating
|
|
plane = GAME_PLANE
|
|
layer = LOW_OBJ_LAYER
|
|
return
|
|
for(var/obj/object in turf)
|
|
if(object.flags_1 & INITIALIZED_1)
|
|
SEND_SIGNAL(object, COMSIG_OBJ_HIDE, UNDERFLOOR_VISIBLE)
|
|
CHECK_TICK
|
|
|
|
/obj/structure/broken_flooring/crowbar_act(mob/living/user, obj/item/I)
|
|
I.play_tool_sound(src, 80)
|
|
balloon_alert(user, "tile reclaimed")
|
|
new /obj/item/stack/tile/iron(get_turf(src))
|
|
qdel(src)
|
|
return TOOL_ACT_TOOLTYPE_SUCCESS
|
|
|
|
/obj/structure/broken_flooring/singular
|
|
icon_state = "singular"
|
|
|
|
/obj/structure/broken_flooring/pile
|
|
icon_state = "pile"
|
|
|
|
/obj/structure/broken_flooring/side
|
|
icon_state = "side"
|
|
|
|
/obj/structure/broken_flooring/corner
|
|
icon_state = "corner"
|
|
|
|
/obj/structure/broken_flooring/plating
|
|
icon_state = "plating"
|
|
|
|
MAPPING_DIRECTIONAL_HELPERS(/obj/structure/broken_flooring/singular, 0)
|
|
MAPPING_DIRECTIONAL_HELPERS(/obj/structure/broken_flooring/pile, 0)
|
|
MAPPING_DIRECTIONAL_HELPERS(/obj/structure/broken_flooring/side, 0)
|
|
MAPPING_DIRECTIONAL_HELPERS(/obj/structure/broken_flooring/corner, 0)
|
|
MAPPING_DIRECTIONAL_HELPERS(/obj/structure/broken_flooring/plating, 0)
|