mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-29 23:17:02 +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:
@@ -165,7 +165,7 @@ RESTRICT_TYPE(/datum/ui_module/admin/antagonist_menu)
|
||||
if("show_player_panel")
|
||||
var/datum/mind/mind = locateUID(params["mind_uid"])
|
||||
if(QDELETED(mind.current))
|
||||
to_chat(ui.user, "<span class='warning'>Mind doesn't have a corresponding mob.</span>")
|
||||
to_chat(ui.user, SPAN_WARNING("Mind doesn't have a corresponding mob."))
|
||||
return
|
||||
SSuser_verbs.invoke_verb(ui.user, /datum/user_verb/show_player_panel, mind.current)
|
||||
if("pm")
|
||||
@@ -177,13 +177,13 @@ RESTRICT_TYPE(/datum/ui_module/admin/antagonist_menu)
|
||||
var/datum/mind/mind = locateUID(params["mind_uid"])
|
||||
|
||||
if(!ismob(mind.current))
|
||||
to_chat(ui.user, "<span class='warning'>This can only be used on instances of type /mob</span>")
|
||||
to_chat(ui.user, SPAN_WARNING("This can only be used on instances of type /mob"))
|
||||
return
|
||||
SSuser_verbs.invoke_verb(C, /datum/user_verb/admin_observe_target, mind.current)
|
||||
if("tp")
|
||||
var/datum/mind/mind = locateUID(params["mind_uid"])
|
||||
if(QDELETED(mind))
|
||||
to_chat(ui.user, "<span class='warning'>No mind!</span>")
|
||||
to_chat(ui.user, SPAN_WARNING("No mind!"))
|
||||
return
|
||||
mind.edit_memory()
|
||||
if("vv")
|
||||
@@ -192,7 +192,7 @@ RESTRICT_TYPE(/datum/ui_module/admin/antagonist_menu)
|
||||
var/client/C = ui.user.client
|
||||
var/datum/target = locateUID(params["owner_uid"])
|
||||
if(QDELETED(target))
|
||||
to_chat(ui.user, "<span class='warning'>It seems the target you are looking for is null or deleted.</span>")
|
||||
to_chat(ui.user, SPAN_WARNING("It seems the target you are looking for is null or deleted."))
|
||||
return
|
||||
if(istype(target, /datum/antagonist))
|
||||
var/datum/antagonist/antag = target
|
||||
@@ -200,7 +200,7 @@ RESTRICT_TYPE(/datum/ui_module/admin/antagonist_menu)
|
||||
if(istype(target, /datum/mind))
|
||||
var/datum/mind/mind = target
|
||||
if(!ismob(mind.current))
|
||||
to_chat(ui.user, "<span class='warning'>This can only be used on instances of type /mob</span>")
|
||||
to_chat(ui.user, SPAN_WARNING("This can only be used on instances of type /mob"))
|
||||
return
|
||||
target = mind.current
|
||||
var/mob/dead/observer/A = C.mob
|
||||
@@ -210,4 +210,4 @@ RESTRICT_TYPE(/datum/ui_module/admin/antagonist_menu)
|
||||
ui.user.client.holder.team_switch_tab_index = clamp(GLOB.antagonist_teams.Find(target), 1, length(GLOB.antagonist_teams))
|
||||
ui.user.client.holder.check_teams()
|
||||
return
|
||||
to_chat(ui.user, "<span class='warning'>Type [target.type] isn't supported for finding the owner of an objective.</span>")
|
||||
to_chat(ui.user, SPAN_WARNING("Type [target.type] isn't supported for finding the owner of an objective."))
|
||||
|
||||
Reference in New Issue
Block a user