mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 19:52:40 +00:00
[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:
@@ -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)
|
||||
display_content(user) // CHOMPEdit
|
||||
@@ -220,13 +220,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)
|
||||
@@ -289,9 +289,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
|
||||
@@ -301,8 +301,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]."))
|
||||
display_content(M) // CHOMPEdit
|
||||
user.setClickCooldown(DEFAULT_QUICK_COOLDOWN) //to prevent spam
|
||||
|
||||
@@ -375,7 +375,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
|
||||
|
||||
Reference in New Issue
Block a user