mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 16:18:01 +01:00
TG Upstream Part 1
3591 individual conflicts Update build.js Update install_node.sh Update byond.js oh my fucking god hat slow huh holy shit we all fall down 2 more I missed 2900 individual conflicts 2700 Individual conflicts replaces yarn file with tg version, bumping us down to 2200-ish Down to 2000 individual conflicts 140 down mmm aaaaaaaaaaaaaaaaaaa not yt 575 soon 900 individual conflicts 600 individual conflicts, 121 file conflicts im not okay 160 across 19 files 29 in 4 files 0 conflicts, compiletime fix time some minor incap stuff missed ticks weird dupe definition stuff missed ticks 2 incap fixes undefs and pie fix Radio update and some extra minor stuff returns a single override no more dupe definitions, 175 compiletime errors Unticked file fix sound and emote stuff honk and more radio stuff
This commit is contained in:
@@ -49,7 +49,6 @@
|
||||
"player_ckey" = player_ckey,
|
||||
"must_apply_to_admins" = !!(GLOB.admin_datums[player_ckey] || GLOB.deadmins[player_ckey]),
|
||||
)
|
||||
<<<<<<< HEAD
|
||||
// SKYRAT EDIT ADDITION BEGIN - MULTISERVER
|
||||
var/ssqlname = CONFIG_GET(string/serversqlname)
|
||||
var/server_check
|
||||
@@ -69,22 +68,7 @@
|
||||
values["role"] = roles
|
||||
sql_roles = ":role"
|
||||
|
||||
var/datum/db_query/query_check_ban = SSdbcore.NewQuery(/* SKYRAT EDIT CHANGE - MULTISERVER */{"
|
||||
=======
|
||||
|
||||
var/sql_roles
|
||||
if(islist(roles))
|
||||
var/list/sql_roles_list = list()
|
||||
for (var/i in 1 to roles.len)
|
||||
values["role[i]"] = roles[i]
|
||||
sql_roles_list += ":role[i]"
|
||||
sql_roles = sql_roles_list.Join(", ")
|
||||
else
|
||||
values["role"] = roles
|
||||
sql_roles = ":role"
|
||||
|
||||
var/datum/db_query/query_check_ban = SSdbcore.NewQuery({"
|
||||
>>>>>>> 4b4ae0958fe6b5d511ee6e24a5087599f61d70a3
|
||||
var/datum/db_query/query_check_ban = SSdbcore.NewQuery(/* SKYRAT EDIT CHANGE - MULTISERVER - AND [server_check] */{"
|
||||
SELECT 1
|
||||
FROM [format_table_name("ban")]
|
||||
WHERE
|
||||
@@ -92,10 +76,7 @@
|
||||
role IN ([sql_roles]) AND
|
||||
unbanned_datetime IS NULL AND
|
||||
(expiration_time IS NULL OR expiration_time > NOW())
|
||||
<<<<<<< HEAD
|
||||
AND [server_check]
|
||||
=======
|
||||
>>>>>>> 4b4ae0958fe6b5d511ee6e24a5087599f61d70a3
|
||||
AND (NOT :must_apply_to_admins OR applies_to_admins = 1)
|
||||
"}, values)
|
||||
|
||||
@@ -195,7 +176,6 @@
|
||||
var/is_admin = FALSE
|
||||
if(GLOB.admin_datums[ckey] || GLOB.deadmins[ckey])
|
||||
is_admin = TRUE
|
||||
<<<<<<< HEAD
|
||||
// SKYRAT EDIT ADDITION BEGIN - MULTISERVER
|
||||
var/ssqlname = CONFIG_GET(string/serversqlname)
|
||||
var/server_check
|
||||
@@ -206,10 +186,6 @@
|
||||
// SKYRAT EDIT ADDITION END - MULTISERVER
|
||||
var/datum/db_query/query_build_ban_cache = SSdbcore.NewQuery(
|
||||
"SELECT role, applies_to_admins FROM [format_table_name("ban")] WHERE ckey = :ckey AND unbanned_datetime IS NULL AND (expiration_time IS NULL OR expiration_time > NOW()) AND [server_check]", //skyrat edit
|
||||
=======
|
||||
var/datum/db_query/query_build_ban_cache = SSdbcore.NewQuery(
|
||||
"SELECT role, applies_to_admins FROM [format_table_name("ban")] WHERE ckey = :ckey AND unbanned_datetime IS NULL AND (expiration_time IS NULL OR expiration_time > NOW())",
|
||||
>>>>>>> 4b4ae0958fe6b5d511ee6e24a5087599f61d70a3
|
||||
list("ckey" = ckey)
|
||||
)
|
||||
var/query_successful = query_build_ban_cache.warn_execute()
|
||||
@@ -230,19 +206,11 @@
|
||||
player_client.ban_cache = ban_cache
|
||||
return ban_cache
|
||||
|
||||
<<<<<<< HEAD
|
||||
|
||||
/datum/admins/proc/ban_panel(player_key, player_ip, player_cid, role, duration = 1440, applies_to_admins, reason, edit_id, page, admin_key, global_ban = TRUE) // SKYRAT EDIT CHANGE - MULTISERVER
|
||||
if (duration == BAN_PANEL_PERMANENT)
|
||||
duration = null
|
||||
|
||||
=======
|
||||
|
||||
/datum/admins/proc/ban_panel(player_key, player_ip, player_cid, role, duration = 1440, applies_to_admins, reason, edit_id, page, admin_key)
|
||||
if (duration == BAN_PANEL_PERMANENT)
|
||||
duration = null
|
||||
|
||||
>>>>>>> 4b4ae0958fe6b5d511ee6e24a5087599f61d70a3
|
||||
var/panel_height = 620
|
||||
if(edit_id)
|
||||
panel_height = 240
|
||||
@@ -463,10 +431,9 @@
|
||||
ROLE_SYNDICATE,
|
||||
ROLE_TRAITOR,
|
||||
ROLE_WIZARD,
|
||||
<<<<<<< HEAD
|
||||
ROLE_VOIDWALKER,
|
||||
ROLE_BORER, // SKYRAT EDIT ADDITION
|
||||
ROLE_ASSAULT_OPERATIVE, // SKYRAT EDIT ADDITION
|
||||
ROLE_VOIDWALKER,
|
||||
),
|
||||
"Skyrat Ban Options" = list(
|
||||
BAN_PACIFICATION,
|
||||
@@ -480,10 +447,6 @@
|
||||
BAN_OPFOR,
|
||||
BAN_LOOC, // SKYRAT EDIT ADDITION - LOOC muting again
|
||||
), // SKYRAT EDIT ADDITION - EXTRA_BANS
|
||||
=======
|
||||
ROLE_VOIDWALKER,
|
||||
),
|
||||
>>>>>>> 4b4ae0958fe6b5d511ee6e24a5087599f61d70a3
|
||||
)
|
||||
for(var/department in long_job_lists)
|
||||
output += "<div class='column'><label class='rolegroup long [ckey(department)]'>[tgui_fancy ? "<input type='checkbox' name='[department]' class='hidden' onClick='header_click_all_checkboxes(this)'>" : ""][department]</label><div class='content'>"
|
||||
@@ -631,11 +594,7 @@
|
||||
to_chat(usr, span_danger("Ban not [edit_id ? "edited" : "created"] because the following errors were present:\n[error_state.Join("\n")]"), confidential = TRUE)
|
||||
return
|
||||
if(edit_id)
|
||||
<<<<<<< HEAD
|
||||
edit_ban(edit_id, player_key, ip_check, player_ip, cid_check, player_cid, use_last_connection, applies_to_admins, duration, interval, reason, global_ban, mirror_edit, old_key, old_ip, old_cid, old_applies, page, admin_key, changes, roles_to_ban[1] == "Server") // SKYRAT EDIT CHANGE - MULTISERVER
|
||||
=======
|
||||
edit_ban(edit_id, player_key, ip_check, player_ip, cid_check, player_cid, use_last_connection, applies_to_admins, duration, interval, reason, mirror_edit, old_key, old_ip, old_cid, old_applies, page, admin_key, changes, roles_to_ban[1] == "Server")
|
||||
>>>>>>> 4b4ae0958fe6b5d511ee6e24a5087599f61d70a3
|
||||
else
|
||||
create_ban(player_key, ip_check, player_ip, cid_check, player_cid, use_last_connection, applies_to_admins, duration, interval, severity, reason, global_ban, roles_to_ban) // SKYRAT EDIT CHANGE - MULTISERVER
|
||||
|
||||
@@ -724,11 +683,7 @@
|
||||
if(!SSdbcore.MassInsert(format_table_name("ban"), sql_ban, warn = TRUE, special_columns = special_columns))
|
||||
return
|
||||
var/target = ban_target_string(player_key, player_ip, player_cid)
|
||||
<<<<<<< HEAD
|
||||
var/msg = "has created a [global_ban ? "global" : "local"] [isnull(duration) ? "permanent" : "temporary [time_message]"] [applies_to_admins ? "admin " : ""][is_server_ban ? "server ban" : "role ban from [roles_to_ban.len] roles"] for [target]." // SKYRAT EDIT CHANGE - MULTISERVER
|
||||
=======
|
||||
var/msg = "has created a [isnull(duration) ? "permanent" : "temporary [time_message]"] [applies_to_admins ? "admin " : ""][is_server_ban ? "server ban" : "role ban from [roles_to_ban.len] roles"] for [target]."
|
||||
>>>>>>> 4b4ae0958fe6b5d511ee6e24a5087599f61d70a3
|
||||
log_admin_private("[kn] [msg][is_server_ban ? "" : " Roles: [roles_to_ban.Join(", ")]"] Reason: [reason]")
|
||||
message_admins("[kna] [msg][is_server_ban ? "" : " Roles: [roles_to_ban.Join("\n")]"]\nReason: [reason]")
|
||||
if(applies_to_admins)
|
||||
@@ -741,7 +696,6 @@
|
||||
|
||||
notify_all_banned_players(player_ckey, player_ip, player_cid, player_ban_notification, other_ban_notification, is_server_ban, applies_to_admins)
|
||||
|
||||
<<<<<<< HEAD
|
||||
// SKYRAT EDIT ADDITION BEGIN - EXTRA_BANS
|
||||
if(BAN_PACIFICATION in roles_to_ban)
|
||||
var/client/C = GLOB.directory[player_ckey]
|
||||
@@ -751,9 +705,6 @@
|
||||
|
||||
//var/datum/admin_help/linked_ahelp_ticket = admin_ticket_log(player_ckey, "[kna] [msg]") // SKYRAT EDIT ORIGINAL
|
||||
var/datum/admin_help/linked_ahelp_ticket = admin_ticket_log(player_ckey, "[kna] [msg]", FALSE) // SKYRAT EDIT -- Player ticket viewing
|
||||
=======
|
||||
var/datum/admin_help/linked_ahelp_ticket = admin_ticket_log(player_ckey, "[kna] [msg]")
|
||||
>>>>>>> 4b4ae0958fe6b5d511ee6e24a5087599f61d70a3
|
||||
|
||||
if(is_server_ban && linked_ahelp_ticket)
|
||||
linked_ahelp_ticket.Resolve()
|
||||
@@ -988,11 +939,7 @@
|
||||
notify_all_banned_players(ckey(player_key), player_ip, player_cid, banned_player_message, banned_other_message, kick_banned_players, applies_to_admins)
|
||||
unban_panel(player_key, admin_key, player_ip, player_cid, page)
|
||||
|
||||
<<<<<<< HEAD
|
||||
/datum/admins/proc/edit_ban(ban_id, player_key, ip_check, player_ip, cid_check, player_cid, use_last_connection, applies_to_admins, duration, interval, reason, global_ban, mirror_edit, old_key, old_ip, old_cid, old_applies, admin_key, page, list/changes, is_server_ban) // SKYRAT EDIT CHANGE - MULTISERVER
|
||||
=======
|
||||
/datum/admins/proc/edit_ban(ban_id, player_key, ip_check, player_ip, cid_check, player_cid, use_last_connection, applies_to_admins, duration, interval, reason, mirror_edit, old_key, old_ip, old_cid, old_applies, admin_key, page, list/changes, is_server_ban)
|
||||
>>>>>>> 4b4ae0958fe6b5d511ee6e24a5087599f61d70a3
|
||||
if(!check_rights(R_BAN))
|
||||
return
|
||||
if(!SSdbcore.Connect())
|
||||
|
||||
Reference in New Issue
Block a user