refactors most spans

This commit is contained in:
Kashargul
2024-10-02 21:10:31 +02:00
parent 5417c7772c
commit a2c673ab7a
1517 changed files with 12436 additions and 12347 deletions
+13 -13
View File
@@ -40,13 +40,13 @@
name = ("bookcase ([newname])")
else if(O.has_tool_quality(TOOL_WRENCH))
playsound(src, O.usesound, 100, 1)
to_chat(user, (anchored ? "<span class='notice'>You unfasten \the [src] from the floor.</span>" : "<span class='notice'>You secure \the [src] to the floor.</span>"))
to_chat(user, (anchored ? span_notice("You unfasten \the [src] from the floor.") : span_notice("You secure \the [src] to the floor.")))
anchored = !anchored
else if(O.has_tool_quality(TOOL_SCREWDRIVER))
playsound(src, O.usesound, 75, 1)
to_chat(user, "<span class='notice'>You begin dismantling \the [src].</span>")
to_chat(user, span_notice("You begin dismantling \the [src]."))
if(do_after(user,25 * O.toolspeed))
to_chat(user, "<span class='notice'>You dismantle \the [src].</span>")
to_chat(user, span_notice("You dismantle \the [src]."))
new /obj/item/stack/material/wood(get_turf(src), 3)
for(var/obj/item/book/b in contents)
b.loc = (get_turf(src))
@@ -191,12 +191,12 @@ Book Cart End
/obj/item/book/attack_self(var/mob/user as mob)
if(carved)
if(store)
to_chat(user, "<span class='notice'>[store] falls out of [title]!</span>")
to_chat(user, span_notice("[store] falls out of [title]!"))
store.loc = get_turf(src.loc)
store = null
return
else
to_chat(user, "<span class='notice'>The pages of [title] have been cut out!</span>")
to_chat(user, span_notice("The pages of [title] have been cut out!"))
return
if(src.dat)
user << browse("<TT><I>Penned by [author].</I></TT> <BR>" + "[dat]", "window=book")
@@ -214,13 +214,13 @@ Book Cart End
user.drop_item()
W.loc = src
store = W
to_chat(user, "<span class='notice'>You put [W] in [title].</span>")
to_chat(user, span_notice("You put [W] in [title]."))
return
else
to_chat(user, "<span class='notice'>[W] won't fit in [title].</span>")
to_chat(user, span_notice("[W] won't fit in [title]."))
return
else
to_chat(user, "<span class='notice'>There's already something in [title]!</span>")
to_chat(user, span_notice("There's already something in [title]!"))
return
if(istype(W, /obj/item/pen))
if(unique)
@@ -283,9 +283,9 @@ Book Cart End
to_chat(user, "[W]'s screen flashes: 'Book stored in buffer. Title added to general inventory.'")
else if(istype(W, /obj/item/material/knife) || W.has_tool_quality(TOOL_WIRECUTTER))
if(carved) return
to_chat(user, "<span class='notice'>You begin to carve out [title].</span>")
to_chat(user, span_notice("You begin to carve out [title]."))
if(do_after(user, 30))
to_chat(user, "<span class='notice'>You carve out the pages from [title]! You didn't want to read it anyway.</span>")
to_chat(user, span_notice("You carve out the pages from [title]! You didn't want to read it anyway."))
playsound(src, 'sound/bureaucracy/papercrumple.ogg', 50, 1)
new /obj/item/shreddedp(get_turf(src))
carved = 1
@@ -295,8 +295,8 @@ Book Cart End
/obj/item/book/attack(mob/living/carbon/M as mob, mob/living/carbon/user as mob)
if(user.zone_sel.selecting == O_EYES)
user.visible_message("<span class='notice'>You open up the book and show it to [M]. </span>", \
"<span class='notice'> [user] opens up a book and shows it to [M]. </span>")
user.visible_message(span_notice("You open up the book and show it to [M]. "), \
span_notice(" [user] opens up a book and shows it to [M]. "))
M << browse("<TT><I>Penned by [author].</I></TT> <BR>" + "[dat]", "window=book")
user.setClickCooldown(DEFAULT_QUICK_COOLDOWN) //to prevent spam
@@ -369,7 +369,7 @@ Book Cart End
src.attack_self(usr)
updateUsrDialog()
else
to_chat(usr, "<span class='notice'>You need to hold it in your hands!</span>")
to_chat(usr, span_notice("You need to hold it in your hands!"))
/*
* Barcode Scanner
+1 -1
View File
@@ -186,7 +186,7 @@
if(src.arcanecheckout)
new /obj/item/book/tome(src.loc)
var/datum/gender/T = gender_datums[user.get_visible_gender()]
to_chat(user, "<span class='warning'>Your sanity barely endures the seconds spent in the vault's browsing window. The only thing to remind you of this when you stop browsing is a dusty old tome sitting on the desk. You don't really remember printing it.</span>")
to_chat(user, span_warning("Your sanity barely endures the seconds spent in the vault's browsing window. The only thing to remind you of this when you stop browsing is a dusty old tome sitting on the desk. You don't really remember printing it."))
user.visible_message("<b>\The [user]</b> stares at the blank screen for a few moments, [T.his] expression frozen in fear. When [T.he] finally awakens from it, [T.he] looks a lot older.", 2)
src.arcanecheckout = 0
if(1)