mirror of
https://github.com/goonstation/goonstation-2020.git
synced 2026-07-12 23:52:20 +01:00
151 lines
3.2 KiB
Plaintext
151 lines
3.2 KiB
Plaintext
|
|
/obj/decal/tile_edge
|
|
name = "edge"
|
|
mouse_opacity = 0
|
|
density = 0
|
|
anchored = 1
|
|
icon = 'icons/obj/decals.dmi'
|
|
icon_state = "tile_edge"
|
|
layer = TURF_LAYER + 0.1 // it should basically be part of a turf
|
|
plane = PLANE_FLOOR // hence, they should be on the same plane!
|
|
var/merge_with_turf = 1
|
|
|
|
initialize()
|
|
if (src.merge_with_turf)
|
|
var/turf/T = get_turf(src)
|
|
if (!T)
|
|
return ..()
|
|
var/image/I = image(src.icon, T, src.icon_state, src.layer, src.dir)
|
|
I.appearance_flags = RESET_COLOR
|
|
if (src.color)
|
|
I.color = src.color
|
|
var/md5hasho = "tile_edge_[md5("[rand(1,10000)]_[rand(1,10000)]")]"
|
|
//world.log << md5hasho
|
|
if (T.UpdateOverlays(I, md5hasho))
|
|
qdel(src)
|
|
else
|
|
return ..()
|
|
else
|
|
return ..()
|
|
|
|
Move()
|
|
return 0
|
|
|
|
/obj/decal/tile_edge/stripe
|
|
name = "hazard stripe"
|
|
icon = 'icons/obj/hazard_stripes.dmi'
|
|
icon_state = "stripe-edge"
|
|
|
|
/obj/decal/tile_edge/stripe/big
|
|
icon_state = "bigstripe-edge"
|
|
|
|
/obj/decal/tile_edge/stripe/extra_big
|
|
icon_state = "xtra_bigstripe-edge"
|
|
|
|
/obj/decal/tile_edge/line
|
|
icon = 'icons/obj/line.dmi'
|
|
icon_state = "linefull"
|
|
|
|
white // the default white of these things is brighter than the white tiles, this color matches those
|
|
color = "#E4E4E4"
|
|
grey
|
|
color = "#8D8C8C"
|
|
black
|
|
color = "#474646"
|
|
red
|
|
color = "#BC6B72"
|
|
orange
|
|
color = "#E7C88C"
|
|
yellow
|
|
color = "#BC9F6B"
|
|
green
|
|
color = "#90B672"
|
|
blue
|
|
color = "#6CA3BB"
|
|
purple
|
|
color = "#AB8CB0"
|
|
|
|
/obj/decal/tile_edge/check
|
|
icon = 'icons/obj/hazard_stripes.dmi'
|
|
icon_state = "checkfull"
|
|
|
|
white // the default white of these things is brighter than the white tiles, this color matches those
|
|
color = "#E4E4E4"
|
|
grey
|
|
color = "#8D8C8C"
|
|
black
|
|
color = "#474646"
|
|
|
|
red
|
|
color = "#BC6B72"
|
|
orange
|
|
color = "#E7C88C"
|
|
yellow
|
|
color = "#BC9F6B"
|
|
green
|
|
color = "#90B672"
|
|
blue
|
|
color = "#6CA3BB"
|
|
purple
|
|
color = "#AB8CB0"
|
|
|
|
/obj/decal/tile_edge/carpet
|
|
name = "carpet"
|
|
icon = 'icons/obj/hazard_stripes.dmi'
|
|
icon_state = "rugfull"
|
|
|
|
/obj/decal/tile_edge/carpet/fancy
|
|
icon_state = "frugfull"
|
|
|
|
/obj/decal/tile_edge/flowers // not really a edge thing but uh I want it to merge with the turf, so. ye. we doin this.
|
|
name = "flowers"
|
|
icon = 'icons/obj/decoration.dmi'
|
|
icon_state = "flowers1"
|
|
anchored = 1
|
|
|
|
New()
|
|
src.icon_state = "flowers[rand(1,4)]"
|
|
src.dir = pick(cardinal)
|
|
..()
|
|
|
|
/obj/decal/stage_edge
|
|
name = "stage"
|
|
icon = 'icons/obj/decals.dmi'
|
|
icon_state = "curtainthing"
|
|
density = 1
|
|
anchored = 1
|
|
dir = NORTH
|
|
event_handler_flags = USE_FLUID_ENTER | USE_CHECKEXIT | USE_CANPASS
|
|
|
|
CanPass(atom/movable/mover, turf/target, height=0, air_group=0)
|
|
if (istype(mover, /obj/projectile))
|
|
return 1
|
|
if (get_dir(loc, target) == dir)
|
|
return !density
|
|
else
|
|
return 1
|
|
|
|
CheckExit(atom/movable/O as mob|obj, target as turf)
|
|
if (!src.density)
|
|
return 1
|
|
if (istype(O, /obj/projectile))
|
|
return 1
|
|
if (get_dir(O.loc, target) == src.dir)
|
|
return 0
|
|
return 1
|
|
|
|
/obj/decal/stage_edge/alt
|
|
name = "edge"
|
|
icon_state = "edge2"
|
|
|
|
//Special Manta bar decoration that goes on the floor, shoving it here since it has no better place.
|
|
/obj/decal/risingtidebar
|
|
name = "The Rising Tide"
|
|
anchored = 2
|
|
desc = "Follow the anchor to reach The Rising Tide bar!"
|
|
bound_height = 64
|
|
bound_width = 32
|
|
icon = 'icons/obj/32x64.dmi'
|
|
icon_state = "risingtide"
|
|
|