Skip to content

Commit

Permalink
Merge remote-tracking branch 'cmss13-devs/master' into forest/liaison
Browse files Browse the repository at this point in the history
  • Loading branch information
realforest2001 committed Nov 5, 2024
2 parents 47a1d0d + 64285da commit 0b1b98a
Show file tree
Hide file tree
Showing 316 changed files with 15,170 additions and 10,427 deletions.
7 changes: 7 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@
/tools/docker/ @Fira
/Dockerfile @Fira

# Forest2001

/code/game/machinery/ARES @realforest2001
/tgui/packages/tgui/interfaces/AresAdmin.jsx @realforest2001
/tgui/packages/tgui/interfaces/AresInterface.jsx @realforest2001
/tgui/packages/tgui/interfaces/WorkingJoe.jsx @realforest2001

# Nanu

/maps @Nanu308
Expand Down
1 change: 1 addition & 0 deletions code/__DEFINES/__game.dm
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@
#define DOCK_ATTEMPT_TIMEOUT 20 SECONDS
#define DROPSHIP_WARMUP_TIME 10 SECONDS
#define DROPSHIP_DROP_MSG_DELAY 30 SECONDS
#define DROPSHIP_DROP_FIRE_DELAY 20 SECONDS
#define DROPSHIP_TRANSIT_DURATION 100 SECONDS
#define DROPSHIP_CORSAT_DURATION 30 SECONDS
#define ELEVATOR_TRANSIT_DURATION 5 SECONDS
Expand Down
6 changes: 4 additions & 2 deletions code/__DEFINES/access.dm
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,12 @@ most of them are tied into map-placed objects. This should be reworked in the fu
// Yautja Access Levels
/// Requires a visible ID chip to open
#define ACCESS_YAUTJA_SECURE 390
/// Elites+ only
#define ACCESS_YAUTJA_ELITE 391
/// Elders+ only
#define ACCESS_YAUTJA_ELDER 391
#define ACCESS_YAUTJA_ELDER 392
/// Ancients only
#define ACCESS_YAUTJA_ANCIENT 392
#define ACCESS_YAUTJA_ANCIENT 393

/// Anything in a tutorial sequence that shouldn't be accessed
#define ACCESS_TUTORIAL_LOCKED 998
Expand Down
2 changes: 2 additions & 0 deletions code/__DEFINES/dcs/signals/atom/signals_area.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/// From /area/proc/purge_weeds()
#define COMSIG_AREA_RESIN_DISALLOWED "area_weeds_disallowed"
4 changes: 3 additions & 1 deletion code/__DEFINES/equipment.dm
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,9 @@
/// 2 tiles of full and 2 of partial impairment
#define VISION_IMPAIR_STRONG 5
/// 3 tiles of full and 2 of partial impairment (original one)
#define VISION_IMPAIR_MAX 6
#define VISION_IMPAIR_ULTRA 6
/// Full blindness, 1 tile visibility
#define VISION_IMPAIR_MAX 7

//VISION IMPAIRMENT LEVELS===========================================================================

Expand Down
2 changes: 2 additions & 0 deletions code/__DEFINES/flags.dm
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
#define EMOTE_IMPORTANT (1<<2)
/// Does the emote not have a message?
#define EMOTE_NO_MESSAGE (1<<3)
/// Can only code call this event instead of the player.
#define EMOTE_FORCED_AUDIO (1<<4)

// Bitflags for Working Joe emotes
/// Working Joe emote
Expand Down
10 changes: 5 additions & 5 deletions code/__DEFINES/keybinding.dm
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@
#define COMSIG_KB_HUMAN_ISSUE_ORDER_MOVE "keybinding_human_issue_order_move"
#define COMSIG_KB_HUMAN_ISSUE_ORDER_HOLD "keybinding_human_issue_order_hold"
#define COMSIG_KB_HUMAN_ISSUE_ORDER_FOCUS "keybinding_human_issue_order_focus"

#define COMSIG_KB_HUMAN_SPECIALIST_ACTIVATION_ONE "keybinding_human_specialist_activation_one"
#define COMSIG_KB_HUMAN_SPECIALIST_ACTIVATION_TWO "keybinding_human_specialist_activation_two"

