mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
cleans up some of the old << in favor of to_chat (#11156)
This commit is contained in:
@@ -33,10 +33,10 @@
|
||||
src.anchored = !src.anchored
|
||||
if(!src.anchored)
|
||||
word = "undo"
|
||||
user << "You [word] the telepad anchor bolts."
|
||||
to_chat(user, span_notice("You [word] the telepad anchor bolts."))
|
||||
playsound(src.loc, 'sound/items/Ratchet.ogg', 75, 1)
|
||||
else if(istype(W, /obj/item/tool/screwdriver) && !src.anchored)
|
||||
user << "You fold the telepad."
|
||||
to_chat(user, span_notice("You fold the telepad."))
|
||||
new /obj/item/phoronics_telepad(src.loc)
|
||||
del(src)
|
||||
else
|
||||
@@ -49,7 +49,7 @@
|
||||
icon_state = "pad-folded"
|
||||
|
||||
attack_self(mob/user as mob)
|
||||
user << "You unfold the pad."
|
||||
to_chat(user, span_notice("You unfold the pad."))
|
||||
var/obj/machinery/telepad_phoronics/T = new /obj/machinery/telepad_phoronics(user.loc)
|
||||
T.anchored = 0
|
||||
del(src)
|
||||
|
||||
@@ -165,7 +165,7 @@
|
||||
/obj/item/reagent_containers/food/snacks/steamtealeaf/attackby(obj/item/W as obj, mob/user as mob)
|
||||
if(istype(W,/obj/item/material/kitchen/rollingpin))
|
||||
new /obj/item/reagent_containers/food/snacks/steamrolltealeaf(src)
|
||||
user << "You roll the steamed tea leaf."
|
||||
to_chat(user, span_notice("You roll the steamed tea leaf."))
|
||||
qdel(src)
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/steamrolltealeaf
|
||||
|
||||
@@ -499,10 +499,10 @@
|
||||
if(edible == 1)
|
||||
HasSliceMissing()
|
||||
if(slices <= 0)
|
||||
user << "The cake hums away quietly as the chaos powered goodness slowly recovers the large amount of lost mass, best to give it a moment before cutting another slice."
|
||||
to_chat(user, span_notice("The cake hums away quietly as the chaos powered goodness slowly recovers the large amount of lost mass, best to give it a moment before cutting another slice."))
|
||||
return
|
||||
else
|
||||
user << "You cut a slice of the cake. The slice looks like the cake was just baked, and you can see before your eyes as the spot where you cut the slice slowly regenerates!"
|
||||
to_chat(user, span_notice("You cut a slice of the cake. The slice looks like the cake was just baked, and you can see before your eyes as the spot where you cut the slice slowly regenerates!"))
|
||||
slices = slices - 1
|
||||
icon_state = "chaoscake-[slices]"
|
||||
new /obj/item/reagent_containers/food/snacks/chaoscakeslice(src.loc)
|
||||
@@ -513,7 +513,7 @@
|
||||
if(istype(W,/obj/item/chaoscake_layer))
|
||||
var/obj/item/chaoscake_layer/C = W
|
||||
if(C.layer_stage == 8)
|
||||
user << "Finally! The coin on the top, the almighty chaos cake is complete!"
|
||||
to_chat(user, span_notice("Finally! The coin on the top, the almighty chaos cake is complete!"))
|
||||
qdel(W)
|
||||
stage++
|
||||
desc = desclist2[stage]
|
||||
@@ -521,17 +521,15 @@
|
||||
edible = 1
|
||||
name = "The Chaos Cake!"
|
||||
else if(stage == maxstages)
|
||||
user << "The cake is already done!"
|
||||
to_chat(user, span_warning("The cake is already done!"))
|
||||
else if(stage == C.layer_stage)
|
||||
user << "You add another layer to the cake, nice."
|
||||
to_chat(user, span_notice("You add another layer to the cake, nice."))
|
||||
qdel(W)
|
||||
stage++
|
||||
desc = desclist2[stage]
|
||||
icon_state = "chaoscake_stage-[stage]"
|
||||
else
|
||||
user << "Hmm, doesnt seem like this layer is supposed to be added there?"
|
||||
|
||||
|
||||
to_chat(user, span_warning("Hmm, doesnt seem like this layer is supposed to be added there?"))
|
||||
|
||||
// The One Pizza
|
||||
|
||||
|
||||
@@ -153,7 +153,7 @@ What Borgs are available is sadly handled in the above file in the proc
|
||||
icontype = options[choice]
|
||||
var/active_sound = 'sound/effects/bubbles.ogg'
|
||||
playsound(src.loc, "[active_sound]", 100, 0, 4)
|
||||
M << "Your Tank now displays [choice]. Drink up and enjoy!"
|
||||
to_chat(M, span_notice("Your Tank now displays [choice]. Drink up and enjoy!"))
|
||||
updateicon()
|
||||
return 1
|
||||
|
||||
|
||||
@@ -156,7 +156,7 @@ What Borgs are available is sadly handled in the above file in the proc
|
||||
icontype = options[choice]
|
||||
var/active_sound = 'sound/effects/bubbles.ogg'
|
||||
playsound(src.loc, "[active_sound]", 100, 0, 4)
|
||||
M << "Your Tank now displays [choice]. Drink up and enjoy!"
|
||||
to_chat(M, span_notice("Your Tank now displays [choice]. Drink up and enjoy!"))
|
||||
updateicon()
|
||||
return 1
|
||||
|
||||
|
||||
@@ -219,14 +219,14 @@
|
||||
var/mob/living/carbon/human/H = M
|
||||
if(H == user)
|
||||
if(icon_state == "scrap" && H.check_has_mouth()) //YW Edit Start
|
||||
user << span_warning("You begin to stuff \the [src] into your mouth!")
|
||||
to_chat(user, span_warning("You begin to stuff \the [src] into your mouth!"))
|
||||
if(do_after(user, 30))
|
||||
user << span_warning("You stuff \the [src] into your mouth!")
|
||||
to_chat(user, span_warning("You stuff \the [src] into your mouth!"))
|
||||
H.ingested.add_reagent("paper", 10)
|
||||
H.adjustOxyLoss(10)
|
||||
qdel(src)
|
||||
else
|
||||
user << span_notice("You wipe off the lipstick with [src].")
|
||||
to_chat(user, span_notice("You wipe off the lipstick with [src]."))
|
||||
H.lip_style = null
|
||||
H.update_icons_body()
|
||||
else
|
||||
|
||||
@@ -34,13 +34,13 @@
|
||||
|
||||
/obj/item/gun/projectile/automatic/mg42/special_check(mob/user)
|
||||
if(cover_open)
|
||||
user << span_warning("[src]'s cover is open! Close it before firing!")
|
||||
to_chat(user, span_warning("[src]'s cover is open! Close it before firing!"))
|
||||
return 0
|
||||
return ..()
|
||||
|
||||
/obj/item/gun/projectile/automatic/mg42/proc/toggle_cover(mob/user)
|
||||
cover_open = !cover_open
|
||||
user << span_notice("You [cover_open ? "open" : "close"] [src]'s cover.")
|
||||
to_chat(user, span_notice("You [cover_open ? "open" : "close"] [src]'s cover."))
|
||||
update_icon()
|
||||
update_held_icon()
|
||||
|
||||
@@ -63,12 +63,12 @@
|
||||
|
||||
/obj/item/gun/projectile/automatic/mg42/load_ammo(var/obj/item/A, mob/user)
|
||||
if(!cover_open)
|
||||
user << span_warning("You need to open the cover to load [src].")
|
||||
to_chat(user, span_warning("You need to open the cover to load [src]."))
|
||||
return
|
||||
..()
|
||||
|
||||
/obj/item/gun/projectile/automatic/mg42/unload_ammo(mob/user, var/allow_dump=1)
|
||||
if(!cover_open)
|
||||
user << span_warning("You need to open the cover to unload [src].")
|
||||
to_chat(user, span_warning("You need to open the cover to unload [src]."))
|
||||
return
|
||||
..()
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
if(wielded) //Trying to unwield it
|
||||
unwield()
|
||||
user << span_notice("You are now carrying the [name] with one hand.")
|
||||
to_chat(user, span_notice("You are now carrying the [name] with one hand."))
|
||||
if (src.unwieldsound)
|
||||
playsound(src.loc, unwieldsound, 50, 1)
|
||||
|
||||
@@ -78,10 +78,10 @@
|
||||
|
||||
else //Trying to wield it
|
||||
if(user.get_inactive_hand())
|
||||
user << span_warning("You need your other hand to be empty")
|
||||
to_chat(user, span_warning("You need your other hand to be empty"))
|
||||
return
|
||||
wield()
|
||||
user << span_notice("You grab the [initial(name)] with both hands.")
|
||||
to_chat(user, span_notice("You grab the [initial(name)] with both hands."))
|
||||
if (src.wieldsound)
|
||||
playsound(src.loc, wieldsound, 50, 1)
|
||||
|
||||
|
||||
@@ -24,12 +24,12 @@
|
||||
icon_state = "[initial(icon_state)]_open"
|
||||
item_state = "[initial(item_state)]_open"
|
||||
unbuttoned = 1
|
||||
usr << "You unbutton the coat."
|
||||
to_chat(usr, span_notice("You unbutton the coat."))
|
||||
if(1)
|
||||
icon_state = "[initial(icon_state)]"
|
||||
item_state = "[initial(item_state)]"
|
||||
unbuttoned = 0
|
||||
usr << "You button up the coat."
|
||||
to_chat(usr, span_notice("You button up the coat."))
|
||||
usr.update_inv_wear_suit()
|
||||
|
||||
|
||||
@@ -64,12 +64,12 @@
|
||||
icon_state = "[initial(icon_state)]_open"
|
||||
item_state = "[initial(item_state)]_open"
|
||||
unbuttoned = 1
|
||||
usr << "You unbutton the coat."
|
||||
to_chat(usr, span_notice("You unbutton the coat."))
|
||||
if(1)
|
||||
icon_state = "[initial(icon_state)]"
|
||||
item_state = "[initial(item_state)]"
|
||||
unbuttoned = 0
|
||||
usr << "You button up the coat."
|
||||
to_chat(usr, span_notice("You button up the coat."))
|
||||
usr.update_inv_wear_suit()
|
||||
|
||||
/obj/item/clothing/under/fluff/redax_2
|
||||
@@ -185,12 +185,12 @@
|
||||
icon_state = "[initial(icon_state)]_open"
|
||||
item_state = "[initial(item_state)]_open"
|
||||
unbuttoned = 1
|
||||
usr << "You unbutton the coat."
|
||||
to_chat(usr, span_notice("You unbutton the coat."))
|
||||
if(1)
|
||||
icon_state = "[initial(icon_state)]"
|
||||
item_state = "[initial(item_state)]"
|
||||
unbuttoned = 0
|
||||
usr << "You button up the coat."
|
||||
to_chat(usr, span_notice("You button up the coat."))
|
||||
usr.update_inv_wear_suit()
|
||||
|
||||
/obj/item/clothing/mask/fluff/lucerna_1 //Doesn't work for some reason
|
||||
@@ -377,14 +377,14 @@
|
||||
set_slowdown(0)
|
||||
force = 3
|
||||
if(icon_base) icon_state = "[icon_base]0"
|
||||
user << "You disable the mag-pulse traction system."
|
||||
to_chat(user, span_notice("You disable the mag-pulse traction system."))
|
||||
else
|
||||
item_flags |= NOSLIP
|
||||
magpulse = 1
|
||||
set_slowdown(3)
|
||||
force = 5
|
||||
if(icon_base) icon_state = "[icon_base]1"
|
||||
user << "You enable the mag-pulse traction system."
|
||||
to_chat(user, span_notice("You enable the mag-pulse traction system."))
|
||||
user.update_inv_shoes() //so our mob-overlays update
|
||||
user.update_action_buttons()
|
||||
|
||||
@@ -639,14 +639,14 @@
|
||||
set_slowdown(0)
|
||||
force = 3
|
||||
if(icon_base) icon_state = "[icon_base]0"
|
||||
user << "You disable the mag-pulse traction system."
|
||||
to_chat(user, span_notice("You disable the mag-pulse traction system."))
|
||||
else
|
||||
item_flags |= NOSLIP
|
||||
magpulse = 1
|
||||
set_slowdown(3)
|
||||
force = 5
|
||||
if(icon_base) icon_state = "[icon_base]1"
|
||||
user << "You enable the mag-pulse traction system."
|
||||
to_chat(user, span_notice("You enable the mag-pulse traction system."))
|
||||
user.update_inv_shoes() //so our mob-overlays update
|
||||
user.update_action_buttons()
|
||||
|
||||
@@ -866,12 +866,12 @@
|
||||
icon_state = "[initial(icon_state)]"
|
||||
item_state = "[initial(item_state)]"
|
||||
hoodup = 1
|
||||
usr << "You take off the hood."
|
||||
to_chat(usr, span_notice("You take off the hood."))
|
||||
if(1)
|
||||
icon_state = "[initial(icon_state)]_up"
|
||||
item_state = "[initial(item_state)]_up"
|
||||
hoodup= 0
|
||||
usr << "You put on the hood."
|
||||
to_chat(usr, span_notice("You put on the hood."))
|
||||
usr.update_inv_wear_suit()
|
||||
|
||||
//Kita
|
||||
@@ -1116,11 +1116,11 @@
|
||||
if(src.icon_state == "ushanka2down")
|
||||
src.icon_state = "ushanka2up"
|
||||
src.item_state = "ushanka2up"
|
||||
user << "You raise the ear flaps on the ushanka."
|
||||
to_chat(user, span_notice("You raise the ear flaps on the ushanka."))
|
||||
else
|
||||
src.icon_state = "ushanka2down"
|
||||
src.item_state = "ushanka2down"
|
||||
user << "You lower the ear flaps on the ushanka."
|
||||
to_chat(user, span_notice("You lower the ear flaps on the ushanka."))
|
||||
|
||||
// ******
|
||||
// Benl8561
|
||||
@@ -1211,11 +1211,11 @@
|
||||
if(ring_on)
|
||||
icon_state = "[base_icon]"
|
||||
ring_on = 0
|
||||
usr << span_notice("You remove the right earring.")
|
||||
to_chat(usr, span_notice("You remove the right earring."))
|
||||
else
|
||||
icon_state = "[base_icon]_on"
|
||||
ring_on = 1
|
||||
usr << span_notice("You put on the right earring.")
|
||||
to_chat(usr, span_notice("You put on the right earring."))
|
||||
|
||||
update_clothing_icon()
|
||||
|
||||
|
||||
@@ -87,7 +87,7 @@
|
||||
|
||||
/obj/item/toy/bosunwhistle/fluff/strix/attack_self(mob/user as mob)
|
||||
if(cooldown < world.time - 15)
|
||||
user << span_notice("You blow on [src], creating an ear-splitting noise!")
|
||||
to_chat(user, span_notice("You blow on [src], creating an ear-splitting noise!"))
|
||||
playsound(user, 'sound/misc/boatswain.ogg', 25, 1)
|
||||
cooldown = world.time
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
if (alert(M,"This chemical will change your gender, proceed?", "Warning", "Yes", "No") == "Yes")
|
||||
M.change_gender_identity(gender_change)
|
||||
M.change_gender(gender_change)
|
||||
M << span_warning("You feel like a new person.") //success
|
||||
to_chat(M, span_warning("You feel like a new person."))
|
||||
|
||||
//Chemist expansion
|
||||
//deathblood
|
||||
|
||||
Reference in New Issue
Block a user