Skip to content

Commit

Permalink
Merge remote-tracking branch 'cmss13-devs/master' into forest/pred/Cl…
Browse files Browse the repository at this point in the history
…anUI
  • Loading branch information
realforest2001 committed Nov 6, 2024
2 parents fed028f + 1371124 commit 7a35744
Show file tree
Hide file tree
Showing 414 changed files with 18,579 additions and 13,221 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"
5 changes: 4 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 Expand Up @@ -467,6 +469,7 @@ GLOBAL_LIST_INIT(slot_to_contained_sprite_shorthand, list(
#define ACCESSORY_SLOT_DECOR "Decor"
#define ACCESSORY_SLOT_MEDAL "Medal"
#define ACCESSORY_SLOT_PONCHO "Ponchos"
#define ACCESSORY_SLOT_TROPHY "Trophy"

/// Used for uniform armor inserts.
#define ACCESSORY_SLOT_ARMOR_C "Chest armor"
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
23 changes: 12 additions & 11 deletions code/__DEFINES/job.dm
Original file line number Diff line number Diff line change
Expand Up @@ -261,24 +261,25 @@ GLOBAL_LIST_INIT(job_command_roles, JOB_COMMAND_ROLES_LIST)
#define JOB_FORECON_SMARTGUNNER "Reconnaissance Smartgunner"

//-------- UPP --------//
#define JOB_UPP "UPP Private"
#define JOB_UPP "UPP Ryadovoy"
#define JOB_UPP_CONSCRIPT "UPP Conscript"
#define JOB_UPP_ENGI "UPP Korporal Sapper"
#define JOB_UPP_MEDIC "UPP Korporal Medic"
#define JOB_UPP_ENGI "UPP MSzht Engineer"
#define JOB_UPP_MEDIC "UPP MSzht Medic"
#define JOB_UPP_SPECIALIST "UPP Serzhant"
#define JOB_UPP_LEADER "UPP Master Serzhant"
#define JOB_UPP_LEADER "UPP Starshiy Serzhant"
#define JOB_UPP_POLICE "UPP Politsiya"
#define JOB_UPP_LT_OFFICER "UPP Mladshiy Leytenant"
#define JOB_UPP_SUPPLY "UPP Logistics Technician"
#define JOB_UPP_LT_OFFICER "UPP Leytenant"
#define JOB_UPP_LT_DOKTOR "UPP Leytenant Doktor"
#define JOB_UPP_SRLT_OFFICER "UPP Senior Leytenant"
#define JOB_UPP_SRLT_OFFICER "UPP Starshiy Leytenant"
#define JOB_UPP_KPT_OFFICER "UPP Kapitan"
#define JOB_UPP_MAY_OFFICER "UPP Mayjor"
#define JOB_UPP_LTKOL_OFFICER "UPP Leytenant Kolonel"
#define JOB_UPP_KOL_OFFICER "UPP Kolonel"
#define JOB_UPP_MAY_GENERAL "UPP Mayjor General"
#define JOB_UPP_LT_GENERAL "UPP Leytenant General"
#define JOB_UPP_GENERAL "UPP Army General"
#define JOB_UPP_LTKOL_OFFICER "UPP Podpolkovnik"
#define JOB_UPP_KOL_OFFICER "UPP Polkovnik"
#define JOB_UPP_BRIG_GENERAL "UPP General Mayjor"
#define JOB_UPP_MAY_GENERAL "UPP General Leytenant"
#define JOB_UPP_LT_GENERAL "UPP General Polkovnik"
#define JOB_UPP_GENERAL "UPP General Armii"

#define JOB_UPP_COMBAT_SYNTH "UPP Combat Synthetic"
#define JOB_UPP_SUPPORT_SYNTH "UPP Support Synthetic"
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
3 changes: 3 additions & 0 deletions code/__DEFINES/mode.dm
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@
#define MODE_DISPOSABLE_MOBS (1<<10) // Toggles if mobs fit in disposals or not. Off by default.
#define MODE_BYPASS_JOE (1<<11) // Toggles if ghosts can bypass Working Joe spawn limitations, does NOT bypass WL requirement. Off by default.
#define MODE_DISABLE_JOE_RESPAWN (1<<12) // Toggles if ghosts can respawn as Working Joes after dying as one when 15 minutes have passed. Off by default
#define MODE_INDESTRUCTIBLE_SPLINTS (1<<13) //Toggle is splints are to become nanosplints
#define MODE_NO_INTERNAL_BLEEDING (1<<14) // Toggles all internal bleeding behavior to cause normal bleeding instead


#define ROUNDSTATUS_FOG_DOWN 1
#define ROUNDSTATUS_PODDOORS_OPEN 2
Expand Down
30 changes: 15 additions & 15 deletions code/__DEFINES/paygrade_defs/upp.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@
/// UE,
#define PAY_SHORT_UEC "UEC"

/// UE1, Private
/// UE1, Private/Ryadovoy
#define PAY_SHORT_UE1 "UE1"

/// UE2, Private First Class
/// UE2, Private First Class/Efreitor
#define PAY_SHORT_UE2 "UE2"

/// UE3, Korporal
/// UE3, Korporal/Mladshiy Serzhant
#define PAY_SHORT_UE3 "UE3"

/// UE4, unior Serzhant
/// UE4, Junior Serzhant/Serzhant
#define PAY_SHORT_UE4 "UE4"

/// UE5, Serzhant
/// UE5, Serzhant/Starshiy Serzhant
#define PAY_SHORT_UE5 "UE5"

/// UE6, Master Serzhant
/// UE6, Master Serzhant/Starshyna
#define PAY_SHORT_UE6 "UE6"

/// UC1, Junior Kommando
Expand All @@ -31,32 +31,32 @@
/// UC3, 1st Kommando
#define PAY_SHORT_UC3 "UC3"

/// UO1, Leytenant
/// UO1, Leytenant/Mladshiy Leytenant
#define PAY_SHORT_UO1 "UO1"

/// UO2, Senior Leytenant
/// UO2, Senior Leytenant/Starshiy Leytenant
#define PAY_SHORT_UO2 "UO2"

/// UO3, Kapitan
/// UO3, Kapitan/Captain
#define PAY_SHORT_UO3 "UO3"

/// UO4, Mayjor
/// UO4, Mayjor/Major
#define PAY_SHORT_UO4 "UO4"

/// UO4P, Political Commissar
#define PAY_SHORT_UO4P "UO4P"

/// UO5, Leytenant Kolonel
/// UO5, Leytenant Kolonel/Podpolkovnik
#define PAY_SHORT_UO5 "UO5"

/// UO6, Kolonel
/// UO6, Kolonel/Polkovnik
#define PAY_SHORT_UO6 "UO6"

/// UO7, Mayjor General
/// UO7, Mayjor General/General Leytenant
#define PAY_SHORT_UO7 "UO7"

/// UO8, Leytenant General
/// UO8, Leytenant General/General Polkovnik
#define PAY_SHORT_UO8 "UO8"

/// UO9, Army General
/// UO9, Army General/General Armii
#define PAY_SHORT_UO9 "UO9"
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 7a35744

Please sign in to comment.