#define COMSIG_KB_HUMAN_ROTATE_CHAIR "keybinding_human_rotate_chair"

#define COMSIG_KB_HUMAN_SHOW_HELD_ITEM "keybinding_human_show_held_item"

#define COMSIG_KB_HUMAN_CYCLE_HELMET_HUD "keybinding_human_cycle_helmet_hud"
#define COMSIG_KB_HUMAN_PIXEL_SHIFT_GRABBED_NORTH "keybinding_human_pixel_shift_grabbed_north"
#define COMSIG_KB_HUMAN_PIXEL_SHIFT_GRABBED_SOUTH "keybinding_human_pixel_shift_grabbed_south"
#define COMSIG_KB_HUMAN_PIXEL_SHIFT_GRABBED_EAST "keybinding_human_pixel_shift_grabbed_east"
#define COMSIG_KB_HUMAN_PIXEL_SHIFT_GRABBED_WEST "keybinding_human_pixel_shift_grabbed_west"

// Human Inventory Navigation
#define COMSIG_KB_HUMAN_INTERACT_OTHER_HAND "keybinding_human_interact_other_hand"
Expand Down Expand Up @@ -178,7 +178,7 @@
// Yautja Bracer
#define COMSIG_KB_YAUTJA_TOGGLE_NOTIFICATION_SOUND "keybinding_yautja_toggle_notification_sound"
#define COMSIG_KB_YAUTJA_BRACER_MESSAGE "keybinding_yautja_bracer_message"
#define COMSIG_KB_YAUTJA_WRISTBLADES "keybinding_yautja_wristblades"
#define COMSIG_KB_YAUTJA_BRACER_ATTACHMENT "keybinding_yautja_bracer_attachement"
#define COMSIG_KB_YAUTJA_TRACK_GEAR "keybinding_yautja_track_gear"
#define COMSIG_KB_YAUTJA_CLOAKER "keybinding_yautja_cloaker"
#define COMSIG_KB_YAUTJA_CASTER "keybinding_yautja_caster"
Expand Down
5 changes: 5 additions & 0 deletions code/__DEFINES/maps.dm
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,8 @@ require only minor tweaks.

/// A map key that corresponds to being one exclusively for Space.
#define SPACE_KEY "space"

#define SENTRY_TOP_LEFT "top_left"
#define SENTRY_TOP_RIGHT "top_right"
#define SENTRY_BOTTOM_LEFT "bottom_left"
#define SENTRY_BOTTOM_RIGHT "bottom_right"
20 changes: 5 additions & 15 deletions code/__DEFINES/minimap.dm
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

#define MINIMAP_FLAG_XENO (1<<0)
#define MINIMAP_FLAG_USCM (1<<1)
#define MINIMAP_FLAG_PMC (1<<2)
Expand All @@ -17,12 +16,15 @@
#define MINIMAP_FLAG_XENO_RENEGADE (1<<15)
#define MINIMAP_FLAG_ALL (1<<16) - 1

///Converts the overworld x and y to minimap x and y values
///The minimap zoom scale
#define MINIMAP_SCALE 2
///Converts the overworld x and y to minimap x and y values
#define MINIMAP_PIXEL_FROM_WORLD(val) (val * MINIMAP_SCALE - 3)

//actual size of a users screen in pixels
///The actual size of a users screen in pixels
#define SCREEN_PIXEL_SIZE 480
///The actual size of the minimap in pixels
#define MINIMAP_PIXEL_SIZE 512

GLOBAL_LIST_INIT(all_minimap_flags, bitfield2list(MINIMAP_FLAG_ALL))

Expand Down Expand Up @@ -68,18 +70,6 @@ GLOBAL_LIST_INIT(all_minimap_flags, bitfield2list(MINIMAP_FLAG_ALL))
#define MINIMAP_SQUAD_SOF "#400000"
#define MINIMAP_SQUAD_INTEL "#053818"

#define MINIMAP_ICON_BACKGROUND_CIVILIAN "#7D4820"
#define MINIMAP_ICON_BACKGROUND_CIC "#3f3f3f"
#define MINIMAP_ICON_BACKGROUND_USCM "#888888"
#define MINIMAP_ICON_BACKGROUND_XENO "#3a064d"

