mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-22 04:28:33 +01:00
refactors most spans
This commit is contained in:
@@ -51,7 +51,7 @@
|
||||
return 0
|
||||
|
||||
/obj/item/implant/proc/meltdown() //breaks it down, making implant unrecongizible
|
||||
to_chat(imp_in, "<span class='warning'>You feel something melting inside [part ? "your [part.name]" : "you"]!</span>")
|
||||
to_chat(imp_in, span_warning("You feel something melting inside [part ? "your [part.name]" : "you"]!"))
|
||||
if (part)
|
||||
part.take_damage(burn = 15, used_weapon = "Electronics meltdown")
|
||||
else
|
||||
@@ -254,7 +254,7 @@ Implant Specifics:<BR>"}
|
||||
if(ishuman(imp_in))
|
||||
if (elevel == "Localized Limb")
|
||||
if(part) //For some reason, small_boom() didn't work. So have this bit of working copypaste.
|
||||
imp_in.visible_message("<span class='warning'>Something beeps inside [imp_in][part ? "'s [part.name]" : ""]!</span>")
|
||||
imp_in.visible_message(span_warning("Something beeps inside [imp_in][part ? "'s [part.name]" : ""]!"))
|
||||
playsound(src, 'sound/items/countdown.ogg', 75, 1, -3)
|
||||
sleep(25)
|
||||
if (istype(part,/obj/item/organ/external/chest) || \
|
||||
@@ -327,7 +327,7 @@ Implant Specifics:<BR>"}
|
||||
|
||||
/obj/item/implant/explosive/proc/small_boom()
|
||||
if (ishuman(imp_in) && part)
|
||||
imp_in.visible_message("<span class='warning'>Something beeps inside [imp_in][part ? "'s [part.name]" : ""]!</span>")
|
||||
imp_in.visible_message(span_warning("Something beeps inside [imp_in][part ? "'s [part.name]" : ""]!"))
|
||||
playsound(src, 'sound/items/countdown.ogg', 75, 1, -3)
|
||||
spawn(25)
|
||||
if (ishuman(imp_in) && part)
|
||||
@@ -450,7 +450,7 @@ the implant may become unstable and either pre-maturely inject the subject or si
|
||||
/obj/item/implant/loyalty/post_implant(mob/M)
|
||||
var/mob/living/carbon/human/H = M
|
||||
clear_antag_roles(H.mind, 1)
|
||||
to_chat(H, "<span class='notice'>You feel a surge of loyalty towards [using_map.company_name].</span>")
|
||||
to_chat(H, span_notice("You feel a surge of loyalty towards [using_map.company_name]."))
|
||||
|
||||
//////////////////////////////
|
||||
// Adrenaline Implant
|
||||
@@ -478,7 +478,7 @@ the implant may become unstable and either pre-maturely inject the subject or si
|
||||
if (src.uses < 1) return 0
|
||||
if (emote == "pale")
|
||||
src.uses--
|
||||
to_chat(source, "<span class='notice'>You feel a sudden surge of energy!</span>")
|
||||
to_chat(source, span_notice("You feel a sudden surge of energy!"))
|
||||
source.SetStunned(0)
|
||||
source.SetWeakened(0)
|
||||
source.SetParalysis(0)
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
return 0
|
||||
if (emote == "smile")
|
||||
src.uses--
|
||||
to_chat(source,"<span class='notice'>You suddenly feel as if you can understand other languages!</span>")
|
||||
to_chat(source,span_notice("You suddenly feel as if you can understand other languages!"))
|
||||
source.add_language(LANGUAGE_UNATHI)
|
||||
source.add_language(LANGUAGE_SIIK)
|
||||
source.add_language(LANGUAGE_SKRELLIAN)
|
||||
@@ -168,7 +168,7 @@ Due to the small chemical capacity of the implant, the life of the implant is re
|
||||
to_chat(user,"You set the laws to: <br><span class='notice'>[newlaws]</span>")
|
||||
implant.laws = newlaws //Organic
|
||||
else //No using other implants.
|
||||
to_chat(user,"<span class='notice'>A red warning pops up on the implanter's micro-screen: 'INVALID IMPLANT DETECTED.'</span>")
|
||||
to_chat(user,span_notice("A red warning pops up on the implanter's micro-screen: 'INVALID IMPLANT DETECTED.'"))
|
||||
|
||||
|
||||
/obj/item/implant/compliance
|
||||
@@ -196,12 +196,12 @@ Due to the small chemical capacity of the implant, the life of the implant is re
|
||||
|
||||
var/mob/living/carbon/human/target = source
|
||||
if(!target.nif || target.nif.stat != NIF_WORKING) //No nif or their NIF is broken.
|
||||
to_chat(target, "<span class='notice'>You suddenly feel compelled to follow the following commands: [laws]</span>")
|
||||
to_chat(target, "<span class='notice'>((OOC NOTE: Commands that go against server rules should be disregarded and ahelped.))</span>")
|
||||
to_chat(target, "<span class='notice'>((OOC NOTE: Your new commands can be checked at any time by using the 'notes' command in chat. Additionally, if you did not agree to this, you are not compelled to follow the implant.))</span>")
|
||||
to_chat(target, span_notice("You suddenly feel compelled to follow the following commands: [laws]"))
|
||||
to_chat(target, span_notice("((OOC NOTE: Commands that go against server rules should be disregarded and ahelped.))"))
|
||||
to_chat(target, span_notice("((OOC NOTE: Your new commands can be checked at any time by using the 'notes' command in chat. Additionally, if you did not agree to this, you are not compelled to follow the implant.))"))
|
||||
target.add_memory(laws)
|
||||
return
|
||||
else //You got a nif...Upload time.
|
||||
new nif_payload(target.nif,laws)
|
||||
to_chat(target, "<span class='notice'>((OOC NOTE: Commands that go against server rules should be disregarded and ahelped.))</span>")
|
||||
to_chat(target, "<span class='notice'>((OOC NOTE: If you did not agree to this, you are not compelled to follow the laws.))</span>")
|
||||
to_chat(target, span_notice("((OOC NOTE: Commands that go against server rules should be disregarded and ahelped.))"))
|
||||
to_chat(target, span_notice("((OOC NOTE: If you did not agree to this, you are not compelled to follow the laws.))"))
|
||||
|
||||
@@ -30,10 +30,10 @@
|
||||
var/obj/item/organ/NewOrgan = new organ_to_implant()
|
||||
|
||||
var/obj/item/organ/external/E = H.get_organ(NewOrgan.parent_organ)
|
||||
to_chat(H, "<span class='notice'>You feel a tingling sensation in your [part].</span>")
|
||||
to_chat(H, span_notice("You feel a tingling sensation in your [part]."))
|
||||
if(E && !(H.internal_organs_by_name[NewOrgan.organ_tag]))
|
||||
spawn(rand(1 SECONDS, 30 SECONDS))
|
||||
to_chat(H, "<span class='alien'>You feel a pressure in your [E] as the tingling fades, the lump caused by the implant now gone.</span>")
|
||||
to_chat(H, span_alien("You feel a pressure in your [E] as the tingling fades, the lump caused by the implant now gone."))
|
||||
|
||||
NewOrgan.forceMove(H)
|
||||
NewOrgan.owner = H
|
||||
@@ -50,7 +50,7 @@
|
||||
|
||||
else
|
||||
qdel(NewOrgan)
|
||||
to_chat(H, "<span class='warning'>You feel a pinching sensation in your [part]. The implant remains.</span>")
|
||||
to_chat(H, span_warning("You feel a pinching sensation in your [part]. The implant remains."))
|
||||
|
||||
/obj/item/implant/organ/islegal()
|
||||
return 0
|
||||
@@ -74,12 +74,12 @@
|
||||
var/obj/item/organ/NewOrgan = new organ_to_implant()
|
||||
|
||||
var/obj/item/organ/external/E = setup_augment_slots(H, NewOrgan)
|
||||
to_chat(H, "<span class='notice'>You feel a tingling sensation in your [part].</span>")
|
||||
to_chat(H, span_notice("You feel a tingling sensation in your [part]."))
|
||||
NewOrgan.forceMove(H)
|
||||
NewOrgan.owner = H
|
||||
if(E && istype(E) && !(H.internal_organs_by_name[NewOrgan.organ_tag]) && NewOrgan.check_verb_compatability())
|
||||
spawn(rand(1 SECONDS, 30 SECONDS))
|
||||
to_chat(H, "<span class='alien'>You feel a pressure in your [E] as the tingling fades, the lump caused by the implant now gone.</span>")
|
||||
to_chat(H, span_alien("You feel a pressure in your [E] as the tingling fades, the lump caused by the implant now gone."))
|
||||
|
||||
if(E.internal_organs == null)
|
||||
E.internal_organs = list()
|
||||
@@ -94,7 +94,7 @@
|
||||
|
||||
else
|
||||
qdel(NewOrgan)
|
||||
to_chat(H, "<span class='warning'>You feel a pinching sensation in your [part]. The implant remains.</span>")
|
||||
to_chat(H, span_warning("You feel a pinching sensation in your [part]. The implant remains."))
|
||||
|
||||
/obj/item/implant/organ/limbaugment/proc/setup_augment_slots(var/mob/living/carbon/human/H, var/obj/item/organ/internal/augment/armmounted/I)
|
||||
var/list/Choices = possible_targets.Copy()
|
||||
|
||||
@@ -35,11 +35,11 @@
|
||||
if(!src.imp) return
|
||||
if(!src.imp.allow_reagents) return
|
||||
if(src.imp.reagents.total_volume >= src.imp.reagents.maximum_volume)
|
||||
to_chat(user, "<span class='warning'>\The [src] is full.</span>")
|
||||
to_chat(user, span_warning("\The [src] is full."))
|
||||
else
|
||||
spawn(5)
|
||||
I.reagents.trans_to_obj(src.imp, 5)
|
||||
to_chat(user, "<span class='notice'>You inject 5 units of the solution. The syringe now contains [I.reagents.total_volume] units.</span>")
|
||||
to_chat(user, span_notice("You inject 5 units of the solution. The syringe now contains [I.reagents.total_volume] units."))
|
||||
else if (istype(I, /obj/item/implanter))
|
||||
var/obj/item/implanter/M = I
|
||||
if (M.imp)
|
||||
|
||||
@@ -101,10 +101,10 @@
|
||||
|
||||
/obj/machinery/implantchair/proc/put_mob(mob/living/carbon/M as mob)
|
||||
if(!iscarbon(M))
|
||||
to_chat(usr, "<span class='warning'>\The [src] cannot hold this!</span>")
|
||||
to_chat(usr, span_warning("\The [src] cannot hold this!"))
|
||||
return
|
||||
if(src.occupant)
|
||||
to_chat(usr, "<span class='warning'>\The [src] is already occupied!</span>")
|
||||
to_chat(usr, span_warning("\The [src] is already occupied!"))
|
||||
return
|
||||
if(M.client)
|
||||
M.client.perspective = EYE_PERSPECTIVE
|
||||
@@ -125,7 +125,7 @@
|
||||
if(!imp) continue
|
||||
if(istype(imp, /obj/item/implant/loyalty))
|
||||
for (var/mob/O in viewers(M, null))
|
||||
O.show_message("<span class='warning'>\The [M] has been implanted by \the [src].</span>", 1)
|
||||
O.show_message(span_warning("\The [M] has been implanted by \the [src]."), 1)
|
||||
|
||||
if(imp.handle_implant(M, BP_TORSO))
|
||||
imp.post_implant(M)
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
/obj/item/implanter/attack_self(var/mob/user)
|
||||
active = !active
|
||||
to_chat(user, "<span class='notice'>You [active ? "" : "de"]activate \the [src].</span>")
|
||||
to_chat(user, span_notice("You [active ? "" : "de"]activate \the [src]."))
|
||||
update()
|
||||
|
||||
/obj/item/implanter/verb/remove_implant()
|
||||
@@ -27,7 +27,7 @@
|
||||
imp.loc = get_turf(src)
|
||||
if(M.get_active_hand() == null)
|
||||
M.put_in_hands(imp)
|
||||
to_chat(M, "<span class='notice'>You remove \the [imp] from \the [src].</span>")
|
||||
to_chat(M, span_notice("You remove \the [imp] from \the [src]."))
|
||||
name = "implanter"
|
||||
imp = null
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
return
|
||||
if(active)
|
||||
if (imp)
|
||||
M.visible_message("<span class='warning'>[user] is attempting to implant [M].</span>")
|
||||
M.visible_message(span_warning("[user] is attempting to implant [M]."))
|
||||
|
||||
user.setClickCooldown(DEFAULT_QUICK_COOLDOWN)
|
||||
user.do_attack_animation(M)
|
||||
@@ -56,7 +56,7 @@
|
||||
var/turf/T1 = get_turf(M)
|
||||
if (T1 && ((M == user) || do_after(user, 50)))
|
||||
if(user && M && (get_turf(M) == T1) && src && src.imp)
|
||||
M.visible_message("<span class='warning'>[M] has been implanted by [user].</span>")
|
||||
M.visible_message(span_warning("[M] has been implanted by [user]."))
|
||||
|
||||
add_attack_logs(user,M,"Implanted with [imp.name] using [name]")
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
src.imp = null
|
||||
update()
|
||||
else
|
||||
to_chat(user, "<span class='warning'>You need to activate \the [src.name] first.</span>")
|
||||
to_chat(user, span_warning("You need to activate \the [src.name] first."))
|
||||
return
|
||||
|
||||
/obj/item/implanter/loyalty
|
||||
@@ -134,16 +134,16 @@
|
||||
if(!proximity)
|
||||
return
|
||||
if(!active)
|
||||
to_chat(user, "<span class='warning'>Activate \the [src.name] first.</span>")
|
||||
to_chat(user, span_warning("Activate \the [src.name] first."))
|
||||
return
|
||||
if(istype(A,/obj/item) && imp)
|
||||
var/obj/item/implant/compressed/c = imp
|
||||
if (c.scanned)
|
||||
to_chat(user, "<span class='warning'>Something is already scanned inside the implant!</span>")
|
||||
to_chat(user, span_warning("Something is already scanned inside the implant!"))
|
||||
return
|
||||
c.scanned = A
|
||||
if(istype(A, /obj/item/storage))
|
||||
to_chat(user, "<span class='warning'>You can't store \the [A.name] in this!</span>")
|
||||
to_chat(user, span_warning("You can't store \the [A.name] in this!"))
|
||||
c.scanned = null
|
||||
return
|
||||
if(istype(A.loc,/mob/living/carbon/human))
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
/obj/item/implant/reagent_generator/post_implant(mob/living/carbon/source)
|
||||
START_PROCESSING(SSobj, src)
|
||||
to_chat(source, "<span class='notice'>You implant [source] with \the [src].</span>")
|
||||
to_chat(source, span_notice("You implant [source] with \the [src]."))
|
||||
assigned_proc = new assigned_proc(source, verb_name, verb_desc)
|
||||
return 1
|
||||
|
||||
@@ -52,9 +52,9 @@
|
||||
|
||||
if(reagents)
|
||||
if(reagents.total_volume == reagents.maximum_volume * 0.05)
|
||||
to_chat(imp_in, "<span class='notice'>[pick(empty_message)]</span>")
|
||||
to_chat(imp_in, span_notice("[pick(empty_message)]"))
|
||||
else if(reagents.total_volume == reagents.maximum_volume && before_gen < reagents.maximum_volume)
|
||||
to_chat(imp_in, "<span class='warning'>[pick(full_message)]</span>")
|
||||
to_chat(imp_in, span_warning("[pick(full_message)]"))
|
||||
|
||||
/obj/item/implant/reagent_generator/proc/do_generation(var/mob/living/L)
|
||||
L.adjust_nutrition(-gen_cost)
|
||||
@@ -78,7 +78,7 @@
|
||||
|
||||
var/obj/item/reagent_containers/container = user.get_active_hand()
|
||||
if(!container)
|
||||
to_chat(user,"<span class='notice'>You need an open container to do this!</span>")
|
||||
to_chat(user,span_notice("You need an open container to do this!"))
|
||||
return
|
||||
|
||||
|
||||
@@ -92,10 +92,9 @@
|
||||
if(container.reagents.total_volume < container.volume)
|
||||
var/container_name = container.name
|
||||
if(rimplant.reagents.trans_to(container, amount = rimplant.transfer_amount))
|
||||
user.visible_message("<span class='notice'>[usr] [pick(rimplant.emote_descriptor)] into \the [container_name].</span>",
|
||||
"<span class='notice'>You [pick(rimplant.self_emote_descriptor)] some [rimplant.reagent_name] into \the [container_name].</span>")
|
||||
user.visible_message(span_notice("[usr] [pick(rimplant.emote_descriptor)] into \the [container_name]."),
|
||||
span_notice("You [pick(rimplant.self_emote_descriptor)] some [rimplant.reagent_name] into \the [container_name]."))
|
||||
if(prob(5))
|
||||
src.visible_message("<span class='notice'>[src] [pick(rimplant.random_emote)].</span>") // M-mlem.
|
||||
src.visible_message(span_notice("[src] [pick(rimplant.random_emote)].")) // M-mlem.
|
||||
if(rimplant.reagents.total_volume == rimplant.reagents.maximum_volume * 0.05)
|
||||
to_chat(src, "<span class='notice'>[pick(rimplant.empty_message)]</span>")
|
||||
|
||||
to_chat(src, span_notice("[pick(rimplant.empty_message)]"))
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
/obj/item/implant/neural/Destroy()
|
||||
if(my_brain)
|
||||
if(my_brain.owner)
|
||||
to_chat(my_brain.owner, "<span class='critical'>You feel a pressure in your mind as something is ripped away.</span>")
|
||||
to_chat(my_brain.owner, span_critical("You feel a pressure in your mind as something is ripped away."))
|
||||
STOP_PROCESSING(SSobj, src)
|
||||
my_brain = null
|
||||
return ..()
|
||||
@@ -30,7 +30,7 @@
|
||||
/obj/item/implant/neural/process()
|
||||
if(my_brain && part)
|
||||
if(my_brain.loc != part.loc)
|
||||
to_chat(my_brain.owner, "<span class='critical'>You feel a pressure in your mind as something is ripped away.</span>")
|
||||
to_chat(my_brain.owner, span_critical("You feel a pressure in your mind as something is ripped away."))
|
||||
meltdown()
|
||||
return 1
|
||||
|
||||
@@ -67,26 +67,26 @@ Implant Specifics:<BR>"}
|
||||
else if(prob(80))
|
||||
my_brain.take_damage(5)
|
||||
if(!robotic_brain)
|
||||
to_chat(L, "<span class='critical'>Something in your [brain_location] burns!</span>")
|
||||
to_chat(L, span_critical("Something in your [brain_location] burns!"))
|
||||
else
|
||||
to_chat(L, "<span class='warning'>Severe fault detected in [brain_location].</span>")
|
||||
to_chat(L, span_warning("Severe fault detected in [brain_location]."))
|
||||
if(2)
|
||||
if(prob(80))
|
||||
my_brain.take_damage(3)
|
||||
if(!robotic_brain)
|
||||
to_chat(L, "<span class='danger'>It feels like something is digging into your [brain_location]!</span>")
|
||||
to_chat(L, span_danger("It feels like something is digging into your [brain_location]!"))
|
||||
else
|
||||
to_chat(L, "<span class='warning'>Fault detected in [brain_location].</span>")
|
||||
to_chat(L, span_warning("Fault detected in [brain_location]."))
|
||||
if(3)
|
||||
if(prob(60))
|
||||
my_brain.take_damage(2)
|
||||
if(!robotic_brain)
|
||||
to_chat(L, "<span class='warning'>There is a stabbing pain in your [brain_location]!</span>")
|
||||
to_chat(L, span_warning("There is a stabbing pain in your [brain_location]!"))
|
||||
if(4)
|
||||
if(prob(40))
|
||||
my_brain.take_damage(1)
|
||||
if(!robotic_brain)
|
||||
to_chat(L, "<span class='warning'>Your [brain_location] aches.</span>")
|
||||
to_chat(L, span_warning("Your [brain_location] aches."))
|
||||
|
||||
spawn(delay)
|
||||
malfunction--
|
||||
@@ -99,7 +99,7 @@ Implant Specifics:<BR>"}
|
||||
if(ishuman(my_brain.owner))
|
||||
H = my_brain.owner
|
||||
if(robotic_brain)
|
||||
to_chat(H, "<span class='critical'>WARNING. Fault dete-ct-- in the \the [src].</span>")
|
||||
to_chat(H, span_critical("WARNING. Fault dete-ct-- in the \the [src]."))
|
||||
H.Confuse(30)
|
||||
H.AdjustBlinded(5)
|
||||
my_brain.take_damage(15)
|
||||
|
||||
Reference in New Issue
Block a user