mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
Convert most spans to defines (#31080)
* spanish? * aaaagain * keep maptext * Update robot_items.dm * Update span_defines.dm * compiles * Update silicon_mob.dm * compile
This commit is contained in:
@@ -84,7 +84,7 @@
|
||||
msg += " Administrators have been informed."
|
||||
log_game("[key_name(src)] Has hit the per-minute topic limit of [mtl] topic calls in a given game minute")
|
||||
message_admins("[ADMIN_LOOKUPFLW(usr)] Has hit the per-minute topic limit of [mtl] topic calls in a given game minute")
|
||||
to_chat(src, "<span class='danger'>[msg]</span>")
|
||||
to_chat(src, SPAN_DANGER("[msg]"))
|
||||
return
|
||||
|
||||
var/stl = 10 // 10 topics a second
|
||||
@@ -99,7 +99,7 @@
|
||||
|
||||
topiclimiter[SECOND_COUNT] += 1
|
||||
if(topiclimiter[SECOND_COUNT] > stl)
|
||||
to_chat(src, "<span class='danger'>Your previous action was ignored because you've done too many in a second</span>")
|
||||
to_chat(src, SPAN_DANGER("Your previous action was ignored because you've done too many in a second"))
|
||||
return
|
||||
|
||||
//search the href for script injection
|
||||
@@ -118,10 +118,10 @@
|
||||
|
||||
if(href_list["discord_msg"])
|
||||
if(!holder && received_discord_pm < world.time - 6000) // Worse they can do is spam discord for 10 minutes
|
||||
to_chat(usr, "<span class='warning'>You are no longer able to use this, it's been more then 10 minutes since an admin on Discord has responded to you</span>")
|
||||
to_chat(usr, SPAN_WARNING("You are no longer able to use this, it's been more then 10 minutes since an admin on Discord has responded to you"))
|
||||
return
|
||||
if(check_mute(ckey, MUTE_ADMINHELP))
|
||||
to_chat(usr, "<span class='warning'>You cannot use this as your client has been muted from sending messages to the admins on Discord</span>")
|
||||
to_chat(usr, SPAN_WARNING("You cannot use this as your client has been muted from sending messages to the admins on Discord"))
|
||||
return
|
||||
cmd_admin_discord_pm()
|
||||
return
|
||||
@@ -138,7 +138,7 @@
|
||||
|
||||
if(href_list["ssdwarning"])
|
||||
ssd_warning_acknowledged = TRUE
|
||||
to_chat(src, "<span class='notice'>SSD warning acknowledged.</span>")
|
||||
to_chat(src, SPAN_NOTICE("SSD warning acknowledged."))
|
||||
return
|
||||
|
||||
if(href_list["link_forum_account"])
|
||||
@@ -159,7 +159,7 @@
|
||||
|
||||
// I know its a very rare occurance, but I wouldnt doubt people using this to withdraw consent right when sec captures them
|
||||
message_admins("[key_name_admin(usr)] was disconnected due to withdrawing their ToS consent.")
|
||||
to_chat(usr, "<span class='boldannounceooc'>Your ToS consent has been withdrawn. You have been kicked from the server</span>")
|
||||
to_chat(usr, SPAN_BOLDANNOUNCEOOC("Your ToS consent has been withdrawn. You have been kicked from the server"))
|
||||
qdel(src)
|
||||
return
|
||||
|
||||
@@ -177,7 +177,7 @@
|
||||
|
||||
//byond bug ID:2256651
|
||||
if(asset_cache_job && (asset_cache_job in completed_asset_jobs))
|
||||
to_chat(src, "<span class='danger'>An error has been detected in how your client is receiving resources. Attempting to correct.... (If you keep seeing these messages you might want to close byond and reconnect)</span>")
|
||||
to_chat(src, SPAN_DANGER("An error has been detected in how your client is receiving resources. Attempting to correct.... (If you keep seeing these messages you might want to close byond and reconnect)"))
|
||||
src << browse("...", "window=asset_cache_browser")
|
||||
return
|
||||
|
||||
@@ -228,7 +228,7 @@
|
||||
if(throttle)
|
||||
if((last_message_time + throttle > world.time) && !check_rights(R_ADMIN, 0))
|
||||
var/wait_time = round(((last_message_time + throttle) - world.time) / 10, 1)
|
||||
to_chat(src, "<span class='danger'>You are sending messages to quickly. Please wait [wait_time] [wait_time == 1 ? "second" : "seconds"] before sending another message.</span>")
|
||||
to_chat(src, SPAN_DANGER("You are sending messages to quickly. Please wait [wait_time] [wait_time == 1 ? "second" : "seconds"] before sending another message."))
|
||||
return 1
|
||||
last_message_time = world.time
|
||||
|
||||
@@ -237,12 +237,12 @@
|
||||
if(SEND_SIGNAL(mob, COMSIG_MOB_AUTOMUTE_CHECK, src, last_message, mute_type) & WAIVE_AUTOMUTE_CHECK)
|
||||
return FALSE
|
||||
if(last_message_count >= SPAM_TRIGGER_AUTOMUTE)
|
||||
to_chat(src, "<span class='danger'>You have exceeded the spam filter limit for identical messages. An auto-mute was applied.</span>")
|
||||
to_chat(src, SPAN_DANGER("You have exceeded the spam filter limit for identical messages. An auto-mute was applied."))
|
||||
cmd_admin_mute(mob, mute_type, 1)
|
||||
return TRUE
|
||||
|
||||
if(last_message_count >= SPAM_TRIGGER_WARNING)
|
||||
to_chat(src, "<span class='danger'>You are nearing the spam filter limit for identical messages.</span>")
|
||||
to_chat(src, SPAN_DANGER("You are nearing the spam filter limit for identical messages."))
|
||||
return FALSE
|
||||
|
||||
else
|
||||
@@ -305,7 +305,7 @@
|
||||
show_update_prompt = TRUE
|
||||
|
||||
// Actually sent to client much later, so it appears after MOTD.
|
||||
to_chat(src, "<span class='warning'>If the title screen is black, resources are still downloading. Please be patient until the title screen appears.</span>")
|
||||
to_chat(src, SPAN_WARNING("If the title screen is black, resources are still downloading. Please be patient until the title screen appears."))
|
||||
|
||||
GLOB.directory[ckey] = src
|
||||
// Admin Authorisation
|
||||
@@ -431,11 +431,11 @@
|
||||
if(GLOB.custom_event_msg && GLOB.custom_event_msg != "")
|
||||
to_chat(src, "<h1 class='alert'>Custom Event</h1>")
|
||||
to_chat(src, "<h2 class='alert'>A custom event is taking place. OOC Info:</h2>")
|
||||
to_chat(src, "<span class='alert'>[html_encode(GLOB.custom_event_msg)]</span>")
|
||||
to_chat(src, SPAN_ALERT("[html_encode(GLOB.custom_event_msg)]"))
|
||||
to_chat(src, "<br>")
|
||||
|
||||
if(!winexists(src, "asset_cache_browser")) // The client is using a custom skin, tell them.
|
||||
to_chat(src, "<span class='warning'>Unable to access asset cache browser, if you are using a custom skin file, please allow DS to download the updated version, if you are not, then make a bug report. This is not a critical issue but can cause issues with resource downloading, as it is impossible to know when extra resources arrived to you.</span>")
|
||||
to_chat(src, SPAN_WARNING("Unable to access asset cache browser, if you are using a custom skin file, please allow DS to download the updated version, if you are not, then make a bug report. This is not a critical issue but can cause issues with resource downloading, as it is impossible to know when extra resources arrived to you."))
|
||||
|
||||
update_ambience_pref()
|
||||
|
||||
@@ -454,10 +454,10 @@
|
||||
to_chat(src, "The queue server is currently [SSqueue.queue_enabled ? "<font color='green'>enabled</font>" : "<font color='disabled'>disabled</font>"], with a threshold of <b>[SSqueue.queue_threshold]</b>. This <b>[SSqueue.persist_queue ? "will" : "will not"]</b> persist through rounds.")
|
||||
|
||||
if(holder && holder.restricted_by_2fa)
|
||||
to_chat(src,"<span class='boldannounceooc'><big>You do not have 2FA enabled. Admin verbs will be unavailable until you have enabled 2FA.\nTo setup 2FA, head to the following menu: <a href='byond://?_src_=prefs;preference=tab;tab=[TAB_GAME]'>Game Preferences</a></span>") // Very fucking obvious
|
||||
to_chat(src,SPAN_BOLDANNOUNCEOOC("<big>You do not have 2FA enabled. Admin verbs will be unavailable until you have enabled 2FA.\nTo setup 2FA, head to the following menu: <a href='byond://?_src_=prefs;preference=tab;tab=[TAB_GAME]'>Game Preferences</a>")) // Very fucking obvious
|
||||
// Tell client about their connection
|
||||
to_chat(src, "<span class='notice'>You are currently connected [prefs.server_region ? "via the <b>[prefs.server_region]</b> relay" : "directly"] to Paradise.</span>")
|
||||
to_chat(src, "<span class='notice'>You can change this using the <code>Change Region</code> verb in the OOC tab, as selecting a region closer to you may reduce latency.</span>")
|
||||
to_chat(src, SPAN_NOTICE("You are currently connected [prefs.server_region ? "via the <b>[prefs.server_region]</b> relay" : "directly"] to Paradise."))
|
||||
to_chat(src, SPAN_NOTICE("You can change this using the <code>Change Region</code> verb in the OOC tab, as selecting a region closer to you may reduce latency."))
|
||||
display_job_bans(TRUE)
|
||||
|
||||
/client/proc/is_connecting_from_localhost()
|
||||
@@ -664,14 +664,14 @@
|
||||
// This needs to happen after their account is put into the DB
|
||||
// This way, admins can then note people
|
||||
spawn(40) // This is necessary because without it, they won't see the message, and addtimer cannot be used because the timer system may not have initialized yet
|
||||
message_admins("<span class='adminnotice'>IPIntel: [key_name_admin(src)] on IP [address] was rejected. [detailsurl]</span>")
|
||||
message_admins(SPAN_ADMINNOTICE("IPIntel: [key_name_admin(src)] on IP [address] was rejected. [detailsurl]"))
|
||||
var/blockmsg = "<B>Error: proxy/VPN detected. Proxy/VPN use is not allowed here. Deactivate it before you reconnect.</B>"
|
||||
if(GLOB.configuration.url.banappeals_url)
|
||||
blockmsg += "\nIf you are not actually using a proxy/VPN, or have no choice but to use one, request whitelisting at: [GLOB.configuration.url.banappeals_url]"
|
||||
to_chat(src, blockmsg)
|
||||
qdel(src)
|
||||
else
|
||||
message_admins("<span class='adminnotice'>IPIntel: [key_name_admin(src)] on IP [address] is likely to be using a Proxy/VPN. [detailsurl]</span>")
|
||||
message_admins(SPAN_ADMINNOTICE("IPIntel: [key_name_admin(src)] on IP [address] is likely to be using a Proxy/VPN. [detailsurl]"))
|
||||
|
||||
|
||||
/client/proc/check_forum_link()
|
||||
@@ -755,7 +755,7 @@
|
||||
if(fromban)
|
||||
url += "&fwd=appeal"
|
||||
to_chat(src, {"Now opening a window to verify your information with the forums, so that you can appeal your ban. If the window does not load, please copy/paste this link: <a href="[url]">[url]</a>"})
|
||||
to_chat(src, "<span class='boldannounceooc'>If you are screenshotting this screen for your ban appeal, please blur/draw over the token in the above link.</span>")
|
||||
to_chat(src, SPAN_BOLDANNOUNCEOOC("If you are screenshotting this screen for your ban appeal, please blur/draw over the token in the above link."))
|
||||
else
|
||||
to_chat(src, {"Now opening a window to verify your information with the forums. If the window does not load, please go to: <a href="[url]">[url]</a>"})
|
||||
|
||||
@@ -819,7 +819,7 @@
|
||||
else
|
||||
if(!topic || !topic["token"] || !tokens[ckey] || topic["token"] != tokens[ckey])
|
||||
if(!cidcheck_spoofckeys[ckey])
|
||||
message_admins("<span class='adminnotice'>[key_name(src)] appears to have attempted to spoof a cid randomizer check.</span>")
|
||||
message_admins(SPAN_ADMINNOTICE("[key_name(src)] appears to have attempted to spoof a cid randomizer check."))
|
||||
cidcheck_spoofckeys[ckey] = TRUE
|
||||
cidcheck[ckey] = computer_id
|
||||
tokens[ckey] = cid_check_reconnect()
|
||||
@@ -833,11 +833,11 @@
|
||||
// Change detected, they are randomizing
|
||||
cidcheck -= ckey // To allow them to try again after removing CID randomization
|
||||
|
||||
to_chat(src, "<span class='userdanger'>Connection Error:</span>")
|
||||
to_chat(src, "<span class='danger'>Invalid ComputerID(spoofed). Please remove the ComputerID spoofer from your BYOND installation and try again.</span>")
|
||||
to_chat(src, SPAN_USERDANGER("Connection Error:"))
|
||||
to_chat(src, SPAN_DANGER("Invalid ComputerID(spoofed). Please remove the ComputerID spoofer from your BYOND installation and try again."))
|
||||
|
||||
if(!cidcheck_failedckeys[ckey])
|
||||
message_admins("<span class='adminnotice'>[key_name(src)] has been detected as using a CID randomizer. Connection rejected.</span>")
|
||||
message_admins(SPAN_ADMINNOTICE("[key_name(src)] has been detected as using a CID randomizer. Connection rejected."))
|
||||
GLOB.discord_manager.send2discord_simple_noadmins("**\[Warning]** [key_name(src)] has been detected as using a CID randomizer. Connection rejected.")
|
||||
cidcheck_failedckeys[ckey] = TRUE
|
||||
note_randomizer_user()
|
||||
@@ -851,12 +851,12 @@
|
||||
// don't shoot, I'm innocent
|
||||
if(cidcheck_failedckeys[ckey])
|
||||
// Atonement
|
||||
message_admins("<span class='adminnotice'>[key_name_admin(src)] has been allowed to connect after showing they removed their cid randomizer</span>")
|
||||
message_admins(SPAN_ADMINNOTICE("[key_name_admin(src)] has been allowed to connect after showing they removed their cid randomizer"))
|
||||
GLOB.discord_manager.send2discord_simple_noadmins("**\[Info]** [key_name(src)] has been allowed to connect after showing they removed their cid randomizer.")
|
||||
cidcheck_failedckeys -= ckey
|
||||
|
||||
if(cidcheck_spoofckeys[ckey])
|
||||
message_admins("<span class='adminnotice'>[key_name_admin(src)] has been allowed to connect after appearing to have attempted to spoof a cid randomizer check because it <i>appears</i> they aren't spoofing one this time</span>")
|
||||
message_admins(SPAN_ADMINNOTICE("[key_name_admin(src)] has been allowed to connect after appearing to have attempted to spoof a cid randomizer check because it <i>appears</i> they aren't spoofing one this time"))
|
||||
cidcheck_spoofckeys -= ckey
|
||||
cidcheck -= ckey
|
||||
|
||||
@@ -1105,7 +1105,7 @@
|
||||
message_admins("[key] has just connected for the first time. BYOND account registered on [byondacc_date] ([byondacc_age] days old)")
|
||||
|
||||
/client/proc/show_update_notice()
|
||||
to_chat(src, "<span class='userdanger'>Your BYOND client (v: [byond_version].[byond_build]) is out of date. This can cause glitches. We highly suggest you download the latest client from <a href='https://www.byond.com/download/'>byond.com</a> before playing. You can also update via the BYOND launcher application.</span>")
|
||||
to_chat(src, SPAN_USERDANGER("Your BYOND client (v: [byond_version].[byond_build]) is out of date. This can cause glitches. We highly suggest you download the latest client from <a href='https://www.byond.com/download/'>byond.com</a> before playing. You can also update via the BYOND launcher application."))
|
||||
|
||||
/client/proc/update_ambience_pref()
|
||||
if(prefs.sound & SOUND_AMBIENCE)
|
||||
@@ -1154,7 +1154,7 @@
|
||||
set name = "Change Region"
|
||||
|
||||
if(!length(GLOB.configuration.system.region_map))
|
||||
to_chat(usr, "<span class='warning'>Error: No extra regions defined for this server</span>")
|
||||
to_chat(usr, SPAN_WARNING("Error: No extra regions defined for this server"))
|
||||
return
|
||||
|
||||
var/list/target_regions = list("--DIRECT--")
|
||||
@@ -1231,7 +1231,7 @@
|
||||
/client/proc/check_panel_loaded()
|
||||
if(stat_panel.is_ready())
|
||||
return
|
||||
to_chat(src, "<span class='userdanger'>Statpanel failed to load, click <a href='byond://?src=[UID()];reload_statbrowser=1'>here</a> to reload the panel </span>")
|
||||
to_chat(src, SPAN_USERDANGER("Statpanel failed to load, click <a href='byond://?src=[UID()];reload_statbrowser=1'>here</a> to reload the panel "))
|
||||
|
||||
/**
|
||||
* Handles incoming messages from the stat-panel TGUI.
|
||||
|
||||
@@ -2164,9 +2164,9 @@
|
||||
html += "<font color=orange>[rank]</font></td><td></td></tr>"
|
||||
continue
|
||||
if((job.title in GLOB.command_positions) || (job.title == "AI"))//Bold head jobs
|
||||
html += "<b><span class='dark'>[rank]</span></b>"
|
||||
html += "<b>[SPAN_DARK("[rank]")]</b>"
|
||||
else
|
||||
html += "<span class='dark'>[rank]</span>"
|
||||
html += SPAN_DARK("[rank]")
|
||||
|
||||
html += "</td><td width='40%'>"
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
if(tgui_alert(user, "Would you like to open the Job selection info in your browser?", "Open Job Selection", list("Yes", "No")) == "Yes")
|
||||
user << link("[GLOB.configuration.url.wiki_url]/index.php/Job_Selection_and_Assignment")
|
||||
else
|
||||
to_chat(user, "<span class='danger'>The Wiki URL is not set in the server configuration.</span>")
|
||||
to_chat(user, SPAN_DANGER("The Wiki URL is not set in the server configuration."))
|
||||
if("random")
|
||||
if(active_character.alternate_option == GET_RANDOM_JOB || active_character.alternate_option == BE_ASSISTANT)
|
||||
active_character.alternate_option += 1
|
||||
@@ -196,7 +196,7 @@
|
||||
var/datum/species/NS = GLOB.all_species[active_character.species]
|
||||
if(!istype(NS)) //The species was invalid. Notify the user and fail out.
|
||||
active_character.species = prev_species
|
||||
to_chat(user, "<span class='warning'>Invalid species, please pick something else.</span>")
|
||||
to_chat(user, SPAN_WARNING("Invalid species, please pick something else."))
|
||||
return
|
||||
if(prev_species != active_character.species)
|
||||
active_character.quirks = list() //Reset their quirks
|
||||
@@ -1030,7 +1030,7 @@
|
||||
to_chat(user, "<span class='notice'>You will now get put into cryo dorms after [GLOB.configuration.afk.auto_cryo_minutes] minutes. \
|
||||
Then after [GLOB.configuration.afk.auto_despawn_minutes] minutes you will be fully despawned. You will receive a visual and auditory warning before you will be put into cryodorms.</span>")
|
||||
else
|
||||
to_chat(user, "<span class='notice'>Automatic cryoing turned off.</span>")
|
||||
to_chat(user, SPAN_NOTICE("Automatic cryoing turned off."))
|
||||
toggles2 ^= PREFTOGGLE_2_AFKWATCH
|
||||
|
||||
if("UIcolor")
|
||||
|
||||
@@ -41,7 +41,7 @@ GLOBAL_LIST_EMPTY(gear_tgui_info)
|
||||
return TRUE
|
||||
|
||||
if(gear.donator_tier && user.client.donator_level < gear.donator_tier)
|
||||
to_chat(user, "<span class='warning'>That gear is only available at a higher donation tier than you are on.</span>")
|
||||
to_chat(user, SPAN_WARNING("That gear is only available at a higher donation tier than you are on."))
|
||||
return FALSE
|
||||
|
||||
user.client.prefs.build_loadout(gear)
|
||||
|
||||
@@ -156,7 +156,7 @@ GLOBAL_LIST_INIT(special_role_times, list(
|
||||
|
||||
successful_load = load_preferences(Q)
|
||||
if(!successful_load)
|
||||
to_chat(C, "<span class='narsie'>Your preferences failed to load. Please inform the server host immediately.</span>")
|
||||
to_chat(C, SPAN_NARSIE("Your preferences failed to load. Please inform the server host immediately."))
|
||||
|
||||
/datum/preferences/proc/color_square(colour)
|
||||
return "<span style='font-face: fixedsys; background-color: [colour]; color: [colour]'>___</span>"
|
||||
@@ -200,7 +200,7 @@ GLOBAL_LIST_INIT(special_role_times, list(
|
||||
dat += "<a href=\"byond://?_src_=prefs;preference=open_load_dialog\">Load slot</a> - "
|
||||
dat += "<a href=\"byond://?_src_=prefs;preference=save\">Save slot</a>"
|
||||
if(active_character.from_db)
|
||||
dat += "- <a href=\"byond://?_src_=prefs;preference=clear\"><span class='bad'>Clear slot</span></a>"
|
||||
dat += "- <a href=\"byond://?_src_=prefs;preference=clear\">[SPAN_BAD("Clear slot")]</a>"
|
||||
dat += "</center>"
|
||||
dat += "</td></tr></table>"
|
||||
dat += "<table width='100%'><tr><td width='405px' height='200px' valign='top'>"
|
||||
@@ -514,7 +514,7 @@ GLOBAL_LIST_INIT(special_role_times, list(
|
||||
dat += "<b>Be [capitalize(i)]:</b><a class=[is_special ? "green" : "red"] href='byond://?_src_=prefs;preference=be_special;role=[i]'><b>[(is_special) ? "Yes" : "No"]</b></a><br>"
|
||||
dat += "<h2>Total Playtime:</h2>"
|
||||
if(!GLOB.configuration.jobs.enable_exp_tracking)
|
||||
dat += "<span class='warning'>Playtime tracking is not enabled.</span>"
|
||||
dat += SPAN_WARNING("Playtime tracking is not enabled.")
|
||||
else
|
||||
dat += "<b>Your [EXP_TYPE_CREW] playtime is [user.client.get_exp_type(EXP_TYPE_CREW)]</b><br>"
|
||||
dat += "</td><td width='405px' height='300px' valign='top'>"
|
||||
@@ -559,7 +559,7 @@ GLOBAL_LIST_INIT(special_role_times, list(
|
||||
keys_buttons += "<a href='byond://?_src_=prefs;preference=keybindings;set=[kb_uid];old=[url_encode(key)];'>[disp_key]</a> "
|
||||
dat += "<tr>"
|
||||
dat += "<td style='width: 25%'>[KB.name]</td>"
|
||||
dat += "<td style='width: 45%'>[keys_buttons][(length(keys) < 5) ? "<a href='byond://?_src_=prefs;preference=keybindings;set=[kb_uid];'><span class='good'>+</span></a></td>" : "</td>"]"
|
||||
dat += "<td style='width: 45%'>[keys_buttons][(length(keys) < 5) ? "<a href='byond://?_src_=prefs;preference=keybindings;set=[kb_uid];'>[SPAN_GOOD("+")]</a></td>" : "</td>"]"
|
||||
dat += "<td style='width: 20%'><a href='byond://?_src_=prefs;preference=keybindings;reset=[kb_uid]'>Reset to Default</a> <a href='byond://?_src_=prefs;preference=keybindings;clear=[kb_uid]'>Clear</a></td>"
|
||||
if(KB.category == KB_CATEGORY_EMOTE_CUSTOM)
|
||||
var/datum/keybinding/custom/custom_emote_keybind = kb
|
||||
@@ -613,13 +613,13 @@ GLOBAL_LIST_INIT(special_role_times, list(
|
||||
if(PREFTOGGLE_SPECIAL)
|
||||
dat += "<td style='width: 20%'><a href='byond://?_src_=prefs;preference=preference_toggles;toggle=[toggle.UID()];'>Adjust</a></td>"
|
||||
if(PREFTOGGLE_TOGGLE1)
|
||||
dat += "<td style='width: 20%'><a href='byond://?_src_=prefs;preference=preference_toggles;toggle=[toggle.UID()];'>[(toggles & toggle.preftoggle_bitflag) ? "<span class='good'>Enabled</span>" : "<span class='bad'>Disabled</span>"]</a></td>"
|
||||
dat += "<td style='width: 20%'><a href='byond://?_src_=prefs;preference=preference_toggles;toggle=[toggle.UID()];'>[(toggles & toggle.preftoggle_bitflag) ? SPAN_GOOD("Enabled") : SPAN_BAD("Disabled")]</a></td>"
|
||||
if(PREFTOGGLE_TOGGLE2)
|
||||
dat += "<td style='width: 20%'><a href='byond://?_src_=prefs;preference=preference_toggles;toggle=[toggle.UID()];'>[(toggles2 & toggle.preftoggle_bitflag) ? "<span class='good'>Enabled</span>" : "<span class='bad'>Disabled</span>"]</a></td>"
|
||||
dat += "<td style='width: 20%'><a href='byond://?_src_=prefs;preference=preference_toggles;toggle=[toggle.UID()];'>[(toggles2 & toggle.preftoggle_bitflag) ? SPAN_GOOD("Enabled") : SPAN_BAD("Disabled")]</a></td>"
|
||||
if(PREFTOGGLE_SOUND)
|
||||
dat += "<td style='width: 20%'><a href='byond://?_src_=prefs;preference=preference_toggles;toggle=[toggle.UID()];'>[(sound & toggle.preftoggle_bitflag) ? "<span class='good'>Enabled</span>" : "<span class='bad'>Disabled</span>"]</a></td>"
|
||||
dat += "<td style='width: 20%'><a href='byond://?_src_=prefs;preference=preference_toggles;toggle=[toggle.UID()];'>[(sound & toggle.preftoggle_bitflag) ? SPAN_GOOD("Enabled") : SPAN_BAD("Disabled")]</a></td>"
|
||||
if(PREFTOGGLE_LIGHT)
|
||||
dat += "<td style='width: 20%'><a href='byond://?_src_=prefs;preference=preference_toggles;toggle=[toggle.UID()];'>[(light & toggle.preftoggle_bitflag) ? "<span class='good'>Enabled</span>" : "<span class='bad'>Disabled</span>"]</a></td>"
|
||||
dat += "<td style='width: 20%'><a href='byond://?_src_=prefs;preference=preference_toggles;toggle=[toggle.UID()];'>[(light & toggle.preftoggle_bitflag) ? SPAN_GOOD("Enabled") : SPAN_BAD("Disabled")]</a></td>"
|
||||
dat += "</tr>"
|
||||
dat += "<tr><td colspan=4><br></td></tr>"
|
||||
|
||||
@@ -673,7 +673,7 @@ GLOBAL_LIST_INIT(special_role_times, list(
|
||||
return
|
||||
|
||||
if(!isnum(desiredLvl))
|
||||
to_chat(user, "<span class='warning'>UpdateJobPreference - desired level was not a number. Please notify coders!</span>")
|
||||
to_chat(user, SPAN_WARNING("UpdateJobPreference - desired level was not a number. Please notify coders!"))
|
||||
ShowChoices(user)
|
||||
return
|
||||
|
||||
|
||||
@@ -32,16 +32,16 @@
|
||||
CRASH("[src] did not have it's set_toggles overriden even though it was a special toggle, please use the special_toggle path!")
|
||||
if(PREFTOGGLE_TOGGLE1)
|
||||
our_prefs.toggles ^= preftoggle_bitflag
|
||||
to_chat(user, "<span class='notice'>[(our_prefs.toggles & preftoggle_bitflag) ? enable_message : disable_message]</span>")
|
||||
to_chat(user, SPAN_NOTICE("[(our_prefs.toggles & preftoggle_bitflag) ? enable_message : disable_message]"))
|
||||
if(PREFTOGGLE_TOGGLE2)
|
||||
our_prefs.toggles2 ^= preftoggle_bitflag
|
||||
to_chat(user, "<span class='notice'>[(our_prefs.toggles2 & preftoggle_bitflag) ? enable_message : disable_message]</span>")
|
||||
to_chat(user, SPAN_NOTICE("[(our_prefs.toggles2 & preftoggle_bitflag) ? enable_message : disable_message]"))
|
||||
if(PREFTOGGLE_SOUND)
|
||||
our_prefs.sound ^= preftoggle_bitflag
|
||||
to_chat(user, "<span class='notice'>[(our_prefs.sound & preftoggle_bitflag) ? enable_message : disable_message]</span>")
|
||||
to_chat(user, SPAN_NOTICE("[(our_prefs.sound & preftoggle_bitflag) ? enable_message : disable_message]"))
|
||||
if(PREFTOGGLE_LIGHT)
|
||||
our_prefs.light ^= preftoggle_bitflag
|
||||
to_chat(user, "<span class='notice'>[(our_prefs.light & preftoggle_bitflag) ? enable_message : disable_message]</span>")
|
||||
to_chat(user, SPAN_NOTICE("[(our_prefs.light & preftoggle_bitflag) ? enable_message : disable_message]"))
|
||||
|
||||
SSblackbox.record_feedback("tally", "toggle_verbs", 1, blackbox_message)
|
||||
our_prefs.save_preferences(user)
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
* If a bad attack isn't treated, it can easily feed into itself and kill the user.
|
||||
*/
|
||||
/datum/quirk/asthma/proc/trigger_asthma_symptom(current_severity)
|
||||
owner.visible_message("<span class='notice'>[owner] violently coughs!</span>", "<span class='warning'>Your asthma flares up!</span>")
|
||||
owner.visible_message(SPAN_NOTICE("[owner] violently coughs!"), SPAN_WARNING("Your asthma flares up!"))
|
||||
switch(current_severity)
|
||||
if(50 to 75)
|
||||
owner.adjustOxyLoss(5)
|
||||
|
||||
@@ -104,16 +104,16 @@ GLOBAL_LIST_EMPTY(quirk_paths)
|
||||
if(!active_character)
|
||||
return FALSE
|
||||
if((to_add.species_flags & QUIRK_MACHINE_INCOMPATIBLE) && (active_character.species == "Machine"))
|
||||
to_chat(src.client, "<span class='warning'>You can't put that quirk on a robotic character.</span>")
|
||||
to_chat(src.client, SPAN_WARNING("You can't put that quirk on a robotic character."))
|
||||
return FALSE
|
||||
if((to_add.species_flags & QUIRK_ORGANIC_INCOMPATIBLE) && (active_character.species != "Machine"))
|
||||
to_chat(src.client, "<span class='warning'>You can't put that quirk on an organic character.</span>")
|
||||
to_chat(src.client, SPAN_WARNING("You can't put that quirk on an organic character."))
|
||||
return FALSE
|
||||
if((to_add.species_flags & QUIRK_SLIME_INCOMPATIBLE) && (active_character.species == "Slime People")) //Since they don't have eyes
|
||||
to_chat(src.client, "<span class='warning'>You can't put that quirk on a slime character, you have no eyes!</span>")
|
||||
to_chat(src.client, SPAN_WARNING("You can't put that quirk on a slime character, you have no eyes!"))
|
||||
return FALSE
|
||||
if((to_add.species_flags & QUIRK_PLASMAMAN_INCOMPATIBLE) && (active_character.species == "Plasmaman")) //If someone can figure out how to only let plasmaman with a secondary language take this feel free to do that
|
||||
to_chat(src.client, "<span class='warning'>You can't put that quirk on a plasmaman, you have no species language!</span>")
|
||||
to_chat(src.client, SPAN_WARNING("You can't put that quirk on a plasmaman, you have no species language!"))
|
||||
return FALSE
|
||||
active_character.quirks += to_add
|
||||
return TRUE
|
||||
|
||||
Reference in New Issue
Block a user