mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-25 04:57:12 +01:00
Convert most spans to defines (#31080)
* spanish? * aaaagain * keep maptext * Update robot_items.dm * Update span_defines.dm * compiles * Update silicon_mob.dm * compile
This commit is contained in:
@@ -12,6 +12,6 @@
|
||||
var/obj/item/newspaper/paper = O
|
||||
if(stat != CONSCIOUS || !paper.rolled)
|
||||
return ..()
|
||||
user.visible_message("<span class='notice'>[user] baps [name] on the nose with the rolled up [O].</span>")
|
||||
user.visible_message(SPAN_NOTICE("[user] baps [name] on the nose with the rolled up [O]."))
|
||||
INVOKE_ASYNC(src, PROC_REF(spin), 7 DECISECONDS, 1)
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
@@ -40,12 +40,12 @@
|
||||
var/mob/living/A = entered
|
||||
if(A.mob_size > MOB_SIZE_SMALL)
|
||||
if(prob(squish_chance))
|
||||
A.visible_message("<span class='notice'>\The [A] squashed \the [name].</span>", "<span class='notice'>You squashed \the [name].</span>")
|
||||
A.visible_message(SPAN_NOTICE("\The [A] squashed \the [name]."), SPAN_NOTICE("You squashed \the [name]."))
|
||||
death()
|
||||
else
|
||||
visible_message("<span class='notice'>\The [name] avoids getting crushed.</span>")
|
||||
visible_message(SPAN_NOTICE("\The [name] avoids getting crushed."))
|
||||
else if(isstructure(entered))
|
||||
visible_message("<span class='notice'>As \the [entered] moved over \the [name], it was crushed.</span>")
|
||||
visible_message(SPAN_NOTICE("As \the [entered] moved over \the [name], it was crushed."))
|
||||
death()
|
||||
|
||||
/mob/living/basic/cockroach/ex_act() // Explosions are a terrible way to handle a cockroach.
|
||||
|
||||
@@ -127,7 +127,7 @@
|
||||
M.throw_alert(NYMPH_ALERT, /atom/movable/screen/alert/gestalt, new_master = src)
|
||||
forceMove(M)
|
||||
else if(isrobot(M))
|
||||
M.visible_message("<span class='notice'>[M] playfully boops [src] on the head!</span>", "<span class='notice'>You playfully boop [src] on the head!</span>")
|
||||
M.visible_message(SPAN_NOTICE("[M] playfully boops [src] on the head!"), SPAN_NOTICE("You playfully boop [src] on the head!"))
|
||||
else
|
||||
get_scooped(M)
|
||||
else
|
||||
@@ -144,7 +144,7 @@
|
||||
choices += H
|
||||
|
||||
if(!length(choices))
|
||||
to_chat(src, "<span class='warning'>No suitable diona nearby.</span>")
|
||||
to_chat(src, SPAN_WARNING("No suitable diona nearby."))
|
||||
return FALSE
|
||||
|
||||
var/mob/living/M = tgui_input_list(src, "Who do you wish to merge with?", "Nymph Merging", choices)
|
||||
@@ -192,20 +192,20 @@
|
||||
return FALSE
|
||||
|
||||
if(length(donors) < evolve_donors)
|
||||
to_chat(src, "<span class='warning'>You need more blood in order to ascend to a new state of consciousness...</span>")
|
||||
to_chat(src, SPAN_WARNING("You need more blood in order to ascend to a new state of consciousness..."))
|
||||
return FALSE
|
||||
|
||||
if(nutrition < nutrition_need)
|
||||
to_chat(src, "<span class='warning'>You need to binge on weeds in order to have the energy to grow...</span>")
|
||||
to_chat(src, SPAN_WARNING("You need to binge on weeds in order to have the energy to grow..."))
|
||||
return FALSE
|
||||
|
||||
if(isdiona(loc) && !split()) // if it's merged with diona, needs to able to split before evolving
|
||||
return FALSE
|
||||
|
||||
visible_message("<span class='danger'>[src] begins to shift and quiver, and erupts in a shower of shed bark as it splits into a tangle of nearly a dozen new dionaea.</span>","<span class='danger'>You begin to shift and quiver, feeling your awareness splinter. All at once, we consume our stored nutrients to surge with growth, splitting into a tangle of at least a dozen new dionaea. We have attained our gestalt form.</span>")
|
||||
visible_message(SPAN_DANGER("[src] begins to shift and quiver, and erupts in a shower of shed bark as it splits into a tangle of nearly a dozen new dionaea."),SPAN_DANGER("You begin to shift and quiver, feeling your awareness splinter. All at once, we consume our stored nutrients to surge with growth, splitting into a tangle of at least a dozen new dionaea. We have attained our gestalt form."))
|
||||
|
||||
if(master_commander)
|
||||
to_chat(src, "<span class='userdanger'>As you evolve, your mind grows out of it's restraints. You are no longer loyal to [master_commander]!</span>")
|
||||
to_chat(src, SPAN_USERDANGER("As you evolve, your mind grows out of it's restraints. You are no longer loyal to [master_commander]!"))
|
||||
|
||||
var/mob/living/carbon/human/diona/adult = new(get_turf(loc))
|
||||
adult.set_species(/datum/species/diona)
|
||||
@@ -235,7 +235,7 @@
|
||||
/mob/living/basic/diona_nymph/proc/check_full(datum/source, obj/item/potential_food)
|
||||
SIGNAL_HANDLER // COMSIG_MOB_PRE_EAT
|
||||
if(nutrition >= nutrition_need) // Prevents griefing by overeating food items without evolving.
|
||||
to_chat(src, "<span class='warning'>You're too full to consume this! Perhaps it's time to grow bigger...</span>")
|
||||
to_chat(src, SPAN_WARNING("You're too full to consume this! Perhaps it's time to grow bigger..."))
|
||||
return COMSIG_MOB_TERMINATE_EAT
|
||||
|
||||
// Consumes plant matter other than weeds to evolve
|
||||
@@ -256,7 +256,7 @@
|
||||
choices += H
|
||||
|
||||
if(!length(choices))
|
||||
to_chat(src, "<span class='warning'>No suitable blood donors nearby.</span>")
|
||||
to_chat(src, SPAN_WARNING("No suitable blood donors nearby."))
|
||||
return FALSE
|
||||
|
||||
var/mob/living/carbon/human/M = tgui_input_list(src, "Who do you wish to take a sample from?", "Blood Sampling", choices)
|
||||
@@ -265,14 +265,14 @@
|
||||
return FALSE
|
||||
|
||||
if(!M.dna || (NO_BLOOD in M.dna.species.species_traits))
|
||||
to_chat(src, "<span class='warning'>That donor has no blood to take.</span>")
|
||||
to_chat(src, SPAN_WARNING("That donor has no blood to take."))
|
||||
return FALSE
|
||||
|
||||
if(donors.Find(M.real_name))
|
||||
to_chat(src, "<span class='warning'>That donor offers you nothing new.</span>")
|
||||
to_chat(src, SPAN_WARNING("That donor offers you nothing new."))
|
||||
return FALSE
|
||||
|
||||
visible_message("<span class='danger'>[src] flicks out a feeler and neatly steals a sample of [M]'s blood.</span>","<span class='danger'>You flick out a feeler and neatly steal a sample of [M]'s blood.</span>")
|
||||
visible_message(SPAN_DANGER("[src] flicks out a feeler and neatly steals a sample of [M]'s blood."),SPAN_DANGER("You flick out a feeler and neatly steal a sample of [M]'s blood."))
|
||||
donors += M.real_name
|
||||
for(var/datum/language/L in M.languages)
|
||||
if(!(L.flags & HIVEMIND))
|
||||
@@ -286,12 +286,12 @@
|
||||
return FALSE
|
||||
|
||||
if(length(donors) == evolve_donors)
|
||||
to_chat(src, "<span class='noticealien'>You feel ready to move on to your next stage of growth.</span>")
|
||||
to_chat(src, SPAN_NOTICEALIEN("You feel ready to move on to your next stage of growth."))
|
||||
else if(length(donors) == awareness_donors)
|
||||
universal_understand = TRUE
|
||||
to_chat(src, "<span class='noticealien'>You feel your awareness expand, and realize you know how to understand the creatures around you.</span>")
|
||||
to_chat(src, SPAN_NOTICEALIEN("You feel your awareness expand, and realize you know how to understand the creatures around you."))
|
||||
else
|
||||
to_chat(src, "<span class='noticealien'>The blood seeps into your small form, and you draw out the echoes of memories and personality from it, working them into your budding mind.</span>")
|
||||
to_chat(src, SPAN_NOTICEALIEN("The blood seeps into your small form, and you draw out the echoes of memories and personality from it, working them into your budding mind."))
|
||||
|
||||
|
||||
/mob/living/basic/diona_nymph/put_in_hands(obj/item/W)
|
||||
@@ -301,7 +301,7 @@
|
||||
W.dropped()
|
||||
|
||||
/mob/living/basic/diona_nymph/put_in_active_hand(obj/item/W)
|
||||
to_chat(src, "<span class='warning'>You don't have any hands!</span>")
|
||||
to_chat(src, SPAN_WARNING("You don't have any hands!"))
|
||||
return
|
||||
|
||||
/mob/living/basic/diona_nymph/valid_respawn_target_for(mob/user)
|
||||
|
||||
@@ -70,11 +70,11 @@
|
||||
if(stat != CONSCIOUS)
|
||||
return
|
||||
if(!has_tail)
|
||||
to_chat(usr, "<span class='warning'>You have no tail to shed!</span>")
|
||||
to_chat(usr, SPAN_WARNING("You have no tail to shed!"))
|
||||
return
|
||||
for(var/obj/item/grab/G in usr.grabbed_by)
|
||||
var/mob/living/carbon/M = G.assailant
|
||||
usr.visible_message("<span class='warning'>[usr] suddenly sheds their tail and slips out of [M]'s grasp!</span>")
|
||||
usr.visible_message(SPAN_WARNING("[usr] suddenly sheds their tail and slips out of [M]'s grasp!"))
|
||||
M.KnockDown(3 SECONDS) // FUCK I TRIPPED
|
||||
playsound(usr.loc, "sound/misc/slip.ogg", 75, 1)
|
||||
has_tail = FALSE
|
||||
@@ -82,12 +82,12 @@
|
||||
|
||||
/mob/living/basic/lizard/proc/new_tail()
|
||||
has_tail = TRUE
|
||||
to_chat(src, "<span class='notice'>You regrow your tail!</span>")
|
||||
to_chat(src, SPAN_NOTICE("You regrow your tail!"))
|
||||
|
||||
/mob/living/basic/lizard/decompile_act(obj/item/matter_decompiler/C, mob/user)
|
||||
if(!isdrone(user))
|
||||
user.visible_message("<span class='notice'>[user] sucks [src] into its decompiler. There's a horrible crunching noise.</span>", \
|
||||
"<span class='warning'>It's a bit of a struggle, but you manage to suck [src] into your decompiler. It makes a series of visceral crunching noises.</span>")
|
||||
user.visible_message(SPAN_NOTICE("[user] sucks [src] into its decompiler. There's a horrible crunching noise."), \
|
||||
SPAN_WARNING("It's a bit of a struggle, but you manage to suck [src] into your decompiler. It makes a series of visceral crunching noises."))
|
||||
new/obj/effect/decal/cleanable/blood/splatter(get_turf(src))
|
||||
C.stored_comms["metal"] += 2 // having more metal than glass because blood has iron in it
|
||||
C.stored_comms["glass"] += 1
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
SIGNAL_HANDLER // COMSIG_ATOM_ENTERED
|
||||
|
||||
if(ishuman(entered) && stat == CONSCIOUS)
|
||||
to_chat(entered, "<span class='notice'>Squeak!</span>")
|
||||
to_chat(entered, SPAN_NOTICE("Squeak!"))
|
||||
|
||||
/// Called when a mouse is hand-fed some cheese, it will stop being afraid of humans
|
||||
/mob/living/basic/mouse/tamed(mob/living/tamer, obj/item/food/sliced/cheesewedge/cheese)
|
||||
@@ -98,14 +98,14 @@
|
||||
/mob/living/basic/mouse/proc/try_consume_cheese(obj/item/food/sliced/cheesewedge/cheese)
|
||||
if(prob(90) || health < maxHealth)
|
||||
visible_message(
|
||||
"<span class='notice'>[src] nibbles [cheese].</span>",
|
||||
"<span class='notice'>You nibble [cheese][health < maxHealth ? ", restoring your health" : ""].</span>"
|
||||
SPAN_NOTICE("[src] nibbles [cheese]."),
|
||||
SPAN_NOTICE("You nibble [cheese][health < maxHealth ? ", restoring your health" : ""].")
|
||||
)
|
||||
adjustHealth(-maxHealth)
|
||||
else
|
||||
visible_message(
|
||||
"<span class='notice'>[src] nibbles through [cheese], attracting another mouse!</span>",
|
||||
"<span class='notice'>You nibble through [cheese], attracting another mouse!</span>"
|
||||
SPAN_NOTICE("[src] nibbles through [cheese], attracting another mouse!"),
|
||||
SPAN_NOTICE("You nibble through [cheese], attracting another mouse!")
|
||||
)
|
||||
new /mob/living/basic/mouse(loc)
|
||||
qdel(cheese)
|
||||
@@ -116,11 +116,11 @@
|
||||
return
|
||||
var/turf/simulated/floor/F = get_turf(cable)
|
||||
if(cable.get_available_power() && !HAS_TRAIT(src, TRAIT_SHOCKIMMUNE))
|
||||
visible_message("<span class='warning'>[src] chews through [cable]. It's toast!</span>")
|
||||
visible_message(SPAN_WARNING("[src] chews through [cable]. It's toast!"))
|
||||
playsound(src, 'sound/effects/sparks2.ogg', 100, 1)
|
||||
toast() // mmmm toasty.
|
||||
else
|
||||
visible_message("<span class='warning'>[src] chews through [cable].</span>")
|
||||
visible_message(SPAN_WARNING("[src] chews through [cable]."))
|
||||
investigate_log("was chewed through by a mouse in [get_area(F)]([F.x], [F.y], [F.z] - [ADMIN_JMP(F)])",INVESTIGATE_WIRES)
|
||||
cable.deconstruct()
|
||||
|
||||
@@ -128,14 +128,14 @@
|
||||
if(istype(AM, /obj/item/food/sliced/cheesewedge))
|
||||
return ..() // Get dem
|
||||
if(show_message)
|
||||
to_chat(src, "<span class='warning'>You are too small to pull anything except cheese.</span>")
|
||||
to_chat(src, SPAN_WARNING("You are too small to pull anything except cheese."))
|
||||
return
|
||||
|
||||
/mob/living/basic/mouse/proc/on_atom_entered(datum/source, atom/movable/entered)
|
||||
if(ishuman(entered))
|
||||
if(stat == CONSCIOUS)
|
||||
var/mob/M = entered
|
||||
to_chat(M, "<span class='notice'>[bicon(src)] Squeek!</span>")
|
||||
to_chat(M, SPAN_NOTICE("[bicon(src)] Squeek!"))
|
||||
|
||||
/mob/living/basic/mouse/proc/toast()
|
||||
add_atom_colour("#3A3A3A", FIXED_COLOUR_PRIORITY)
|
||||
@@ -232,7 +232,7 @@
|
||||
bursted = TRUE
|
||||
var/turf/T = get_turf(src)
|
||||
if(!is_station_level(T.z) || isspaceturf(T))
|
||||
to_chat(src, "<span class='userdanger'>You feel ready to burst, but this isn't an appropriate place! You must return to the station!</span>")
|
||||
to_chat(src, SPAN_USERDANGER("You feel ready to burst, but this isn't an appropriate place! You must return to the station!"))
|
||||
apply_status_effect(STATUS_EFFECT_BLOB_BURST, 5 SECONDS, CALLBACK(src, PROC_REF(burst), FALSE))
|
||||
return FALSE
|
||||
var/datum/mind/blobmind = mind
|
||||
@@ -257,13 +257,13 @@
|
||||
SSticker.record_biohazard_start(BIOHAZARD_BLOB)
|
||||
|
||||
/mob/living/basic/mouse/blobinfected/get_scooped(mob/living/carbon/grabber)
|
||||
to_chat(grabber, "<span class='warning'>You try to pick up [src], but they slip out of your grasp!</span>")
|
||||
to_chat(src, "<span class='warning'>[src] tries to pick you up, but you wriggle free of their grasp!</span>")
|
||||
to_chat(grabber, SPAN_WARNING("You try to pick up [src], but they slip out of your grasp!"))
|
||||
to_chat(src, SPAN_WARNING("[src] tries to pick you up, but you wriggle free of their grasp!"))
|
||||
|
||||
/mob/living/basic/mouse/decompile_act(obj/item/matter_decompiler/C, mob/user)
|
||||
if(!isdrone(user))
|
||||
user.visible_message("<span class='notice'>[user] sucks [src] into its decompiler. There's a horrible crunching noise.</span>", \
|
||||
"<span class='warning'>It's a bit of a struggle, but you manage to suck [src] into your decompiler. It makes a series of visceral crunching noises.</span>")
|
||||
user.visible_message(SPAN_NOTICE("[user] sucks [src] into its decompiler. There's a horrible crunching noise."), \
|
||||
SPAN_WARNING("It's a bit of a struggle, but you manage to suck [src] into your decompiler. It makes a series of visceral crunching noises."))
|
||||
new/obj/effect/decal/cleanable/blood/splatter(get_turf(src))
|
||||
C.stored_comms["metal"] += 2
|
||||
C.stored_comms["glass"] += 1
|
||||
|
||||
@@ -78,11 +78,11 @@
|
||||
// A changeling caterpillar shouldn't be restricted from evolving.
|
||||
// A caterpillar needs to consume food-- similar to a dioan nymph --to evolve.
|
||||
if((nutrition < nutrition_need) && !IS_CHANGELING(M))
|
||||
to_chat(src, "<span class='warning'>You need to binge on food in order to have the energy to evolve...</span>")
|
||||
to_chat(src, SPAN_WARNING("You need to binge on food in order to have the energy to evolve..."))
|
||||
return
|
||||
|
||||
if(master_commander)
|
||||
to_chat(src, "<span class='userdanger'>As you evolve, your mind grows out of it's restraints. You are no longer loyal to [master_commander]!</span>")
|
||||
to_chat(src, SPAN_USERDANGER("As you evolve, your mind grows out of it's restraints. You are no longer loyal to [master_commander]!"))
|
||||
|
||||
// Worme is the lesser form of nian. The caterpillar evolves into this lesser form.
|
||||
var/mob/living/carbon/human/nian_worme/adult = new(get_turf(loc))
|
||||
@@ -125,7 +125,7 @@
|
||||
/mob/living/basic/nian_caterpillar/proc/check_full(datum/source, obj/item/potential_food)
|
||||
SIGNAL_HANDLER // COMSIG_MOB_PRE_EAT
|
||||
if(nutrition >= nutrition_need) // Prevents griefing by overeating food items without evolving.
|
||||
to_chat(src, "<span class='warning'>You're too full to consume this! Perhaps it's time to grow bigger...</span>")
|
||||
to_chat(src, SPAN_WARNING("You're too full to consume this! Perhaps it's time to grow bigger..."))
|
||||
return COMSIG_MOB_TERMINATE_EAT
|
||||
|
||||
|
||||
@@ -141,7 +141,7 @@
|
||||
if(M.a_intent != INTENT_HELP)
|
||||
return ..()
|
||||
if(isrobot(M))
|
||||
M.visible_message("<span class='notice'>[M] playfully boops [src] on the head!</span>", "<span class='notice'>You playfully boop [src] on the head!</span>")
|
||||
M.visible_message(SPAN_NOTICE("[M] playfully boops [src] on the head!"), SPAN_NOTICE("You playfully boop [src] on the head!"))
|
||||
else
|
||||
get_scooped(M)
|
||||
|
||||
@@ -171,7 +171,7 @@
|
||||
/datum/action/innate/nian_caterpillar_emerge/Activate()
|
||||
var/mob/living/basic/nian_caterpillar/user = owner
|
||||
|
||||
user.visible_message("<span class='notice'>[user] begins to hold still and concentrate on weaving a cocoon...</span>", "<span class='notice'>You begin to focus on weaving a cocoon... (This will take [COCOON_WEAVE_DELAY / 10] seconds, and you must hold still.)</span>")
|
||||
user.visible_message(SPAN_NOTICE("[user] begins to hold still and concentrate on weaving a cocoon..."), SPAN_NOTICE("You begin to focus on weaving a cocoon... (This will take [COCOON_WEAVE_DELAY / 10] seconds, and you must hold still.)"))
|
||||
if(do_after(user, COCOON_WEAVE_DELAY, FALSE, user))
|
||||
var/obj/structure/moth_cocoon/C = new(get_turf(user))
|
||||
var/datum/mind/H = user.mind
|
||||
@@ -190,13 +190,13 @@
|
||||
|
||||
/datum/action/cooldown/mob_cooldown/spin_mothsilk/Activate(atom/target)
|
||||
if(owner.nutrition < 425)
|
||||
to_chat(owner, "<span class='warning'>You don't have enough nutrition to spin silk!</span>")
|
||||
to_chat(owner, SPAN_WARNING("You don't have enough nutrition to spin silk!"))
|
||||
return FALSE
|
||||
if(!do_after(owner, 3 SECONDS))
|
||||
return FALSE
|
||||
new /obj/item/stack/sheet/mothsilk(get_turf(owner))
|
||||
owner.nutrition -= 15
|
||||
owner.visible_message("<span class='notice'>[owner] spins some mothsilk!</span>")
|
||||
owner.visible_message(SPAN_NOTICE("[owner] spins some mothsilk!"))
|
||||
StartCooldown()
|
||||
return TRUE
|
||||
|
||||
|
||||
@@ -57,10 +57,10 @@
|
||||
if(istype(O, /obj/item/mmi))
|
||||
var/obj/item/mmi/B = O
|
||||
if(mmi) // There's already a brain in it.
|
||||
to_chat(user, "<span class='warning'>There's already a brain in [src]!</span>")
|
||||
to_chat(user, SPAN_WARNING("There's already a brain in [src]!"))
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
if(!B.brainmob)
|
||||
to_chat(user, "<span class='warning'>Sticking an empty MMI into the frame would sort of defeat the purpose.</span>")
|
||||
to_chat(user, SPAN_WARNING("Sticking an empty MMI into the frame would sort of defeat the purpose."))
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
if(!B.brainmob.key)
|
||||
var/ghost_can_reenter = 0
|
||||
@@ -74,18 +74,18 @@
|
||||
ghost_can_reenter = 1
|
||||
break
|
||||
if(!ghost_can_reenter)
|
||||
to_chat(user, "<span class='notice'>[B] is completely unresponsive; there's no point.</span>")
|
||||
to_chat(user, SPAN_NOTICE("[B] is completely unresponsive; there's no point."))
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
if(B.brainmob.stat == DEAD)
|
||||
to_chat(user, "<span class='warning'>[B] is dead. Sticking it into the frame would sort of defeat the purpose.</span>")
|
||||
to_chat(user, SPAN_WARNING("[B] is dead. Sticking it into the frame would sort of defeat the purpose."))
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
if(jobban_isbanned(B.brainmob, "Cyborg") || jobban_isbanned(B.brainmob, "nonhumandept"))
|
||||
to_chat(user, "<span class='warning'>[B] does not seem to fit.</span>")
|
||||
to_chat(user, SPAN_WARNING("[B] does not seem to fit."))
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
to_chat(user, "<span class='notice'>You install [B] in [src]!</span>")
|
||||
to_chat(user, SPAN_NOTICE("You install [B] in [src]!"))
|
||||
|
||||
user.drop_item()
|
||||
B.forceMove(src)
|
||||
@@ -97,11 +97,11 @@
|
||||
|
||||
else if(istype(O, /obj/item/card/id) || istype(O, /obj/item/pda))
|
||||
if(!mmi)
|
||||
to_chat(user, "<span class='warning'>There's no reason to swipe your ID - the spiderbot has no brain to remove.</span>")
|
||||
to_chat(user, SPAN_WARNING("There's no reason to swipe your ID - the spiderbot has no brain to remove."))
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
if(emagged)
|
||||
to_chat(user, "<span class='warning'>[src] doesn't seem to respond.</span>")
|
||||
to_chat(user, SPAN_WARNING("[src] doesn't seem to respond."))
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
var/obj/item/card/id/id_card
|
||||
@@ -113,11 +113,11 @@
|
||||
id_card = pda.id
|
||||
|
||||
if(ACCESS_ROBOTICS in id_card.access)
|
||||
to_chat(user, "<span class='notice'>You swipe your access card and pop the brain out of [src].</span>")
|
||||
to_chat(user, SPAN_NOTICE("You swipe your access card and pop the brain out of [src]."))
|
||||
eject_brain()
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
else
|
||||
to_chat(user, "<span class='warning'>You swipe your card, with no effect.</span>")
|
||||
to_chat(user, SPAN_WARNING("You swipe your card, with no effect."))
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
/mob/living/basic/spiderbot/welder_act(mob/user, obj/item/I)
|
||||
@@ -126,23 +126,23 @@
|
||||
if(user == src) // No self-repair dummy
|
||||
return
|
||||
if(health >= maxHealth)
|
||||
to_chat(user, "<span class='warning'>[src] does not need repairing!</span>")
|
||||
to_chat(user, SPAN_WARNING("[src] does not need repairing!"))
|
||||
return
|
||||
. = TRUE
|
||||
if(!I.use_tool(src, user, volume = I.tool_volume))
|
||||
return
|
||||
adjustHealth(-5)
|
||||
add_fingerprint(user)
|
||||
user.visible_message("[user] repairs [src]!","<span class='notice'>You repair [src].</span>")
|
||||
user.visible_message("[user] repairs [src]!",SPAN_NOTICE("You repair [src]."))
|
||||
|
||||
/mob/living/basic/spiderbot/emag_act(mob/living/user)
|
||||
if(emagged)
|
||||
to_chat(user, "<span class='warning'>[src] doesn't seem to respond.</span>")
|
||||
to_chat(user, SPAN_WARNING("[src] doesn't seem to respond."))
|
||||
return 0
|
||||
else
|
||||
emagged = TRUE
|
||||
to_chat(user, "<span class='notice'>You short out the security protocols and rewrite [src]'s internal memory.</span>")
|
||||
to_chat(src, "<span class='userdanger'>You have been emagged; you are now completely loyal to [user] and [user.p_their()] every order!</span>")
|
||||
to_chat(user, SPAN_NOTICE("You short out the security protocols and rewrite [src]'s internal memory."))
|
||||
to_chat(src, SPAN_USERDANGER("You have been emagged; you are now completely loyal to [user] and [user.p_their()] every order!"))
|
||||
emagged_master = user
|
||||
add_attack_logs(user, src, "Emagged")
|
||||
maxHealth = 60
|
||||
@@ -158,7 +158,7 @@
|
||||
ckey = M.brainmob.ckey
|
||||
name = "Spider-bot ([M.brainmob.name])"
|
||||
if(emagged)
|
||||
to_chat(src, "<span class='userdanger'>You have been emagged; you are now completely loyal to [emagged_master] and [emagged_master.p_their()] every order!</span>")
|
||||
to_chat(src, SPAN_USERDANGER("You have been emagged; you are now completely loyal to [emagged_master] and [emagged_master.p_their()] every order!"))
|
||||
|
||||
/mob/living/basic/spiderbot/update_icon_state()
|
||||
if(mmi)
|
||||
|
||||
Reference in New Issue
Block a user