New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the great beach gateway revamp #13122
Changes from 16 commits
5a95630
5c72fd5
6cb4580
327ed4f
cfd20b5
76c88b8
0093b29
2ff0779
ddcd628
6166d09
4bd03eb
1018a49
5a0928e
c2e572f
528808f
cdfb90c
8e338f0
dc5c497
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -124,3 +124,44 @@ | |||||||||||
icon_state = "doorctrl-p" | ||||||||||||
else | ||||||||||||
icon_state = "doorctrl0" | ||||||||||||
|
||||||||||||
/obj/machinery/door_control/brass | ||||||||||||
name = "brass door-control" | ||||||||||||
desc = "A brass remote control-switch for a door." | ||||||||||||
icon = 'icons/obj/clockwork_objects.dmi' | ||||||||||||
|
||||||||||||
/obj/machinery/door_control/brass/beach_brass_temple_switch/Initialize() | ||||||||||||
. = ..() | ||||||||||||
id = "brassbeachtempledoor[rand(1, 12)]" | ||||||||||||
|
||||||||||||
/obj/machinery/door_control/brass/beach_brass_temple_switch/attack_hand(mob/user as mob) | ||||||||||||
. = ..() | ||||||||||||
var/temple_traps = rand(1,10) //no forbidden temple is complete without some traps! | ||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Spacing
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You've got a lot of separate
Suggested change
(Also, spacing) |
||||||||||||
switch(temple_traps) | ||||||||||||
if(1 to 5)//You're safe, this time. | ||||||||||||
return | ||||||||||||
if(6,7) | ||||||||||||
new /mob/living/simple_animal/hostile/poison/giant_spider(get_turf(src)) | ||||||||||||
visible_message("<span class='boldannounce'>A hatch opens above you and a giant spider falls down on your head!</span>") | ||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Might want a different span class here for consistency. |
||||||||||||
playsound(get_turf(src), 'sound/effects/bin_close.ogg', 200, TRUE) | ||||||||||||
if(8,9) | ||||||||||||
addtimer(CALLBACK(GLOBAL_PROC, .proc/explosion, user.loc, -1, rand(1,5), rand(1,5), rand(1,5), rand(1,5), 1, 0, 2), 50) | ||||||||||||
playsound(get_turf(src), 'sound/mecha/powerup.ogg', 200, TRUE) | ||||||||||||
visible_message("<span class='boldannounce'>A high pitched whine can be heard and the walls looks to be heating up!</span>") | ||||||||||||
if(10) | ||||||||||||
for(var/mob/M in range(5, src)) | ||||||||||||
shake_camera(M, 15, 1) | ||||||||||||
visible_message("<span class='boldannounce'>The ground begins to shake and roaring machinery can be heard! RUN!</span>") | ||||||||||||
addtimer(CALLBACK(src, .proc/temple_collapse), 5 SECONDS) | ||||||||||||
|
||||||||||||
/obj/machinery/door_control/brass/beach_brass_temple_switch/proc/temple_collapse() | ||||||||||||
for(var/mob/M in range(20, src)) | ||||||||||||
shake_camera(M, 15, 1) | ||||||||||||
playsound(get_turf(src),'sound/effects/explosionfar.ogg', 200, TRUE) | ||||||||||||
visible_message("<span class='boldannounce'>The brass floor collapses and forms a massive pit!</span>") | ||||||||||||
for(var/turf/T in range(4,src)) | ||||||||||||
if(!T.density) | ||||||||||||
T.TerraformTurf(/turf/simulated/floor/chasm/straight_down/lava_land_surface) | ||||||||||||
qdel(src) | ||||||||||||
|
||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -42,6 +42,14 @@ | |||||||||||||||||||||||||||||
name = "beach sand baseturf editor" | ||||||||||||||||||||||||||||||
baseturf = /turf/simulated/floor/beach/sand | ||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
/obj/effect/baseturf_helper/beach/roughsand | ||||||||||||||||||||||||||||||
name = "beach sand baseturf editor" | ||||||||||||||||||||||||||||||
baseturf =/turf/simulated/floor/beach/roughsand | ||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
/obj/effect/baseturf_helper/beach/dense_roughsand | ||||||||||||||||||||||||||||||
name = "beach sand baseturf editor" | ||||||||||||||||||||||||||||||
baseturf =/turf/simulated/floor/beach/roughsand/dense | ||||||||||||||||||||||||||||||
Comment on lines
+45
to
+51
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Spacing
Suggested change
|
||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
/obj/effect/baseturf_helper/beach/water | ||||||||||||||||||||||||||||||
name = "water baseturf editor" | ||||||||||||||||||||||||||||||
baseturf = /turf/simulated/floor/beach/water | ||||||||||||||||||||||||||||||
|
@@ -61,7 +69,7 @@ | |||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
/obj/effect/mapping_helpers/Initialize(mapload) | ||||||||||||||||||||||||||||||
..() | ||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
return late ? INITIALIZE_HINT_LATELOAD : qdel(src) // INITIALIZE_HINT_QDEL <-- Doesn't work | ||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
/obj/effect/mapping_helpers/no_lava | ||||||||||||||||||||||||||||||
|
@@ -83,7 +91,7 @@ | |||||||||||||||||||||||||||||
airlock.unres_sides ^= dir | ||||||||||||||||||||||||||||||
else | ||||||||||||||||||||||||||||||
log_world("### MAP WARNING, [src] failed to find an airlock at [AREACOORD(src)]") | ||||||||||||||||||||||||||||||
..() | ||||||||||||||||||||||||||||||
..() | ||||||||||||||||||||||||||||||
/obj/effect/mapping_helpers/no_lava/New() | ||||||||||||||||||||||||||||||
var/turf/T = get_turf(src) | ||||||||||||||||||||||||||||||
T.flags |= NO_LAVA_GEN | ||||||||||||||||||||||||||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,20 @@ | |
icon_state = "psychbed" | ||
buildstackamount = 5 | ||
|
||
/obj/structure/bed/wooden_lounge_chair | ||
name = "wooden lounge chair" | ||
desc = "Time to lay back and soak in the solar rays." | ||
icon_state = "wooden_lounge_chair" | ||
can_buckle = TRUE | ||
anchored = TRUE | ||
buckle_lying = TRUE | ||
resistance_flags = FLAMMABLE | ||
max_integrity = 100 | ||
integrity_failure = 30 | ||
Comment on lines
+38
to
+43
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All of these variables are the same on the parent |
||
buildstacktype = /obj/item/stack/sheet/wood | ||
buildstackamount = 5 | ||
|
||
|
||
/obj/structure/bed/alien | ||
name = "resting contraption" | ||
desc = "This looks similar to contraptions from Earth. Could aliens be stealing our technology?" | ||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -42,14 +42,41 @@ | |||||
/turf/simulated/floor/beach | ||||||
name = "beach" | ||||||
icon = 'icons/misc/beach.dmi' | ||||||
var/water_overlay_image | ||||||
|
||||||
/turf/simulated/floor/beach/pry_tile(obj/item/C, mob/user, silent = FALSE) | ||||||
/turf/simulated/floor/beach/crowbar_act() | ||||||
return | ||||||
|
||||||
/turf/simulated/floor/beach/sand | ||||||
name = "sand" | ||||||
icon_state = "sand" | ||||||
|
||||||
/turf/simulated/floor/beach/roughsand | ||||||
name = "Sand" | ||||||
icon_state = "rough_sand1" | ||||||
|
||||||
/turf/simulated/floor/beach/roughsand/dense //made simulated versions to fix lighting issues | ||||||
density = TRUE | ||||||
|
||||||
/turf/simulated/floor/beach/roughsand/New() //a simulated version of the unsimulated beach sand | ||||||
icon_state = "rough_sand[rand(1, 6)]" | ||||||
..() | ||||||
|
||||||
/turf/simulated/floor/beach/roughcoastline/New() | ||||||
..() | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
if(water_overlay_image) | ||||||
var/image/overlay_image = image('icons/misc/beach.dmi', icon_state = water_overlay_image, layer = ABOVE_MOB_LAYER) | ||||||
overlay_image.plane = GAME_PLANE | ||||||
add_overlay(overlay_image) | ||||||
|
||||||
/turf/simulated/floor/beach/roughcoastline | ||||||
name = "Coastline" | ||||||
icon_state = "beach" | ||||||
water_overlay_image = "water_coast" | ||||||
|
||||||
/turf/simulated/floor/beach/roughcoastline/dense //for boundary "walls" | ||||||
density = TRUE | ||||||
|
||||||
/turf/simulated/floor/beach/coastline | ||||||
name = "coastline" | ||||||
icon = 'icons/misc/beach2.dmi' | ||||||
|
@@ -132,7 +159,8 @@ | |||||
/turf/simulated/floor/clockwork | ||||||
name = "clockwork floor" | ||||||
desc = "Tightly-pressed brass tiles. They emit minute vibration." | ||||||
icon_state = "plating" | ||||||
icon = 'icons/obj/clockwork_objects.dmi' | ||||||
icon_state = "clockwork_floor" | ||||||
baseturf = /turf/simulated/floor/clockwork | ||||||
var/dropped_brass | ||||||
var/uses_overlay = TRUE | ||||||
|
@@ -146,7 +174,7 @@ | |||||
realappearence = new /obj/effect/clockwork/overlay/floor(src) | ||||||
realappearence.linked = src | ||||||
|
||||||
/turf/simulated/floor/clockwork/Destroy() | ||||||
/turf/simulated/floor/clockwork/BeforeChange() | ||||||
if(uses_overlay && realappearence) | ||||||
QDEL_NULL(realappearence) | ||||||
return ..() | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't need the
as mob
since it's already defined asmob/user
.