Skip to content

Commit

Permalink
Reebe is fancier now (tgstation#31045)
Browse files Browse the repository at this point in the history
* Reebe is fancier now

* proper wall baseturf
  • Loading branch information
ChangelingRain authored and optimumtact committed Sep 29, 2017
1 parent 3fb8828 commit 5b73196
Show file tree
Hide file tree
Showing 12 changed files with 65,929 additions and 389 deletions.
66,177 changes: 65,835 additions & 342 deletions _maps/map_files/generic/City_of_Cogs.dmm

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions code/__DEFINES/layers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#define PLANE_SPACE_PARALLAX -90

#define GAME_PLANE 0
#define SPACE_LAYER 1.8
#define ABOVE_SPACE_LAYER 1.9
//#define TURF_LAYER 2 //For easy recordkeeping; this is a byond define
#define MID_TURF_LAYER 2.02
#define HIGH_TURF_LAYER 2.03
Expand Down
54 changes: 35 additions & 19 deletions code/game/objects/structures/lattice.dm
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,11 @@
return

/obj/structure/lattice/ratvar_act()
if(IsEven(x + y))
new /obj/structure/lattice/clockwork(loc)
else
new /obj/structure/lattice/clockwork/large(loc)
new /obj/structure/lattice/clockwork(loc)

/obj/structure/lattice/attackby(obj/item/C, mob/user, params)
if(resistance_flags & INDESTRUCTIBLE)
return
if(istype(C, /obj/item/wirecutters))
to_chat(user, "<span class='notice'>Slicing [name] joints ...</span>")
deconstruct()
Expand All @@ -45,7 +44,6 @@
qdel(src)

/obj/structure/lattice/singularity_pull(S, current_size)
..()
if(current_size >= STAGE_FOUR)
deconstruct()

Expand All @@ -55,22 +53,22 @@
icon = 'icons/obj/smooth_structures/lattice_clockwork.dmi'

/obj/structure/lattice/clockwork/Initialize(mapload)
canSmoothWith += /turf/open/indestructible/clock_spawn_room //list overrides are a terrible thing
. = ..()
ratvar_act()
if(z == ZLEVEL_CITYOFCOGS)
resistance_flags |= INDESTRUCTIBLE

/obj/structure/lattice/clockwork/ratvar_act()
if(IsOdd(x+y))
new /obj/structure/lattice/clockwork/large(loc) // deletes old one

/obj/structure/lattice/clockwork/large/Initialize(mapload)
. = ..()
icon = 'icons/obj/smooth_structures/lattice_clockwork_large.dmi'
pixel_x = -9
pixel_y = -9

/obj/structure/lattice/clockwork/large/ratvar_act()
if(IsEven(x + y))
new /obj/structure/lattice/clockwork(loc)
icon = 'icons/obj/smooth_structures/lattice_clockwork_large.dmi'
pixel_x = -9
pixel_y = -9
else
icon = 'icons/obj/smooth_structures/lattice_clockwork.dmi'
pixel_x = 0
pixel_y = 0
return TRUE

/obj/structure/lattice/catwalk
name = "catwalk"
Expand Down Expand Up @@ -99,11 +97,29 @@
/obj/structure/lattice/catwalk/clockwork
name = "clockwork catwalk"
icon = 'icons/obj/smooth_structures/catwalk_clockwork.dmi'
canSmoothWith = list(/obj/structure/lattice,
/turf/open/floor,
/turf/open/indestructible/clock_spawn_room,
/turf/closed/wall,
/obj/structure/falsewall)
smooth = SMOOTH_MORE

/obj/structure/lattice/catwalk/clockwork/Initialize(mapload)
. = ..()
new /obj/effect/temp_visual/ratvar/floor/catwalk(loc)
new /obj/effect/temp_visual/ratvar/beam/catwalk(loc)
ratvar_act()
if(!mapload)
new /obj/effect/temp_visual/ratvar/floor/catwalk(loc)
new /obj/effect/temp_visual/ratvar/beam/catwalk(loc)
if(z == ZLEVEL_CITYOFCOGS)
resistance_flags |= INDESTRUCTIBLE

/obj/structure/lattice/catwalk/clockwork/ratvar_act()
return
if(IsOdd(x+y))
icon = 'icons/obj/smooth_structures/catwalk_clockwork_large.dmi'
pixel_x = -9
pixel_y = -9
else
icon = 'icons/obj/smooth_structures/catwalk_clockwork.dmi'
pixel_x = 0
pixel_y = 0
return TRUE
15 changes: 0 additions & 15 deletions code/game/turfs/closed.dm
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,6 @@
if("icon")
SStitle.icon = icon

/turf/closed/indestructible/reebe
name = "void"
icon_state = "reebe"
opacity = FALSE
baseturf = /turf/closed/indestructible/reebe

/turf/closed/indestructible/reebe/ratvar_act()
return

/turf/closed/indestructible/reebe/narsie_act()
return

/turf/closed/indestructible/reebe/CollidedWith(atom/movable/AM)
playsound(src, 'sound/effects/bamf.ogg', 25, TRUE)

/turf/closed/indestructible/riveted
icon = 'icons/turf/walls/riveted.dmi'
icon_state = "riveted"
Expand Down
13 changes: 7 additions & 6 deletions code/game/turfs/simulated/floor/misc_floor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@
name = "clockwork floor"
desc = "Tightly-pressed brass tiles. They emit minute vibration."
icon_state = "plating"
baseturf = /turf/open/floor/clockwork
var/uses_overlay = TRUE
var/obj/effect/clockwork/overlay/floor/realappearence

Expand All @@ -152,18 +153,16 @@
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)
if(uses_overlay)
change_construction_value(-1)
if(realappearence)
qdel(realappearence)
realappearence = null
if(uses_overlay && realappearence)
QDEL_NULL(realappearence)
return ..()

