Skip to content

Commit

Permalink
TGS Test Merge (#6248)
Browse files Browse the repository at this point in the history
  • Loading branch information
cm13-github committed Aug 13, 2024
2 parents 898b394 + 993839d commit 71248a2
Show file tree
Hide file tree
Showing 366 changed files with 219,690 additions and 192 deletions.
1 change: 1 addition & 0 deletions code/__DEFINES/__game.dm
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#define MAP_ICE_COLONY_V3 "Shivas Snowball" //Ice Rework, low pop enabled.
#define MAP_RUNTIME "USS Runtime"
#define MAP_LV522_CHANCES_CLAIM "LV-522 Chance's Claim" // Highpop Only
#define MAP_LV759_HYBRISA_PROSPERA "LV-759 Hybrisa Prospera" // Highpop Only
#define MAP_NEW_VARADERO "New Varadero"//ice colony underground but as its own map
#define MAP_CHINOOK "Chinook 91 GSO" //admin level

Expand Down
1 change: 1 addition & 0 deletions code/__DEFINES/conflict.dm
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@
//Health of various items
#define HEALTH_WALL 3000
#define HEALTH_WALL_REINFORCED 9000
#define HEALTH_WALL_ULTRA_REINFORCED 12000
#define HEALTH_WALL_XENO 900
#define HEALTH_WALL_XENO_WEAK 100
#define HEALTH_WALL_XENO_THICK 1350
Expand Down
5 changes: 5 additions & 0 deletions code/__DEFINES/dcs/signals/atom/mob/living/signals_living.dm
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,8 @@

/// from base of /mob/living/apply_status_effect(): (datum/status_effect/new_effect)
#define COMSIG_LIVING_APPLY_EFFECT "living_apply_effect"

/// from /datum/component/shimmy_around/proc/on_mob_move to determine if layer should be reset
#define COMSIG_LIVING_SHIMMY_LAYER "structure_shimmy_layer"
/// Sent when a shimmy component is currently overriding the layer
#define COMSIG_LIVING_SHIMMY_LAYER_CANCEL (1<<0)
3 changes: 3 additions & 0 deletions code/__DEFINES/dcs/signals/atom/signals_obj.dm
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@

#define COMSIG_STRUCTURE_WRENCHED "structure_wrenched"
#define COMSIG_STRUCTURE_UNWRENCHED "structure_unwrenched"
/// from /obj/structure/Collided() if not overriden for /datum/component/shimmy_around
#define COMSIG_STRUCTURE_COLLIDED "structure_collided"

#define COMSIG_TENT_COLLAPSING "tent_collapsing"

/// from /obj/proc/afterbuckle()
Expand Down
2 changes: 2 additions & 0 deletions code/__DEFINES/layers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@
#define ABOVE_XENO_LAYER 4.12
/// For facehuggers
#define FACEHUGGER_LAYER 4.13
/// For Signs above everything but below weather
#define BILLBOARD_LAYER 4.13
/// For WEATHER
#define WEATHER_LAYER 4.14

Expand Down
14 changes: 14 additions & 0 deletions code/__DEFINES/minimap.dm
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,17 @@ GLOBAL_LIST_INIT(all_minimap_flags, bitfield2list(MINIMAP_FLAG_ALL))

#define TACMAP_BASE_OCCLUDED "Occluded"
#define TACMAP_BASE_OPEN "Open"

// Hybrisa
#define MINIMAP_AREA_COLONY_STREETS "#4e6d67ae"
#define MINIMAP_AREA_COLONY_SPACE_PORT "#a54b01ee"
#define MINIMAP_AREA_COLONY_HOSPITAL "#029982e7"
#define MINIMAP_AREA_COLONY_ENGINEERING "#888404e7"
#define MINIMAP_AREA_COLONY_MARSHALLS "#880404e7"
#define MINIMAP_AREA_COLONY_RESANDCOM "#91bdcfe7"
#define MINIMAP_AREA_MINING "#5c280fe7"
#define MINIMAP_AREA_HYBRISACAVES "#390192ee"
#define MINIMAP_AREA_HYBRISARESEARCH "#856600ee"
#define MINIMAP_AREA_DERELICT "#920190ee"
#define MINIMAP_AREA_OOB "#3a3a3a"
#define MINIMAP_AREA_COMMS "#00b3ffe7"
4 changes: 2 additions & 2 deletions code/__DEFINES/mode.dm
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@

#define IS_MODE_COMPILED(MODE) (ispath(text2path("/datum/game_mode/"+(MODE))))

#define MODE_HAS_FLAG(flag) (SSticker.mode.flags_round_type & flag)
#define MODE_HAS_TOGGLEABLE_FLAG(flag) (SSticker.mode.toggleable_flags & flag)
#define MODE_HAS_FLAG(flag) (SSticker.mode?.flags_round_type & flag)
#define MODE_HAS_TOGGLEABLE_FLAG(flag) (SSticker.mode?.toggleable_flags & flag)

// Gamemode Flags
#define MODE_INFESTATION (1<<0)
Expand Down
3 changes: 3 additions & 0 deletions code/__DEFINES/paygrade_defs/civilian.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
/// CNUR, Nurse
#define PAY_SHORT_CNUR "CNUR"

///CPARA, Paramedic
#define PAY_SHORT_CPARA "CPARA"

/// CDOC, Doctor
#define PAY_SHORT_CDOC "CDOC"

Expand Down
3 changes: 3 additions & 0 deletions code/__DEFINES/paygrade_defs/weyland.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
/// WYC2, Junior Executive
#define PAY_SHORT_WYC2 "WYC2"

/// WYC2, Pilot - Captain
#define PAY_SHORT_WYPO2 "WYPO2"

/// WYC3, Executive
#define PAY_SHORT_WYC3 "WYC3"

Expand Down
19 changes: 19 additions & 0 deletions code/__DEFINES/sounds.dm
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,22 @@
#define SCAPE_PL_ENG list('sound/soundscape/engamb1.ogg', 'sound/soundscape/engamb2.ogg', 'sound/soundscape/engamb3.ogg', 'sound/soundscape/engamb4.ogg', 'sound/soundscape/engamb5.ogg', 'sound/soundscape/engamb6.ogg', 'sound/soundscape/engamb7.ogg', )
#define SCAPE_PL_HANGAR list('sound/soundscape/hangaramb1.ogg', 'sound/soundscape/hangaramb2.ogg', 'sound/soundscape/hangaramb3.ogg', 'sound/soundscape/hangaramb4.ogg', 'sound/soundscape/hangaramb5.ogg', 'sound/soundscape/hangaramb6.ogg', 'sound/soundscape/hangaramb7.ogg', 'sound/soundscape/hangaramb8.ogg', 'sound/soundscape/hangaramb9.ogg', 'sound/soundscape/hangaramb10.ogg', )
#define SCAPE_PL_ARES list('sound/soundscape/mother.ogg')

// Hybrisa Soundscapes

#define AMBIENCE_CITY 'sound/ambience/city_on_fire.ogg'
#define AMBIENCE_DERELICT 'sound/ambience/derelict_ambience.ogg'
#define AMBIENCE_LAB 'sound/ambience/lab_ambience.ogg'
#define AMBIENCE_LAB_2 'sound/ambience/lab_ambience_2.ogg'
#define AMBIENCE_LAB_HALLWAY 'sound/ambience/lab_ambience_hallway.ogg'
#define AMBIENCE_WEYMART 'sound/ambience/weymart.ogg'
#define AMBIENCE_HYBRISA_INTERIOR 'sound/ambience/hybrisa_interior.ogg'
#define AMBIENCE_HYBRISA_CAVES 'sound/ambience/caves_ambience.ogg'
#define AMBIENCE_HYBRISA_CAVES_ALARM 'sound/ambience/caves_ambience_alarm.ogg'

#define SCAPE_PL_LV759_OUTDOORS list('sound/soundscape/lv759/outdoors/wind4.ogg','sound/soundscape/lv759/outdoors/wind5.ogg','sound/soundscape/lv759/outdoors/wind6.ogg','sound/soundscape/lv759/outdoors/wind7.ogg','sound/soundscape/lv759/outdoors/wind8.ogg','sound/soundscape/lv759/outdoors/wind9.ogg','sound/soundscape/lv759/outdoors/wind10.ogg','sound/soundscape/lv759/outdoors/wind11.ogg','sound/soundscape/lv759/outdoors/wind12.ogg','sound/soundscape/lv759/outdoors/wind13.ogg','sound/soundscape/lv759/outdoors/wind14.ogg','sound/soundscape/lv759/outdoors/wind15.ogg','sound/soundscape/lv759/outdoors/wind16.ogg','sound/soundscape/lv759/outdoors/wind17.ogg','sound/soundscape/lv759/outdoors/wind18.ogg','sound/soundscape/lv759/outdoors/wind19.ogg','sound/soundscape/lv759/outdoors/wind20.ogg','sound/soundscape/lv759/outdoors/wind21.ogg','sound/soundscape/lv759/outdoors/wind22.ogg','sound/soundscape/lv759/outdoors/wind23.ogg','sound/soundscape/lv759/outdoors/wind24.ogg','sound/soundscape/lv759/outdoors/wind25.ogg','sound/soundscape/lv759/outdoors/wind26.ogg','sound/soundscape/lv759/outdoors/wind27.ogg','sound/soundscape/lv759/outdoors/wind28.ogg',)
#define SCAPE_PL_LV759_INDOORS list('sound/soundscape/lv522/indoors/indoor_wind.ogg','sound/soundscape/lv522/indoors/indoor_wind2.ogg','sound/soundscape/lv759/indoors/vent_1.ogg','sound/soundscape/lv759/indoors/vent_2.ogg','sound/soundscape/lv759/indoors/vent_3.ogg','sound/soundscape/lv759/indoors/vent_4.ogg','sound/soundscape/lv759/indoors/vent_5.ogg','sound/soundscape/lv759/indoors/vent_6.ogg','sound/soundscape/lv759/indoors/vent_7.ogg','sound/soundscape/lv759/indoors/vent_6.ogg','sound/soundscape/lv759/indoors/distant_sounds_1.ogg','sound/soundscape/lv759/indoors/distant_sounds_2.ogg','sound/soundscape/lv759/indoors/distant_sounds_3.ogg','sound/soundscape/lv759/indoors/distant_sounds_4.ogg','sound/soundscape/lv759/indoors/distant_sounds_5.ogg','sound/soundscape/lv759/indoors/distant_sounds_6.ogg','sound/soundscape/lv759/indoors/distant_sounds_7.ogg','sound/soundscape/lv759/indoors/distant_sounds_8.ogg','sound/soundscape/lv759/indoors/distant_sounds_9.ogg','sound/soundscape/lv759/indoors/distant_sounds_10.ogg','sound/soundscape/engamb1.ogg','sound/soundscape/engamb2.ogg','sound/soundscape/engamb3.ogg','sound/soundscape/engamb4.ogg','sound/soundscape/engamb5.ogg','sound/soundscape/engamb6.ogg','sound/soundscape/engamb7.ogg',)
#define SCAPE_PL_LV759_DERELICTSHIP list('sound/soundscape/lv759/indoors/derelict1.ogg','sound/soundscape/lv759/indoors/derelict2.ogg','sound/soundscape/lv759/indoors/derelict3.ogg','sound/soundscape/lv759/indoors/derelict4.ogg','sound/soundscape/lv759/indoors/derelict5.ogg','sound/soundscape/lv759/indoors/derelict6.ogg','sound/soundscape/lv759/indoors/derelict7.ogg','sound/soundscape/lv759/indoors/derelict8.ogg')
#define SCAPE_PL_LV759_DEEPCAVES list('sound/soundscape/lv759/outdoors/deepcave1.ogg','sound/soundscape/lv759/outdoors/deepcave2.ogg')
#define SCAPE_PL_LV759_CAVES list('sound/soundscape/lv759/outdoors/windy_caverns_1.ogg','sound/soundscape/lv759/outdoors/windy_caverns_2.ogg','sound/soundscape/lv759/outdoors/windy_caverns_3.ogg',)
#define SCAPE_PL_LV759_PLATEAU_OUTDOORS list('sound/soundscape/lv759/outdoors/derelict_plateau_1.ogg','sound/soundscape/lv759/outdoors/derelict_plateau_2.ogg',)
1 change: 1 addition & 0 deletions code/__DEFINES/weather.dm
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#define PROB_WEATHER_BIG_RED 30
#define PROB_WEATHER_LV624 30
#define PROB_WEATHER_NEW_VARADERO 100
#define PROB_WEATHER_LV759 100

#define WEATHER_TYPE_NO_WEATHER 0
#define WEATHER_TYPE_SNOW 1
Expand Down
19 changes: 13 additions & 6 deletions code/__HELPERS/lists.dm
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,19 @@
return list[index]
return

//Checks for specific types in a list
/proc/is_type_in_list(atom/A, list/L)
for(var/type in L)
if(istype(A, type))
return 1
return 0
///Checks if the needle atom is any type in the type_list
/proc/is_type_in_list(atom/needle, list/type_list)
for(var/type in type_list)
if(istype(needle, type))
return TRUE
return FALSE

///Checks if the needle path derives from any in the path_list
/proc/is_path_in_list(needle, list/path_list)
for(var/path in path_list)
if(ispath(needle, path))
return TRUE
return FALSE

//Removes any null entries from the list
/proc/listclearnulls(list/list)
Expand Down
7 changes: 5 additions & 2 deletions code/_onclick/hud/fullscreen.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@
if (!screen || screen.type != type)
// needs to be recreated
clear_fullscreen(category, FALSE)
fullscreens[category] = screen = new type()
fullscreens[category] = screen = type ? new type() : null
else if ((!severity || severity == screen.severity) && (!client || screen.screen_loc != "CENTER-7,CENTER-7" || screen.fs_view == client.view))
// doesn't need to be updated
return screen

if(!screen)
return

screen.icon_state = "[initial(screen.icon_state)][severity]"
screen.severity = severity
if (client && screen.should_show_to(src))
Expand Down Expand Up @@ -55,7 +58,7 @@
var/atom/movable/screen/fullscreen/screen
for(var/category in fullscreens)
screen = fullscreens[category]
if(screen.should_show_to(src))
if(screen?.should_show_to(src))
screen.update_for_view(client.view)
client.add_to_screen(screen)
else
Expand Down
3 changes: 3 additions & 0 deletions code/controllers/subsystem/weather.dm
Original file line number Diff line number Diff line change
Expand Up @@ -202,3 +202,6 @@ SUBSYSTEM_DEF(weather)
/obj/effect/weather_vfx_holder/rain
icon_state = "strata_storm"
alpha = 50
/obj/effect/weather_vfx_holder/hybrisa_rain
icon_state = "hybrisa_rain"
alpha = 50
3 changes: 2 additions & 1 deletion code/datums/_atmos_setup.dm
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
#define PIPE_COLOR_GREEN "#00ff00"
#define PIPE_COLOR_YELLOW "#ffcc00"
#define PIPE_COLOR_PURPLE "#5c1ec0"
#define PIPE_COLOR_DARKGREY "#a6aeab"

GLOBAL_LIST_INIT(pipe_colors, list("grey" = PIPE_COLOR_GREY, "red" = PIPE_COLOR_RED, "blue" = PIPE_COLOR_BLUE, "cyan" = PIPE_COLOR_CYAN, "green" = PIPE_COLOR_GREEN, "yellow" = PIPE_COLOR_YELLOW, "purple" = PIPE_COLOR_PURPLE))
GLOBAL_LIST_INIT(pipe_colors, list("grey" = PIPE_COLOR_GREY, "red" = PIPE_COLOR_RED, "blue" = PIPE_COLOR_BLUE, "cyan" = PIPE_COLOR_CYAN, "green" = PIPE_COLOR_GREEN, "yellow" = PIPE_COLOR_YELLOW, "purple" = PIPE_COLOR_PURPLE, "darkgrey" = PIPE_COLOR_DARKGREY))

/proc/pipe_color_lookup(color)
for(var/C in GLOB.pipe_colors)
Expand Down
20 changes: 20 additions & 0 deletions code/datums/ammo/bullet/smg.dm
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,23 @@
penetration = ARMOR_PENETRATION_TIER_4
damage_falloff = DAMAGE_FALLOFF_TIER_6
scatter = SCATTER_AMOUNT_TIER_6

/datum/ammo/bullet/smg/p90
name = "submachinegun bullet"

damage = 18
accurate_range = 5
effective_range_max = 8
penetration = ARMOR_PENETRATION_TIER_4
damage_falloff = DAMAGE_FALLOFF_TIER_6
scatter = SCATTER_AMOUNT_TIER_6

/datum/ammo/bullet/smg/p90/p90_twe_ap
name = "armor-piercing submachinegun bullet"

damage = 24
accurate_range = 5
effective_range_max = 8
penetration = ARMOR_PENETRATION_TIER_6
damage_falloff = DAMAGE_FALLOFF_TIER_6
scatter = SCATTER_AMOUNT_TIER_6
Loading

0 comments on commit 71248a2

Please sign in to comment.