Files
Bubberstation/code/game/objects/structures/broken_flooring.dm
YesterdaysPromise a373b4cb08 Icon folder cleaning wave one (#76703)
## About The Pull Request

Due to a mental breakdown caused by unfathomable abomination that is
icons folder, I swore to myself to one day clean it. Today is kind of
that day. Been at it for around 6, you gotta understand I need a rest. I
tracked most changes in descriptions of commits if you are looking for
details.

## Why It's Good For The Game

Saner spriters make better sprites. And also, just helps keep track of
things.

## Changelog

🆑
image: added sprites for different variants of scrolls.
image: modified couple posters with ghost pixels.
/🆑

---------

Co-authored-by: OrionTheFox <76465278+OrionTheFox@users.noreply.github.com>
2023-07-11 10:50:10 -07:00

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)