/turf/open/floor/clockwork/ReplaceWithLattice()
if(baseturf == type)
return
..()
for(var/obj/structure/lattice/L in src)
L.ratvar_act()
Expand Down Expand Up @@ -197,6 +196,8 @@
L.adjustToxLoss(-3, TRUE, TRUE)

/turf/open/floor/clockwork/attackby(obj/item/I, mob/living/user, params)
if(baseturf == type)
return
if(istype(I, /obj/item/crowbar))
user.visible_message("<span class='notice'>[user] begins slowly prying up [src]...</span>", "<span class='notice'>You begin painstakingly prying up [src]...</span>")
playsound(src, I.usesound, 20, 1)
Expand Down
47 changes: 47 additions & 0 deletions code/game/turfs/simulated/reebe_void.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/turf/open/indestructible/reebe_void
name = "void"
icon_state = "reebemap"
layer = SPACE_LAYER
baseturf = /turf/open/indestructible/reebe_void
planetary_atmos = TRUE

/turf/open/indestructible/reebe_void/Initialize(mapload)
. = ..()
icon_state = "reebegame"

/turf/open/indestructible/reebe_void/spawning
icon_state = "reebespawn"

/turf/open/indestructible/reebe_void/spawning/Initialize(mapload)
. = ..()
if(mapload)
for(var/i in 1 to 3)
if(prob(1))
new /obj/item/clockwork/alloy_shards/large(src)
if(prob(2))
new /obj/item/clockwork/alloy_shards/medium(src)
if(prob(3))
new /obj/item/clockwork/alloy_shards/small(src)

/turf/open/indestructible/reebe_void/spawning/lattices
icon_state = "reebelattice"

/turf/open/indestructible/reebe_void/spawning/lattices/Initialize(mapload)
. = ..()
if(mapload)
if(prob(2.5))
new /obj/structure/lattice/catwalk/clockwork(src)
else if(prob(5))
new /obj/structure/lattice/clockwork(src)

/turf/open/indestructible/reebe_void/Enter(atom/movable/AM, atom/old_loc)
if(!..())
return FALSE
else
if(istype(AM, /obj/structure/window))
return FALSE
if(istype(AM, /obj/item/projectile))
return TRUE
if((locate(/obj/structure/lattice) in src))
return TRUE
return FALSE
8 changes: 1 addition & 7 deletions code/game/turfs/simulated/wall/misc_walls.dm
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
sheet_type = /obj/item/stack/tile/brass
sheet_amount = 1
girder_type = /obj/structure/destructible/clockwork/wall_gear
baseturf = /turf/open/floor/clockwork/reebe
var/obj/effect/clockwork/overlay/wall/realappearence

/turf/closed/wall/clockwork/Initialize()
Expand All @@ -63,15 +64,8 @@
new /obj/effect/temp_visual/ratvar/beam(src)
realappearence = new /obj/effect/clockwork/overlay/wall(src)
realappearence.linked = src
change_construction_value(5)

/turf/closed/wall/clockwork/examine(mob/user)
..()
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()
change_construction_value(-5)
if(realappearence)
qdel(realappearence)
realappearence = null
Expand Down
1 change: 1 addition & 0 deletions code/game/turfs/space/space.dm
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

var/global/datum/gas_mixture/immutable/space/space_gas = new
plane = PLANE_SPACE
layer = SPACE_LAYER
light_power = 0.25
dynamic_lighting = DYNAMIC_LIGHTING_DISABLED

Expand Down
Binary file modified icons/obj/smooth_structures/catwalk_clockwork.dmi
Binary file not shown.
Binary file not shown.
Binary file modified icons/turf/floors.dmi
Binary file not shown.
1 change: 1 addition & 0 deletions tgstation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,7 @@
#include "code\game\turfs\simulated\floor.dm"
#include "code\game\turfs\simulated\lava.dm"
#include "code\game\turfs\simulated\minerals.dm"
#include "code\game\turfs\simulated\reebe_void.dm"
#include "code\game\turfs\simulated\river.dm"
#include "code\game\turfs\simulated\walls.dm"
#include "code\game\turfs\simulated\water.dm"
Expand Down

0 comments on commit 5b73196

Please sign in to comment.