mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 13:30:42 +01:00
Converts all necessary << outputs into the to_chat() macro. (#6076)
This PR will lead us towards the Promised Day, for in its wake there shall be much celebration and ecstasy as this world becomes a world suitable for developer hegemony. The first strike is thusly; All << is converted into to_chat().
This commit is contained in:
@@ -123,7 +123,7 @@
|
||||
pref.real_name = new_name
|
||||
return TOPIC_REFRESH
|
||||
else
|
||||
user << "<span class='warning'>Invalid name. Your name should be at least 2 and at most [MAX_NAME_LEN] characters long. It may only contain the characters A-Z, a-z, -, ' and .</span>"
|
||||
to_chat(user, "<span class='warning'>Invalid name. Your name should be at least 2 and at most [MAX_NAME_LEN] characters long. It may only contain the characters A-Z, a-z, -, ' and .</span>")
|
||||
return TOPIC_NOACTION
|
||||
|
||||
else if(href_list["namehelp"])
|
||||
|
||||
@@ -185,7 +185,7 @@ var/global/list/valid_bloodtypes = list("A+", "A-", "B+", "B-", "AB+", "AB-", "O
|
||||
pref.update_preview_icon()
|
||||
if(!pref.preview_icon)
|
||||
pref.update_preview_icon()
|
||||
user << browse_rsc(pref.preview_icon, "previewicon.png")
|
||||
to_chat(user, browse_rsc(pref.preview_icon, "previewicon.png"))
|
||||
|
||||
var/datum/species/mob_species = all_species[pref.species]
|
||||
out += "<table><tr style='vertical-align:top'><td><b>Body</b> "
|
||||
@@ -665,7 +665,7 @@ var/global/list/valid_bloodtypes = list("A+", "A-", "B+", "B-", "AB+", "AB-", "O
|
||||
var/curr_name = html_encode(current_species.name)
|
||||
var/icon/preview = icon(current_species.icobase, "preview")
|
||||
preview.Scale(64, 64) // Scale it here to stop it blurring.
|
||||
usr << browse_rsc(preview, "species_preview_[curr_name].png")
|
||||
to_chat(usr, browse_rsc(preview, "species_preview_[curr_name].png"))
|
||||
dat += "<img src='species_preview_[curr_name].png' width='64px' height='64px'><br/><br/>"
|
||||
dat += "<b>Language:</b> [current_species.language]<br/>"
|
||||
dat += "<small>"
|
||||
|
||||
@@ -92,16 +92,16 @@ var/list/gear_datums = list()
|
||||
var/total_cost = 0
|
||||
for(var/gear_name in pref.gear)
|
||||
if(!gear_datums[gear_name])
|
||||
preference_mob << "<span class='warning'>You cannot have more than one of the \the [gear_name]</span>"
|
||||
to_chat(preference_mob, "<span class='warning'>You cannot have more than one of the \the [gear_name]</span>")
|
||||
pref.gear -= gear_name
|
||||
else if(!(gear_name in valid_gear_choices()))
|
||||
preference_mob << "<span class='warning'>You cannot take \the [gear_name] as you are not whitelisted for the species.</span>"
|
||||
to_chat(preference_mob, "<span class='warning'>You cannot take \the [gear_name] as you are not whitelisted for the species.</span>")
|
||||
pref.gear -= gear_name
|
||||
else
|
||||
var/datum/gear/G = gear_datums[gear_name]
|
||||
if(total_cost + G.cost > MAX_GEAR_COST)
|
||||
pref.gear -= gear_name
|
||||
preference_mob << "<span class='warning'>You cannot afford to take \the [gear_name]</span>"
|
||||
to_chat(preference_mob, "<span class='warning'>You cannot afford to take \the [gear_name]</span>")
|
||||
else
|
||||
total_cost += G.cost
|
||||
|
||||
|
||||
Reference in New Issue
Block a user