(Ready) Clockwork Cult Rework: Proof-of-concept
This commit is contained in:
committed by
CitadelStationBot
parent
b51e4457f5
commit
e575bd6685
@@ -128,8 +128,7 @@
|
||||
. = ..()
|
||||
drop_x = x
|
||||
drop_y = y
|
||||
if(z+1 <= world.maxz)
|
||||
drop_z = z+1
|
||||
drop_z = z - 1
|
||||
var/turf/T = locate(drop_x, drop_y, drop_z)
|
||||
T.visible_message("<span class='boldwarning'>The ceiling gives way!</span>")
|
||||
playsound(T, 'sound/effects/break_stone.ogg', 50, 1)
|
||||
|
||||
@@ -142,22 +142,25 @@
|
||||
name = "clockwork floor"
|
||||
desc = "Tightly-pressed brass tiles. They emit minute vibration."
|
||||
icon_state = "plating"
|
||||
var/uses_overlay = TRUE
|
||||
var/obj/effect/clockwork/overlay/floor/realappearence
|
||||
|
||||
/turf/open/floor/clockwork/Initialize()
|
||||
. = ..()
|
||||
new /obj/effect/temp_visual/ratvar/floor(src)
|
||||
new /obj/effect/temp_visual/ratvar/beam(src)
|
||||
realappearence = new /obj/effect/clockwork/overlay/floor(src)
|
||||
realappearence.linked = src
|
||||
change_construction_value(1)
|
||||
if(uses_overlay)
|
||||
new /obj/effect/temp_visual/ratvar/floor(src)
|
||||
new /obj/effect/temp_visual/ratvar/beam(src)
|
||||
realappearence = new /obj/effect/clockwork/overlay/floor(src)
|
||||
realappearence.linked = src
|
||||
change_construction_value(1)
|
||||
|
||||
/turf/open/floor/clockwork/Destroy()
|
||||
STOP_PROCESSING(SSobj, src)
|
||||
change_construction_value(-1)
|
||||
if(realappearence)
|
||||
qdel(realappearence)
|
||||
realappearence = null
|
||||
if(uses_overlay)
|
||||
change_construction_value(-1)
|
||||
if(realappearence)
|
||||
qdel(realappearence)
|
||||
realappearence = null
|
||||
return ..()
|
||||
|
||||
/turf/open/floor/clockwork/ReplaceWithLattice()
|
||||
@@ -217,6 +220,12 @@
|
||||
animate(src, color = previouscolor, time = 8)
|
||||
addtimer(CALLBACK(src, /atom/proc/update_atom_colour), 8)
|
||||
|
||||
/turf/open/floor/clockwork/reebe
|
||||
name = "cogplate"
|
||||
desc = "Warm brass plating. You can feel it gently vibrating, as if machinery is on the other side."
|
||||
icon_state = "reebe"
|
||||
baseturf = /turf/open/floor/clockwork/reebe
|
||||
uses_overlay = FALSE
|
||||
|
||||
/turf/open/floor/bluespace
|
||||
slowdown = -1
|
||||
|
||||
@@ -56,7 +56,6 @@
|
||||
sheet_amount = 1
|
||||
girder_type = /obj/structure/destructible/clockwork/wall_gear
|
||||
var/obj/effect/clockwork/overlay/wall/realappearence
|
||||
var/obj/structure/destructible/clockwork/cache/linkedcache
|
||||
|
||||
/turf/closed/wall/clockwork/Initialize()
|
||||
..()
|
||||
@@ -68,13 +67,10 @@
|
||||
|
||||
/turf/closed/wall/clockwork/examine(mob/user)
|
||||
..()
|
||||
if((is_servant_of_ratvar(user) || isobserver(user)) && linkedcache)
|
||||
if((is_servant_of_ratvar(user) || isobserver(user)))
|
||||
to_chat(user, "<span class='brass'>It is linked to a Tinkerer's Cache, generating components!</span>")
|
||||
|
||||
/turf/closed/wall/clockwork/Destroy()
|
||||
if(linkedcache)
|
||||
linkedcache.linkedwall = null
|
||||
linkedcache = null
|
||||
change_construction_value(-5)
|
||||
if(realappearence)
|
||||
qdel(realappearence)
|
||||
|
||||
Reference in New Issue
Block a user