mirror of
https://github.com/Yawn-Wider/YWPolarisVore.git
synced 2026-08-24 05:28:16 +01:00
refactors most spans
This commit is contained in:
@@ -29,7 +29,7 @@ var/obj/effect/lobby_image = new /obj/effect/lobby_image
|
||||
/mob/new_player/Login()
|
||||
update_Login_details() //handles setting lastKnownIP and computer_id for use by the ban systems as well as checking for multikeying
|
||||
if(join_motd)
|
||||
join_motd = GLOB.is_valid_url.Replace(join_motd,"<span class='linkify'>$1</span>")
|
||||
join_motd = GLOB.is_valid_url.Replace(join_motd,span_linkify("$1"))
|
||||
to_chat(src, "<div class=\"motd\">[join_motd]</div>")
|
||||
|
||||
if(has_respawned)
|
||||
|
||||
@@ -179,10 +179,10 @@
|
||||
close_spawn_windows()
|
||||
var/obj/O = locate("landmark*Observer-Start")
|
||||
if(istype(O))
|
||||
to_chat(src, "<span class='notice'>Now teleporting.</span>")
|
||||
to_chat(src, span_notice("Now teleporting."))
|
||||
observer.forceMove(O.loc)
|
||||
else
|
||||
to_chat(src, "<span class='danger'>Could not locate an observer spawn point. Use the Teleport verb to jump to the station map.</span>")
|
||||
to_chat(src, span_danger("Could not locate an observer spawn point. Use the Teleport verb to jump to the station map."))
|
||||
|
||||
announce_ghost_joinleave(src)
|
||||
|
||||
@@ -206,9 +206,9 @@
|
||||
|
||||
var/time_till_respawn = time_till_respawn()
|
||||
if(time_till_respawn == -1) // Special case, never allowed to respawn
|
||||
to_chat(usr, "<span class='warning'>Respawning is not allowed!</span>")
|
||||
to_chat(usr, span_warning("Respawning is not allowed!"))
|
||||
else if(time_till_respawn) // Nonzero time to respawn
|
||||
to_chat(usr, "<span class='warning'>You can't respawn yet! You need to wait another [round(time_till_respawn/10/60, 0.1)] minutes.</span>")
|
||||
to_chat(usr, span_warning("You can't respawn yet! You need to wait another [round(time_till_respawn/10/60, 0.1)] minutes."))
|
||||
return
|
||||
/*
|
||||
if(client.prefs.species != "Human" && !check_rights(R_ADMIN, 0)) //VORESTATION EDITS: THE COMMENTED OUT AREAS FROM LINE 154 TO 178
|
||||
@@ -229,15 +229,15 @@
|
||||
for (var/mob/living/carbon/human/C in mob_list)
|
||||
var/char_name = client.prefs.real_name
|
||||
if(char_name == C.real_name)
|
||||
to_chat(usr, "<span class='notice'>There is a character that already exists with the same name - <b>[C.real_name]</b>, please join with a different one, or use Quit the Round with the previous character.</span>") //VOREStation Edit
|
||||
to_chat(usr, span_notice("There is a character that already exists with the same name - <b>[C.real_name]</b>, please join with a different one, or use Quit the Round with the previous character.")) //VOREStation Edit
|
||||
return
|
||||
*/ //Vorestation Removal End
|
||||
|
||||
if(!config.enter_allowed)
|
||||
to_chat(usr, "<span class='notice'>There is an administrative lock on entering the game!</span>")
|
||||
to_chat(usr, span_notice("There is an administrative lock on entering the game!"))
|
||||
return
|
||||
else if(ticker && ticker.mode && ticker.mode.explosion_in_progress)
|
||||
to_chat(usr, "<span class='danger'>The station is currently exploding. Joining would go poorly.</span>")
|
||||
to_chat(usr, span_danger("The station is currently exploding. Joining would go poorly."))
|
||||
return
|
||||
|
||||
if(!is_alien_whitelisted(src, GLOB.all_species[client.prefs.species]))
|
||||
@@ -437,7 +437,7 @@
|
||||
to_chat(usr, span_red("The round is either not ready, or has already finished..."))
|
||||
return 0
|
||||
if(!config.enter_allowed)
|
||||
to_chat(usr, "<span class='notice'>There is an administrative lock on entering the game!</span>")
|
||||
to_chat(usr, span_notice("There is an administrative lock on entering the game!"))
|
||||
return 0
|
||||
if(!IsJobAvailable(rank))
|
||||
tgui_alert_async(src,"[rank] is not available. Please try another.")
|
||||
|
||||
@@ -8,28 +8,28 @@
|
||||
|
||||
//No Flavor Text
|
||||
if (config.require_flavor && !(J.mob_type & JOB_SILICON) && (!client?.prefs?.flavor_texts["general"] || length(client.prefs.flavor_texts["general"]) < 30))
|
||||
to_chat(src,"<span class='warning'>Please set your general flavor text to give a basic description of your character. Set it using the 'Set Flavor text' button on the 'General' tab in character setup, and choosing 'General' category.</span>")
|
||||
to_chat(src,span_warning("Please set your general flavor text to give a basic description of your character. Set it using the 'Set Flavor text' button on the 'General' tab in character setup, and choosing 'General' category."))
|
||||
pass = FALSE
|
||||
|
||||
//No OOC notes
|
||||
if (config.allow_Metadata && (!client?.prefs?.metadata || length(client.prefs.metadata) < 15))
|
||||
to_chat(src,"<span class='warning'>Please set informative OOC notes related to RP/ERP preferences. Set them using the 'OOC Notes' button on the 'General' tab in character setup.</span>")
|
||||
to_chat(src,span_warning("Please set informative OOC notes related to RP/ERP preferences. Set them using the 'OOC Notes' button on the 'General' tab in character setup."))
|
||||
pass = FALSE
|
||||
|
||||
//Are they on the VERBOTEN LIST?
|
||||
if (prevent_respawns.Find(client?.prefs?.real_name))
|
||||
to_chat(src,"<span class='warning'>You've already quit the round as this character. You can't go back now that you've free'd your job slot. Play another character, or wait for the next round.</span>")
|
||||
to_chat(src,span_warning("You've already quit the round as this character. You can't go back now that you've free'd your job slot. Play another character, or wait for the next round."))
|
||||
pass = FALSE
|
||||
|
||||
//Do they have their scale properly setup?
|
||||
if(!client?.prefs?.size_multiplier)
|
||||
pass = FALSE
|
||||
to_chat(src,"<span class='warning'>You have not set your scale yet. Do this on the VORE tab in character setup.</span>")
|
||||
to_chat(src,span_warning("You have not set your scale yet. Do this on the VORE tab in character setup."))
|
||||
|
||||
//Can they play?
|
||||
if(!is_alien_whitelisted(src,GLOB.all_species[client?.prefs?.species]) && !check_rights(R_ADMIN, 0))
|
||||
pass = FALSE
|
||||
to_chat(src,"<span class='warning'>You are not allowed to spawn in as this species.</span>")
|
||||
to_chat(src,span_warning("You are not allowed to spawn in as this species."))
|
||||
|
||||
//Custom species checks
|
||||
if (client?.prefs?.species == "Custom Species")
|
||||
@@ -37,7 +37,7 @@
|
||||
//Didn't name it
|
||||
if(!client?.prefs?.custom_species)
|
||||
pass = FALSE
|
||||
to_chat(src,"<span class='warning'>You have to name your custom species. Do this on the VORE tab in character setup.</span>")
|
||||
to_chat(src,span_warning("You have to name your custom species. Do this on the VORE tab in character setup."))
|
||||
|
||||
//Check traits/costs
|
||||
var/list/megalist = client.prefs.pos_traits + client.prefs.neu_traits + client.prefs.neg_traits
|
||||
@@ -54,7 +54,7 @@
|
||||
//A trait was removed from the game
|
||||
if(isnull(cost))
|
||||
pass = FALSE
|
||||
to_chat(src,"<span class='warning'>Your species is not playable. One or more traits appear to have been removed from the game or renamed. Enter character setup to correct this.</span>")
|
||||
to_chat(src,span_warning("Your species is not playable. One or more traits appear to have been removed from the game or renamed. Enter character setup to correct this."))
|
||||
break
|
||||
else
|
||||
points_left -= traits_costs[T]
|
||||
@@ -62,12 +62,12 @@
|
||||
var/take_flags = initial(T.can_take)
|
||||
if((pref_synth && !(take_flags & SYNTHETICS)) || (pref_meat && !(take_flags & ORGANICS)))
|
||||
pass = FALSE
|
||||
to_chat(src, "<span class='warning'>Some of your traits are not usable by your character type (synthetic traits on organic, or vice versa).</span>")
|
||||
to_chat(src, span_warning("Some of your traits are not usable by your character type (synthetic traits on organic, or vice versa)."))
|
||||
|
||||
//Went into negatives
|
||||
if(points_left < 0 || traits_left < 0)
|
||||
pass = FALSE
|
||||
to_chat(src,"<span class='warning'>Your species is not playable. Reconfigure your traits on the VORE tab. Trait points: [points_left]. Traits left: [traits_left].</span>")
|
||||
to_chat(src,span_warning("Your species is not playable. Reconfigure your traits on the VORE tab. Trait points: [points_left]. Traits left: [traits_left]."))
|
||||
|
||||
//Final popup notice
|
||||
if (!pass)
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
/datum/riding/taur/force_dismount(mob/M)
|
||||
. = ..()
|
||||
ridden.visible_message("<span class='notice'>[M] stops riding [ridden]!</span>")
|
||||
ridden.visible_message(span_notice("[M] stops riding [ridden]!"))
|
||||
|
||||
//Hoooo boy.
|
||||
/datum/riding/taur/get_offsets(pass_index) // list(dir = x, y, layer)
|
||||
@@ -68,7 +68,7 @@
|
||||
if(M in buckled_mobs)
|
||||
return FALSE
|
||||
// if(M.size_multiplier > size_multiplier * 1.2)
|
||||
// to_chat(M,"<span class='warning'>This isn't a pony show! You need to be bigger for them to ride.</span>")
|
||||
// to_chat(M,span_warning("This isn't a pony show! You need to be bigger for them to ride."))
|
||||
// return FALSE
|
||||
if(M.loc != src.loc)
|
||||
if(M.Adjacent(src))
|
||||
@@ -77,7 +77,7 @@
|
||||
var/mob/living/carbon/human/H = M
|
||||
|
||||
if(istaurtail(H.tail_style))
|
||||
to_chat(src,"<span class='warning'>Too many legs. TOO MANY LEGS!!</span>")
|
||||
to_chat(src,span_warning("Too many legs. TOO MANY LEGS!!"))
|
||||
return FALSE
|
||||
|
||||
. = ..()
|
||||
@@ -103,7 +103,7 @@
|
||||
if(!can_buckle || !istype(M) || !M.Adjacent(src) || M.buckled)
|
||||
return
|
||||
if(buckle_mob(M))
|
||||
visible_message("<span class='notice'>[M] starts riding [name]!</span>")
|
||||
visible_message(span_notice("[M] starts riding [name]!"))
|
||||
|
||||
/mob/living/carbon/human/attack_hand(mob/user as mob)
|
||||
if(LAZYLEN(buckled_mobs))
|
||||
|
||||
Reference in New Issue
Block a user