Skip to content

Commit

Permalink
upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
Samirakis committed Oct 29, 2024
2 parents d6b4ca8 + b76e016 commit 47fe903
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 18 deletions.
2 changes: 1 addition & 1 deletion code/datums/keybindings/communication_keybinds.dm
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
/datum/keybinding/client/communication/asay
name = ADMIN_CHANNEL
keys = list("F5")
required_rights = R_ADMIN
required_rights = R_ADMIN | R_MOD

/datum/keybinding/client/communication/dsay
name = DSAY_CHANNEL
Expand Down
1 change: 1 addition & 0 deletions code/game/area/areas/ruins/lavaland.dm
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@

// This area exists so that lavaland ruins dont overwrite the baseturfs on regular space ruins
/area/ruin/unpowered/misc_lavaruin
outdoors = FALSE

//'safe' caves
/area/ruin/unpowered/safe_cave
Expand Down
3 changes: 2 additions & 1 deletion code/game/gamemodes/antag_paradise/antag_paradise.dm
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@

if(ROLE_MALF_AI)
if(special_antag_amount)
var/datum/mind/special_antag = roundstart ? safepick(get_players_for_role(ROLE_MALF_AI, req_job_rank = JOB_TITLE_AI)) : safepick(antag_possibilities[ROLE_MALF_AI])
var/datum/mind/special_antag = safepick(antag_possibilities[ROLE_MALF_AI])
if(special_antag)
special_antag.restricted_roles = (restricted_jobs|protected_jobs|protected_jobs_AI)
special_antag.restricted_roles -= JOB_TITLE_AI
Expand Down Expand Up @@ -215,6 +215,7 @@
antag_possibilities[ROLE_CHANGELING] = get_players_for_role(ROLE_CHANGELING)
antag_possibilities[ROLE_TRAITOR] = get_players_for_role(ROLE_TRAITOR)
antag_possibilities[ROLE_THIEF] = get_players_for_role(ROLE_THIEF, list(SPECIES_VOX = 4))
antag_possibilities[ROLE_MALF_AI] = get_players_for_role(ROLE_MALF_AI)

calculate_antags()

Expand Down
1 change: 0 additions & 1 deletion code/game/jobs/job/security.dm
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
minimal_access = list(ACCESS_SECURITY, ACCESS_SEC_DOORS, ACCESS_BRIG, ACCESS_ARMORY, ACCESS_COURT, ACCESS_MAINT_TUNNELS, ACCESS_WEAPONS)
alt_titles = list("Brig Sergeant")
minimal_player_age = 21
min_age_type = JOB_MIN_AGE_HIGH_ED
blocked_race_for_job = list(SPECIES_VOX)
exp_requirements = 2100
exp_type = EXP_TYPE_SECURITY
Expand Down
2 changes: 1 addition & 1 deletion code/game/turfs/simulated/floor/lava.dm
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
if(burn_obj.resistance_flags & FIRE_PROOF)
burn_obj.resistance_flags &= ~FIRE_PROOF
if(burn_obj.armor.getRating(FIRE) > 50) //obj with 100% fire armor still get slowly burned away.
burn_obj.armor.setRating(fire_value = 50)
burn_obj.armor = burn_obj.armor.setRating(fire_value = 50)
burn_obj.fire_act(exposed_temperature = temperature_damage, exposed_volume = 1000)
return TRUE

Expand Down
1 change: 1 addition & 0 deletions code/modules/admin/admin_verbs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ GLOBAL_LIST_INIT(admin_verbs_mod, list(
/datum/admins/proc/PlayerNotes,
/client/proc/admin_ghost, /*allows us to ghost/reenter body at will*/
/client/proc/cmd_mentor_say,
/client/proc/cmd_admin_say, /*admin-only ooc chat*/
/datum/admins/proc/show_player_notes,
/client/proc/player_panel_new,
/client/proc/dsay,
Expand Down
27 changes: 14 additions & 13 deletions code/modules/admin/verbs/adminsay.dm
Original file line number Diff line number Diff line change
@@ -1,33 +1,34 @@
/client/proc/cmd_admin_say(msg as text)
set name = "Asay" //Gave this shit a shorter name so you only have to time out "asay" rather than "admin say" to use it --NeoFite
set hidden = 1
if(!check_rights(R_ADMIN)) return
if(!check_rights(R_ADMIN|R_MOD))
return

msg = sanitize(copytext_char(msg, 1, MAX_MESSAGE_LEN))
if(!msg) return
if(!msg)
return

msg = handleDiscordEmojis(msg)

var/datum/asays/asay = new(usr.ckey, usr.client.holder.rank, msg, world.timeofday)
GLOB.asays += asay
log_adminsay(msg, src)

if(check_rights(R_ADMIN,0))
for(var/client/C in GLOB.admins)
if(R_ADMIN & C.holder.rights)
// Lets see if this admin was pinged in the asay message
if(findtext(msg, "@[C.ckey]") || findtext(msg, "@[C.key]")) // Check ckey and key, so you can type @AffectedArc07 or @affectedarc07
SEND_SOUND(C, 'sound/misc/ping.ogg')
msg = replacetext(msg, "@[C.ckey]", "<font color='red'>@[C.ckey]</font>")
msg = replacetext(msg, "@[C.key]", "<font color='red'>@[C.key]</font>") // Same applies here. key and ckey.
for(var/client/C in GLOB.admins)
if(check_rights(R_ADMIN|R_MOD, 0, C.mob))
// Lets see if this admin was pinged in the asay message
if(findtext(msg, "@[C.ckey]") || findtext(msg, "@[C.key]")) // Check ckey and key, so you can type @AffectedArc07 or @affectedarc07
SEND_SOUND(C, 'sound/misc/ping.ogg')
msg = replacetext(msg, "@[C.ckey]", "<font color='red'>@[C.ckey]</font>")
msg = replacetext(msg, "@[C.key]", "<font color='red'>@[C.key]</font>") // Same applies here. key and ckey.

msg = "<span class='emoji_enabled'>[msg]</span>"
to_chat(C, "<span class='admin_channel'>ADMIN: <span class='name'>[key_name(usr, 1)]</span> ([admin_jump_link(mob)]): <span class='message'>[msg]</span></span>", MESSAGE_TYPE_ADMINCHAT, confidential = TRUE)
msg = "<span class='emoji_enabled'>[msg]</span>"
to_chat(C, "<span class='admin_channel'>ADMIN: <span class='name'>[key_name(usr, 1)]</span> ([admin_jump_link(mob)]): <span class='message'>[msg]</span></span>", MESSAGE_TYPE_ADMINCHAT, confidential = TRUE)

SSblackbox.record_feedback("tally", "admin_verb", 1, "Asay") //If you are copy-pasting this, ensure the 4th parameter is unique to the new proc!

/client/proc/get_admin_say()
if(check_rights(R_ADMIN, FALSE))
if(check_rights(R_ADMIN|R_MOD, FALSE))
var/msg = input(src, null, "asay \"text\"") as text|null
cmd_admin_say(msg)
else if(check_rights(R_MENTOR))
Expand Down
2 changes: 1 addition & 1 deletion strings/lobby_phrases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
Также известно как SunSpace.
ХОНК.
Также попробуйте майнкрафт.
КМ никогда не будет главой!
КМ всегда был главой!
Как менять руки?

0 comments on commit 47fe903

Please sign in to comment.