[MIRROR] refactors most spans (#9139)

Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com>
Co-authored-by: Kashargul <KashL@t-online.de>
This commit is contained in:
CHOMPStation2
2024-10-04 06:00:17 -07:00
committed by GitHub
parent 43ee646816
commit ab154b48b2
1511 changed files with 12497 additions and 12357 deletions

View File

@@ -158,21 +158,21 @@
if (!can_use(required))
if (produced>1)
to_chat(user, "<span class='warning'>You haven't got enough [src] to build \the [produced] [recipe.title]\s!</span>")
to_chat(user, span_warning("You haven't got enough [src] to build \the [produced] [recipe.title]\s!"))
else
to_chat(user, "<span class='warning'>You haven't got enough [src] to build \the [recipe.title]!</span>")
to_chat(user, span_warning("You haven't got enough [src] to build \the [recipe.title]!"))
return
if (recipe.one_per_turf && (locate(recipe.result_type) in user.loc))
to_chat(user, "<span class='warning'>There is another [recipe.title] here!</span>")
to_chat(user, span_warning("There is another [recipe.title] here!"))
return
if (recipe.on_floor && !isfloor(user.loc))
to_chat(user, "<span class='warning'>\The [recipe.title] must be constructed on the floor!</span>")
to_chat(user, span_warning("\The [recipe.title] must be constructed on the floor!"))
return
if (recipe.time)
to_chat(user, "<span class='notice'>Building [recipe.title] ...</span>")
to_chat(user, span_notice("Building [recipe.title] ..."))
if (!do_after(user, recipe.time))
return
@@ -398,7 +398,7 @@
continue
var/transfer = src.transfer_to(item)
if (transfer)
to_chat(user, "<span class='notice'>You add a new [item.singular_name] to the stack. It now contains [item.amount] [item.singular_name]\s.</span>")
to_chat(user, span_notice("You add a new [item.singular_name] to the stack. It now contains [item.amount] [item.singular_name]\s."))
if(!amount)
break
@@ -406,7 +406,7 @@
if (user.get_inactive_hand() == src)
var/N = tgui_input_number(usr, "How many stacks of [src] would you like to split off? There are currently [amount].", "Split stacks", 1, amount, 1)
if(N != round(N))
to_chat(user, "<span class='warning'>You cannot separate a non-whole number of stacks!</span>")
to_chat(user, span_warning("You cannot separate a non-whole number of stacks!"))
return
if(N)
var/obj/item/stack/F = src.split(N)