#define MINIMAP_ICON_COLOR_COMMANDER "#c6fcfc"
#define MINIMAP_ICON_COLOR_HEAD "#F0C542"
#define MINIMAP_ICON_COLOR_BRONZE "#eb9545"

#define MINIMAP_ICON_COLOR_DOCTOR "#b83737"


//Prison
#define MINIMAP_AREA_CELL_MAX "#570101ee"
#define MINIMAP_AREA_CELL_HIGH "#a54b01ee"
Expand Down
2 changes: 1 addition & 1 deletion code/__DEFINES/subsystems.dm
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,14 @@
#define SS_INIT_RADIO 2
#define SS_INIT_TIMER 100
#define SS_INIT_UNSPECIFIED 0
#define SS_INIT_PREDSHIPS -19
#define SS_INIT_ASSETS -20
#define SS_INIT_TICKER -21
#define SS_INIT_VOTE -23
#define SS_INIT_DATABASE -27
#define SS_INIT_ENTITYMANAGER -28
#define SS_INIT_PLAYTIME -29
#define SS_INIT_STICKY -30
#define SS_INIT_PREDSHIPS -31
#define SS_INIT_OBJECTIVES -32
#define SS_INIT_MINIMAP -34
#define SS_INIT_STATPANELS -98
Expand Down
1 change: 1 addition & 0 deletions code/__DEFINES/vendors.dm
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#define VENDOR_THEME_USCM 1
#define VENDOR_THEME_CLF 2
#define VENDOR_THEME_UPP 3
#define VENDOR_THEME_YAUTJA 4

#define VENDOR_ITEM_REGULAR 1
#define VENDOR_ITEM_MANDATORY 2
Expand Down
2 changes: 1 addition & 1 deletion code/__DEFINES/weapon_stats.dm
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ It DOES NOT control where your bullets go, that's scatter and projectile varianc
////SCATTER////
*/

#define SCATTER_AMOUNT_NEURO 60
#define SCATTER_AMOUNT_NEURO 45
#define SCATTER_AMOUNT_TIER_1 15
#define SCATTER_AMOUNT_TIER_2 10
#define SCATTER_AMOUNT_TIER_3 8
Expand Down
20 changes: 20 additions & 0 deletions code/__HELPERS/sanitize_values.dm
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,23 @@
if(65 to 70) . += ascii2text(ascii+32) //letters A to F - translates to lowercase
else return default
return .

/proc/sanitize_gear(list/gear, client/user)
var/list/sanitized_gear = list()
var/running_cost = 0

for(var/gear_option in gear)
if(!GLOB.gear_datums_by_name[gear_option])
continue

var/datum/gear/gear_datum = GLOB.gear_datums_by_name[gear_option]
var/new_total = running_cost + gear_datum.cost

if(new_total > MAX_GEAR_COST)
to_chat(user, SPAN_WARNING("Your [gear_option] was removed from your loadout as it exceeded the point limit."))
continue

running_cost = new_total
sanitized_gear += gear_option

return sanitized_gear
3 changes: 3 additions & 0 deletions code/__pragmas.dm
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
#pragma DanglingVarType error
#pragma MissingInterpolatedExpression error
#pragma InvalidIndexOperation error
#pragma PointlessPositionalArgument error
#pragma ProcArgumentGlobal error

//3000-3999
#pragma EmptyBlock error
#pragma AmbiguousInOrder error
6 changes: 6 additions & 0 deletions code/controllers/configuration/entries/general.dm
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,12 @@ The default value assumes youtube-dl is in your system PATH
/datum/config_entry/string/invoke_youtubedl
protection = CONFIG_ENTRY_LOCKED | CONFIG_ENTRY_HIDDEN

/datum/config_entry/string/cobalt_base_api
protection = CONFIG_ENTRY_LOCKED | CONFIG_ENTRY_HIDDEN


/datum/config_entry/string/cobalt_api_key
protection = CONFIG_ENTRY_LOCKED | CONFIG_ENTRY_HIDDEN

/datum/config_entry/number/error_cooldown // The "cooldown" time for each occurrence of a unique error
config_entry_value = 600
Expand Down
Loading

0 comments on commit 0b1b98a

Please sign in to comment.