* "Is already...", "Can not...", "Not when..." etc.

This commit is contained in:
kingofkosmos
2019-06-27 06:15:43 +03:00
parent ebf787a97a
commit ec5c82029a
43 changed files with 134 additions and 136 deletions
+6 -7
View File
@@ -184,18 +184,18 @@ SUBSYSTEM_DEF(shuttle)
emergency = backup_shuttle
var/srd = CONFIG_GET(number/shuttle_refuel_delay)
if(world.time - SSticker.round_start_time < srd)
to_chat(user, "The emergency shuttle is refueling. Please wait [DisplayTimeText(srd - (world.time - SSticker.round_start_time))] before trying again.")
to_chat(user, "<span class='error'>The emergency shuttle is refueling. Please wait [DisplayTimeText(srd - (world.time - SSticker.round_start_time))] before trying again.</span>")
return
switch(emergency.mode)
if(SHUTTLE_RECALL)
to_chat(user, "The emergency shuttle may not be called while returning to CentCom.")
to_chat(user, "<span class='error'>The emergency shuttle may not be called while returning to CentCom.</span>")
return
if(SHUTTLE_CALL)
to_chat(user, "The emergency shuttle is already on its way.")
to_chat(user, "<span class='error'>The emergency shuttle is already on its way.</span>")
return
if(SHUTTLE_DOCKED)
to_chat(user, "The emergency shuttle is already here.")
to_chat(user, "<span class='error'>The emergency shuttle is already here.</span>")
return
if(SHUTTLE_IGNITING)
to_chat(user, "The emergency shuttle is firing its engines to leave.")
@@ -204,13 +204,13 @@ SUBSYSTEM_DEF(shuttle)
to_chat(user, "The emergency shuttle is moving away to a safe distance.")
return
if(SHUTTLE_STRANDED)
to_chat(user, "The emergency shuttle has been disabled by CentCom.")
to_chat(user, "<span class='error'>The emergency shuttle has been disabled by CentCom.</span>")
return
call_reason = trim(html_encode(call_reason))
if(length(call_reason) < CALL_SHUTTLE_REASON_LENGTH && seclevel2num(get_security_level()) > SEC_LEVEL_GREEN)
to_chat(user, "You must provide a reason.")
to_chat(user, "<span class='error'>You must provide a reason.</span>")
return
var/area/signal_origin = get_area(user)
@@ -892,4 +892,3 @@ SUBSYSTEM_DEF(shuttle)
message_admins("[key_name_admin(usr)] loaded [mdp] with the shuttle manipulator.")
log_admin("[key_name(usr)] loaded [mdp] with the shuttle manipulator.</span>")
SSblackbox.record_feedback("text", "shuttle_manipulator", 1, "[mdp.name]")
+2 -2
View File
@@ -162,7 +162,7 @@
if(!istype(next) || !istype(current))
return //not happening.
if(!turf_check(next, current))
to_chat(user, "Your \the [AM] can not go onto [next]!")
to_chat(user, "<span class='warning'>Your \the [AM] can not go onto [next]!</span>")
return
if(!Process_Spacemove(direction) || !isturf(AM.loc))
return
@@ -176,7 +176,7 @@
handle_vehicle_layer()
handle_vehicle_offsets()
else
to_chat(user, "<span class='notice'>You'll need the keys in one of your hands to [drive_verb] [AM].</span>")
to_chat(user, "<span class='warning'>You'll need the keys in one of your hands to [drive_verb] [AM].</span>")
/datum/component/riding/proc/Unbuckle(atom/movable/M)
addtimer(CALLBACK(parent, /atom/movable/.proc/unbuckle_mob, M), 0, TIMER_UNIQUE)
+2 -2
View File
@@ -125,7 +125,7 @@
if (can_hold_list != null)
can_hold = typecacheof(can_hold_list)
if (cant_hold_list != null)
if (cant_hold_list != null)
cant_hold = typecacheof(cant_hold_list)
/datum/component/storage/proc/generate_hold_desc(can_hold_list)
@@ -211,7 +211,7 @@
things = typecache_filter_list(things, typecacheof(I.type))
var/len = length(things)
if(!len)
to_chat(M, "<span class='notice'>You failed to pick up anything with [parent].</span>")
to_chat(M, "<span class='warning'>You failed to pick up anything with [parent]!</span>")
return
var/datum/progressbar/progress = new(M, len, I.loc)
var/list/rejections = list()
+2 -2
View File
@@ -122,7 +122,7 @@
ejectpda()
else
to_chat(user, "<span class='notice'>[src] is empty.</span>")
to_chat(user, "<span class='warning'>[src] is empty!</span>")
/obj/machinery/pdapainter/verb/ejectpda()
@@ -138,7 +138,7 @@
storedpda = null
update_icon()
else
to_chat(usr, "<span class='notice'>[src] is empty.</span>")
to_chat(usr, "<span class='warning'>[src] is empty!</span>")
/obj/machinery/pdapainter/power_change()
+2 -2
View File
@@ -35,10 +35,10 @@
to_chat(user, "<span class='danger'>Access denied.</span>")
return
if(!uses)
to_chat(user, "<span class='danger'>[src] is out of foam and cannot be activated.</span>")
to_chat(user, "<span class='warning'>[src] is out of foam and cannot be activated!</span>")
return
if(cooldown_time > world.time)
to_chat(user, "<span class='danger'>[src] cannot be activated for <b>[DisplayTimeText(world.time - cooldown_time)]</b>.</span>")
to_chat(user, "<span class='warning'>[src] cannot be activated for <b>[DisplayTimeText(world.time - cooldown_time)]</b>!</span>")
return
new /obj/effect/particle_effect/foam(loc)
uses--
+2 -2
View File
@@ -118,7 +118,7 @@
eject_part(user)
else
to_chat(user, "<span class='notice'>\The [src] is empty.</span>")
to_chat(user, "<span class='warning'>\The [src] is empty!</span>")
/obj/machinery/aug_manipulator/proc/eject_part(mob/living/user)
if(storedpart)
@@ -126,7 +126,7 @@
storedpart = null
update_icon()
else
to_chat(user, "<span class='notice'>[src] is empty.</span>")
to_chat(user, "<span class='warning'>[src] is empty!</span>")
/obj/machinery/aug_manipulator/AltClick(mob/living/user)
..()
+1 -1
View File
@@ -125,7 +125,7 @@
//Downloading AI from card to terminal.
if(interaction == AI_TRANS_FROM_CARD)
if(stat & (NOPOWER|BROKEN))
to_chat(user, "[src] is offline and cannot take an AI at this time!")
to_chat(user, "<span class='error'>[src] is offline and cannot take an AI at this time!</span>")
return
AI.forceMove(src)
occupier = AI
@@ -49,7 +49,7 @@
/obj/machinery/proc/remove_eye_control(mob/living/user)
CRASH("[type] does not implement ai eye handling")
/obj/machinery/computer/camera_advanced/remove_eye_control(mob/living/user)
if(!user)
return
@@ -102,7 +102,7 @@
if(!is_operational()) //you cant use broken machine you chumbis
return
if(current_user)
to_chat(user, "The console is already in use!")
to_chat(user, "<span class='warning'>The console is already in use!</span>")
return
var/mob/living/L = user
+20 -20
View File
@@ -695,7 +695,7 @@
aiHacking = FALSE
return
else if(!canAIHack())
to_chat(user, "Connection lost! Unable to hack airlock.")
to_chat(user, "<span class='error'>Connection lost! Unable to hack airlock.</span>")
aiHacking = FALSE
return
to_chat(user, "Fault confirmed: airlock control wire disabled or cut.")
@@ -717,7 +717,7 @@
aiHacking = FALSE
return
else if(!canAIHack())
to_chat(user, "Connection lost! Unable to hack airlock.")
to_chat(user, "<span class='error'>Connection lost! Unable to hack airlock.</span>")
aiHacking = FALSE
return
to_chat(user, "Transfer complete. Forcing airlock to execute program.")
@@ -1479,14 +1479,14 @@
loseMainPower()
update_icon()
else
to_chat(usr, "Main power is already offline.")
to_chat(usr, "<span class='error'>Main power is already offline.</span>")
. = TRUE
if("disrupt-backup")
if(!secondsBackupPowerLost)
loseBackupPower()
update_icon()
else
to_chat(usr, "Backup power is already offline.")
to_chat(usr, "<span class='error'>Backup power is already offline.</span>")
. = TRUE
if("shock-restore")
shock_restore(usr)
@@ -1499,7 +1499,7 @@
. = TRUE
if("idscan-on")
if(wires.is_cut(WIRE_IDSCAN))
to_chat(usr, "You can't enable IdScan - The IdScan wire has been cut.")
to_chat(usr, "<span class='error'>You can't enable IdScan - The IdScan wire has been cut.</span>")
else if(aiDisabledIdScanner)
aiDisabledIdScanner = FALSE
else
@@ -1509,7 +1509,7 @@
if(wires.is_cut(WIRE_IDSCAN))
to_chat(usr, "The IdScan wire has been cut - So, you can't disable it, but it is already disabled anyways.")
else if(aiDisabledIdScanner)
to_chat(usr, "You've already disabled the IdScan feature.")
to_chat(usr, "<span class='error'>You've already disabled the IdScan feature.</span>")
else
aiDisabledIdScanner = TRUE
. = TRUE
@@ -1532,7 +1532,7 @@
lights = TRUE
update_icon()
else
to_chat(usr, text("Door bolt lights are already enabled!"))
to_chat(usr, text("<span class='error'>Door bolt lights are already enabled!</span>"))
. = TRUE
if("light-off")
if(wires.is_cut(WIRE_LIGHT))
@@ -1541,7 +1541,7 @@
lights = FALSE
update_icon()
else
to_chat(usr, "Door bolt lights are already disabled!")
to_chat(usr, "<span class='error'>Door bolt lights are already disabled!</span>")
. = TRUE
if("safe-on")
if(wires.is_cut(WIRE_SAFETY))
@@ -1549,7 +1549,7 @@
else if (!safe)
safe = TRUE
else
to_chat(usr, "Firmware reports safeties already in place.")
to_chat(usr, "<span class='error'>Firmware reports safeties already in place!</span>")
. = TRUE
if("safe-off")
if(wires.is_cut(WIRE_SAFETY))
@@ -1557,7 +1557,7 @@
else if (safe)
safe = FALSE
else
to_chat(usr, "Firmware reports safeties already overridden.")
to_chat(usr, "<span class='error'>Firmware reports safeties already overridden!</span>")
. = TRUE
if("speed-on")
if(wires.is_cut(WIRE_TIMING))
@@ -1573,7 +1573,7 @@
else if (normalspeed)
normalspeed = 0
else
to_chat(usr, "Door timing circuitry already accelerated.")
to_chat(usr, "<span class='error'>Door timing circuitry already accelerated!</span>")
. = TRUE
if("open-close")
@@ -1587,7 +1587,7 @@
if(!user_allowed(user))
return
if(wires.is_cut(WIRE_SHOCK))
to_chat(user, "Can't un-electrify the airlock - The electrification wire is cut.")
to_chat(user, "<span class='error'>Can't un-electrify the airlock - The electrification wire is cut.</span>")
else if(isElectrified())
set_electrified(MACHINE_NOT_ELECTRIFIED, user)
@@ -1614,7 +1614,7 @@
emergency = TRUE
update_icon()
else
to_chat(user, "Emergency access is already enabled!")
to_chat(user, "<span class='error'>Emergency access is already enabled!</span>")
/obj/machinery/door/airlock/proc/emergency_off(mob/user)
if(!user_allowed(user))
@@ -1623,26 +1623,26 @@
emergency = FALSE
update_icon()
else
to_chat(user, "Emergency access is already disabled!")
to_chat(user, "<span class='error'>Emergency access is already disabled!</span>")
/obj/machinery/door/airlock/proc/bolt_raise(mob/user)
if(!user_allowed(user))
return
if(wires.is_cut(WIRE_BOLTS))
to_chat(user, "The door bolt drop wire is cut - you can't raise the door bolts")
to_chat(user, "<span class='error'>The door bolt drop wire is cut - you can't raise the door bolts!</span>")
else if(!locked)
to_chat(user, "The door bolts are already up")
to_chat(user, "<span class='error'>The door bolts are already up!</span>")
else
if(hasPower())
unbolt()
else
to_chat(user, "Cannot raise door bolts due to power failure")
to_chat(user, "<span class='error'>Cannot raise door bolts due to power failure.</span>")
/obj/machinery/door/airlock/proc/bolt_drop(mob/user)
if(!user_allowed(user))
return
if(wires.is_cut(WIRE_BOLTS))
to_chat(user, "You can't drop the door bolts - The door bolt dropping wire has been cut.")
to_chat(user, "<span class='error'>You can't drop the door bolts - The door bolt dropping wire has been cut.</span>")
else
bolt()
@@ -1650,9 +1650,9 @@
if(!user_allowed(user))
return
if(welded)
to_chat(user, text("The airlock has been welded shut!"))
to_chat(user, text("<span class='warning'>The airlock has been welded shut!</span>"))
else if(locked)
to_chat(user, text("The door bolts are down!"))
to_chat(user, text("<span class='warning'>The door bolts are down!</span>"))
else if(!density)
close()
else
@@ -887,7 +887,7 @@
. = ..()
if ( get_dist(src, user) > 0 )
if ( !(issilicon(user) || IsAdminGhost(user)) )
to_chat(user, "<span class='notice'>You are too far away.</span>")
to_chat(user, "<span class='warning'>You are too far away!</span>")
user.unset_machine()
user << browse(null, "window=turretid")
return
@@ -36,7 +36,7 @@
if(get_dist(T,src) > field_distance_limit)
return
if(LAZYLEN(current_fields) >= max_fields)
to_chat(user, "<span class='notice'>[src] cannot sustain any more forcefields!</span>")
to_chat(user, "<span class='warning'>[src] cannot sustain any more forcefields!</span>")
return
playsound(src,'sound/weapons/resonator_fire.ogg',50,1)
@@ -23,7 +23,7 @@
/obj/item/radio/intercom/ratvar/attackby(obj/item/I, mob/living/user, params)
if(I.tool_behaviour == TOOL_SCREWDRIVER)
to_chat(user, "<span class='danger'>[src] is fastened to the wall with [is_servant_of_ratvar(user) ? "replicant alloy" : "some material you've never seen"], and can't be removed.</span>")
to_chat(user, "<span class='warning'>[src] is fastened to the wall with [is_servant_of_ratvar(user) ? "replicant alloy" : "some material you've never seen"], and can't be removed.</span>")
return //no unfastening!
. = ..()
+1 -1
View File
@@ -29,7 +29,7 @@
/obj/item/stack/grind_requirements()
if(is_cyborg)
to_chat(usr, "<span class='danger'>[src] is electronically synthesized in your chassis and can't be ground up!</span>")
to_chat(usr, "<span class='warning'>[src] is electronically synthesized in your chassis and can't be ground up!</span>")
return
return TRUE
+1 -1
View File
@@ -667,7 +667,7 @@
user.put_in_hands(I)
update_icon()
else
to_chat(user, "[src] is empty.")
to_chat(user, "<span class='warning'>[src] is empty!</span>")
/obj/item/storage/belt/sabre/update_icon()
icon_state = "sheath"
+9 -9
View File
@@ -267,33 +267,33 @@
is_locked = !is_locked
to_chat(user, "You [!is_locked ? "un" : ""]lock the case.")
else
to_chat(user, "<span class='danger'>The lock is stuck shut!</span>")
to_chat(user, "<span class='warning'>The lock is stuck shut!</span>")
return
if(is_locked)
to_chat(user, "<span class='danger'>The case is shut tight with an old fashioned physical lock. Maybe you should ask the curator for the key?</span>")
to_chat(user, "<span class='warning'>The case is shut tight with an old fashioned physical lock. Maybe you should ask the curator for the key?</span>")
return
if(!added_roundstart)
to_chat(user, "You've already put something new in this case.")
to_chat(user, "<span class='warning'>You've already put something new in this case!</span>")
return
if(is_type_in_typecache(W, GLOB.blacklisted_cargo_types))
to_chat(user, "<span class='danger'>The case rejects the [W].</span>")
to_chat(user, "<span class='warning'>The case rejects the [W]!</span>")
return
for(var/a in W.GetAllContents())
if(is_type_in_typecache(a, GLOB.blacklisted_cargo_types))
to_chat(user, "<span class='danger'>The case rejects the [W].</span>")
to_chat(user, "<span class='warning'>The case rejects the [W]!</span>")
return
if(user.transferItemToLoc(W, src))
if(showpiece)
to_chat(user, "You press a button, and [showpiece] descends into the floor of the case.")
to_chat(user, "<span class='notice'>You press a button, and [showpiece] descends into the floor of the case.</span>")
QDEL_NULL(showpiece)
to_chat(user, "You insert [W] into the case.")
to_chat(user, "<span class='notice'>You insert [W] into the case.</span>")
showpiece = W
added_roundstart = FALSE
update_icon()
@@ -306,9 +306,9 @@
if(chosen_plaque)
if(user.Adjacent(src))
trophy_message = chosen_plaque
to_chat(user, "You set the plaque's text.")
to_chat(user, "<span class='notice'>You set the plaque's text.</span>")
else
to_chat(user, "You are too far to set the plaque's text.")
to_chat(user, "<span class='warning'>You are too far to set the plaque's text!</span>")
SSpersistence.SaveTrophy(src)
return TRUE
+1 -1
View File
@@ -60,7 +60,7 @@
/obj/structure/fence/attackby(obj/item/W, mob/user)
if(W.tool_behaviour == TOOL_WIRECUTTER)
if(!cuttable)
to_chat(user, "<span class='notice'>This section of the fence can't be cut.</span>")
to_chat(user, "<span class='warning'>This section of the fence can't be cut!</span>")
return
if(invulnerable)
to_chat(user, "<span class='notice'>This fence is too strong to cut through.</span>")
@@ -170,23 +170,23 @@
return
if(absorbedcount < thepower.req_dna)
to_chat(owner.current, "We lack the energy to evolve this ability!")
to_chat(owner.current, "<span class='warning'>We lack the energy to evolve this ability!</span>")
return
if(has_sting(thepower))
to_chat(owner.current, "We have already evolved this ability!")
to_chat(owner.current, "<span class='warning'>We have already evolved this ability!</span>")
return
if(thepower.dna_cost < 0)
to_chat(owner.current, "We cannot evolve this ability.")
to_chat(owner.current, "<span class='warning'>We cannot evolve this ability!</span>")
return
if(geneticpoints < thepower.dna_cost)
to_chat(owner.current, "We have reached our capacity for abilities.")
to_chat(owner.current, "<span class='warning'>We have reached our capacity for abilities!</span>")
return
if(HAS_TRAIT(owner.current, TRAIT_DEATHCOMA))//To avoid potential exploits by buying new powers while in stasis, which clears your verblist.
to_chat(owner.current, "We lack the energy to evolve new abilities right now.")
to_chat(owner.current, "<span class='warning'>We lack the energy to evolve new abilities right now!</span>")
return
geneticpoints -= thepower.dna_cost
@@ -195,7 +195,7 @@
/datum/antagonist/changeling/proc/readapt()
if(!ishuman(owner.current))
to_chat(owner.current, "<span class='danger'>We can't remove our evolutions in this form!</span>")
to_chat(owner.current, "<span class='warning'>We can't remove our evolutions in this form!</span>")
return
if(canrespec)
to_chat(owner.current, "<span class='notice'>We have removed our evolutions from this form, and are now ready to readapt.</span>")
@@ -204,7 +204,7 @@
SSblackbox.record_feedback("tally", "changeling_power_purchase", 1, "Readapt")
return 1
else
to_chat(owner.current, "<span class='danger'>You lack the power to readapt your evolutions!</span>")
to_chat(owner.current, "<span class='warning'>You lack the power to readapt your evolutions!</span>")
return 0
//Called in life()
@@ -21,7 +21,7 @@
var/list/target_contents = M.GetAllContents() + M
for(var/mob/living/L in target_contents)
if(is_servant_of_ratvar(L) && get_dir(M, src) != dir && L.stat != DEAD) //Unless we're on the side the arrow is pointing directly away from, no-go
to_chat(L, "<span class='danger'>The space beyond here can't be accessed by you or other servants.</span>")
to_chat(L, "<span class='warning'>The space beyond here can't be accessed by you or other servants!</span>")
return
if(isitem(M))
var/obj/item/I = M
+1 -1
View File
@@ -594,7 +594,7 @@
playsound(destination, "sparks", 50, 1)
else
to_chat(C, "<span class='danger'>The veil cannot be torn here!</span>")
to_chat(C, "<span class='warning'>The veil cannot be torn here!</span>")
/obj/item/flashlight/flare/culttorch
name = "void torch"
@@ -34,7 +34,7 @@
for(var/obj/effect/proc_holder/spell/aspell in user.mind.spell_list)
if(initial(S.name) == initial(aspell.name)) // Not using directly in case it was learned from one spellbook then upgraded in another
if(aspell.spell_level >= aspell.level_max)
to_chat(user, "<span class='warning'>This spell cannot be improved further.</span>")
to_chat(user, "<span class='warning'>This spell cannot be improved further!</span>")
return FALSE
else
aspell.name = initial(aspell.name)
@@ -56,7 +56,7 @@
to_chat(user, "<span class='notice'>You have further improved [aspell.name] into Instant [aspell.name].</span>")
aspell.name = "Instant [aspell.name]"
if(aspell.spell_level >= aspell.level_max)
to_chat(user, "<span class='notice'>This spell cannot be strengthened any further.</span>")
to_chat(user, "<span class='warning'>This spell cannot be strengthened any further!</span>")
SSblackbox.record_feedback("nested tally", "wizard_spell_improved", 1, list("[name]", "[aspell.spell_level]"))
return TRUE
//No same spell found - just learn it
@@ -78,7 +78,7 @@
/datum/spellbook_entry/proc/Refund(mob/living/carbon/human/user,obj/item/spellbook/book) //return point value or -1 for failure
var/area/wizard_station/A = GLOB.areas_by_type[/area/wizard_station]
if(!(user in A.contents))
to_chat(user, "<span class='warning'>You can only refund spells at the wizard lair</span>")
to_chat(user, "<span class='warning'>You can only refund spells at the wizard lair!</span>")
return -1
if(!S)
S = new spell_type()
+1 -1
View File
@@ -35,7 +35,7 @@
if(sheet_amount)
to_chat(user, "<span class='notice'>You retrieve [sheet_amount] sheets of bananium from the prototype shoes.</span>")
else
to_chat(user, "<span class='notice'>You cannot retrieve any bananium from the prototype shoes.</span>")
to_chat(user, "<span class='warning'>You cannot retrieve any bananium from the prototype shoes!</span>")
/obj/item/clothing/shoes/clown_shoes/banana_shoes/examine(mob/user)
. = ..()
@@ -71,13 +71,13 @@
return
if(!anchored)
to_chat(user, "<span class='notice'>[src] cannot be used unless bolted to the ground.</span>")
to_chat(user, "<span class='warning'>[src] cannot be used unless bolted to the ground!</span>")
return
if(user.pulling && user.a_intent == INTENT_GRAB && isliving(user.pulling))
var/mob/living/L = user.pulling
if(!iscarbon(L))
to_chat(user, "<span class='danger'>This item is not suitable for the gibber!</span>")
to_chat(user, "<span class='warning'>This item is not suitable for the gibber!</span>")
return
var/mob/living/carbon/C = L
if(C.buckled ||C.has_buckled_mobs())
@@ -87,7 +87,7 @@
if(!ignore_clothing)
for(var/obj/item/I in C.held_items + C.get_equipped_items())
if(!HAS_TRAIT(I, TRAIT_NODROP))
to_chat(user, "<span class='danger'>Subject may not have abiotic items on.</span>")
to_chat(user, "<span class='warning'>Subject may not have abiotic items on!</span>")
return
user.visible_message("<span class='danger'>[user] starts to put [C] into the gibber!</span>")
@@ -139,10 +139,10 @@
if(src.operating)
return
if(!src.occupant)
visible_message("<span class='italics'>You hear a loud metallic grinding sound.</span>")
audible_message("<span class='italics'>You hear a loud metallic grinding sound.</span>")
return
use_power(1000)
visible_message("<span class='italics'>You hear a loud squelchy grinding sound.</span>")
audible_message("<span class='italics'>You hear a loud squelchy grinding sound.</span>")
playsound(src.loc, 'sound/machines/juicer.ogg', 50, 1)
operating = TRUE
update_icon()
+1 -1
View File
@@ -689,7 +689,7 @@
return
if(!reagent_source.reagents.total_volume)
to_chat(user, "<span class='notice'>[reagent_source] is empty.</span>")
to_chat(user, "<span class='warning'>[reagent_source] is empty!</span>")
return 1
var/list/trays = list(src)//makes the list just this in cases of syringes and compost etc
+3 -3
View File
@@ -41,12 +41,12 @@ GLOBAL_LIST_EMPTY(total_extraction_beacons)
/obj/item/extraction_pack/afterattack(atom/movable/A, mob/living/carbon/human/user, flag, params)
. = ..()
if(!beacon)
to_chat(user, "[src] is not linked to a beacon, and cannot be used.")
to_chat(user, "<span class='warning'>[src] is not linked to a beacon, and cannot be used!</span>")
return
if(!can_use_indoors)
var/area/area = get_area(A)
if(!area.outdoors)
to_chat(user, "[src] can only be used on things that are outdoors!")
to_chat(user, "<span class='warning'>[src] can only be used on things that are outdoors!</span>")
return
if(!flag)
return
@@ -54,7 +54,7 @@ GLOBAL_LIST_EMPTY(total_extraction_beacons)
return
else
if(!safe_for_living_creatures && check_for_living_mobs(A))
to_chat(user, "[src] is not safe for use with living creatures, they wouldn't survive the trip back!")
to_chat(user, "<span class='warning'>[src] is not safe for use with living creatures, they wouldn't survive the trip back!</span>")
return
if(!isturf(A.loc)) // no extracting stuff inside other stuff
return
@@ -786,9 +786,9 @@
/obj/item/melee/ghost_sword/attack_self(mob/user)
if(summon_cooldown > world.time)
to_chat(user, "You just recently called out for aid. You don't want to annoy the spirits.")
to_chat(user, "<span class='warning'>You just recently called out for aid. You don't want to annoy the spirits!</span>")
return
to_chat(user, "You call out for aid, attempting to summon spirits to your side.")
to_chat(user, "<span class='notice'>You call out for aid, attempting to summon spirits to your side.</span>")
notify_ghosts("[user] is raising [user.p_their()] [src], calling for your help!",
enter_link="<a href=?src=[REF(src)];orbit=1>(Click to help)</a>",
+1 -1
View File
@@ -34,7 +34,7 @@
if(.)
return
if(obj_flags & IN_USE)
to_chat(user, "It's already in use - wait a bit.")
to_chat(user, "<span class='warning'>It's already in use - wait a bit!</span>")
return
else
obj_flags |= IN_USE
+4 -4
View File
@@ -88,7 +88,7 @@
/mob/living/simple_animal/hostile/mining_drone/welder_act(mob/living/user, obj/item/I)
. = TRUE
if(mode == MINEDRONE_ATTACK)
to_chat(user, "<span class='info'>[src] can't be repaired while in attack mode!</span>")
to_chat(user, "<span class='warning'>[src] can't be repaired while in attack mode!</span>")
return
if(maxHealth == health)
@@ -184,7 +184,7 @@
/mob/living/simple_animal/hostile/mining_drone/proc/DropOre(message = 1)
if(!contents.len)
if(message)
to_chat(src, "<span class='notice'>You attempt to dump your stored ore, but you have none.</span>")
to_chat(src, "<span class='warning'>You attempt to dump your stored ore, but you have none!</span>")
return
if(message)
to_chat(src, "<span class='notice'>You dump your stored ore.</span>")
@@ -277,7 +277,7 @@
/obj/item/mine_bot_upgrade/proc/upgrade_bot(mob/living/simple_animal/hostile/mining_drone/M, mob/user)
if(M.melee_damage_upper != initial(M.melee_damage_upper))
to_chat(user, "[src] already has a combat upgrade installed!")
to_chat(user, "<span class='warning'>[src] already has a combat upgrade installed!</span>")
return
M.melee_damage_lower += 7
M.melee_damage_upper += 7
@@ -290,7 +290,7 @@
/obj/item/mine_bot_upgrade/health/upgrade_bot(mob/living/simple_animal/hostile/mining_drone/M, mob/user)
if(M.maxHealth != initial(M.maxHealth))
to_chat(user, "[src] already has reinforced armor!")
to_chat(user, "<span class='warning'>[src] already has reinforced armor!</span>")
return
M.maxHealth += 45
M.updatehealth()
+3 -3
View File
@@ -388,7 +388,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
set name = "Teleport"
set desc= "Teleport to a location"
if(!isobserver(usr))
to_chat(usr, "Not when you're not dead!")
to_chat(usr, "<span class='warning'>Not when you're not dead!</span>")
return
var/list/filtered = list()
for(var/V in GLOB.sortedAreas)
@@ -405,7 +405,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
L+=T
if(!L || !L.len)
to_chat(usr, "No area available.")
to_chat(usr, "<span class='warning'>No area available.</span>")
return
usr.forceMove(pick(L))
@@ -829,7 +829,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
if(isobserver(src))
SSpai.recruitWindow(src)
else
to_chat(usr, "Can't become a pAI candidate while not dead!")
to_chat(usr, "<span class='warning'>Can't become a pAI candidate while not dead!</span>")
/mob/dead/observer/CtrlShiftClick(mob/user)
if(isobserver(user) && check_rights(R_SPAWN))
+3 -3
View File
@@ -299,7 +299,7 @@
var/mob/living/carbon/C = L
if(HAS_TRAIT(src, TRAIT_STRONG_GRABBER))
C.grippedby(src)
update_pull_movespeed()
set_pull_offsets(M, state)
@@ -436,7 +436,7 @@
set category = "IC"
if(IsSleeping())
to_chat(src, "<span class='notice'>You are already sleeping.</span>")
to_chat(src, "<span class='warning'>You are already sleeping!</span>")
return
else
if(alert(src, "You sure you want to sleep for a while?", "Sleep", "Yes", "No") == "Yes")
@@ -455,7 +455,7 @@
if(do_after(src, 10, target = src))
set_resting(FALSE, FALSE)
else
to_chat(src, "<span class='notice'>You fail to get up.</span>")
to_chat(src, "<span class='warning'>You fail to get up!</span>")
/mob/living/proc/set_resting(rest, silent = TRUE)
if(!silent)
@@ -748,7 +748,7 @@
if(!held_item)
if(src == usr) //So that other mobs wont make this message appear when they're bludgeoning you.
to_chat(src, "<span class='danger'>You have nothing to drop!</span>")
to_chat(src, "<span class='warning'>You have nothing to drop!</span>")
return 0
@@ -767,11 +767,11 @@
var/obj/item/grenade/G = held_item
G.forceMove(drop_location())
G.prime()
to_chat(src, "You let go of [held_item]!")
to_chat(src, "<span class='danger'>You let go of [held_item]!</span>")
held_item = null
return 1
to_chat(src, "You drop [held_item].")
to_chat(src, "<span class='notice'>You drop [held_item].</span>")
held_item.forceMove(drop_location())
held_item = null
@@ -611,7 +611,7 @@ GLOBAL_DATUM(main_supermatter_engine, /obj/machinery/power/supermatter_crystal)
if (!scalpel.usesLeft)
to_chat(user, "<span class='notice'>A tiny piece of \the [W] falls off, rendering it useless!</span>")
else
to_chat(user, "<span class='notice'>You fail to extract a sliver from \The [src]. \the [W] isn't sharp enough anymore!</span>")
to_chat(user, "<span class='warning'>You fail to extract a sliver from \The [src]! \the [W] isn't sharp enough anymore.</span>")
else if(user.dropItemToGround(W))
user.visible_message("<span class='danger'>As [user] touches \the [src] with \a [W], silence fills the room...</span>",\
"<span class='userdanger'>You touch \the [src] with \the [W], and everything suddenly goes silent.</span>\n<span class='notice'>\The [W] flashes into dust as you flinch away from \the [src].</span>",\
@@ -26,7 +26,7 @@
to_chat(user, "<span class='notice'>You put the grenade in the grenade launcher.</span>")
to_chat(user, "<span class='notice'>[grenades.len] / [max_grenades] Grenades.</span>")
else
to_chat(usr, "<span class='danger'>The grenade launcher cannot hold more grenades.</span>")
to_chat(usr, "<span class='warning'>The grenade launcher cannot hold more grenades!</span>")
/obj/item/gun/grenadelauncher/can_shoot()
return grenades.len
@@ -299,7 +299,7 @@
else
var/chemid = reagent[1]
visible_message("<span class='warning'>[src] buzzes.</span>", "<span class='italics'>You hear a faint buzz.</span>")
to_chat(usr, "<span class='danger'>[src] cannot find Chemical ID: <b>[chemid]</b>!</span>")
to_chat(usr, "<span class='error'>[src] cannot find Chemical ID: <b>[chemid]</b>!</span>")
playsound(src, 'sound/machines/buzz-two.ogg', 50, 1)
return
if (resmismatch && alert("[src] is not yet capable of replicating this recipe with the precision it needs, do you want to save it anyway?",, "Yes","No") == "No")
@@ -98,7 +98,7 @@ Borg Hypospray
/obj/item/reagent_containers/borghypo/attack(mob/living/carbon/M, mob/user)
var/datum/reagents/R = reagent_list[mode]
if(!R.total_volume)
to_chat(user, "<span class='notice'>The injector is empty.</span>")
to_chat(user, "<span class='warning'>The injector is empty!</span>")
return
if(!istype(M))
return
@@ -114,7 +114,7 @@
log_combat(user, target, "attempted to inject", src, addition="which had [contained]")
if(!reagents.total_volume)
to_chat(user, "<span class='notice'>[src] is empty.</span>")
to_chat(user, "<span class='warning'>[src] is empty!</span>")
return
if(!L && !target.is_injectable(user)) //only checks on non-living mobs, due to how can_inject() handles
+5 -5
View File
@@ -117,22 +117,22 @@ Nothing else in the console has ID requirements.
if(istype(D, /obj/item/disk))
if(istype(D, /obj/item/disk/tech_disk))
if(t_disk)
to_chat(user, "<span class='danger'>A technology disk is already loaded!</span>")
to_chat(user, "<span class='warning'>A technology disk is already loaded!</span>")
return
if(!user.transferItemToLoc(D, src))
to_chat(user, "<span class='danger'>[D] is stuck to your hand!</span>")
to_chat(user, "<span class='warning'>[D] is stuck to your hand!</span>")
return
t_disk = D
else if (istype(D, /obj/item/disk/design_disk))
if(d_disk)
to_chat(user, "<span class='danger'>A design disk is already loaded!</span>")
to_chat(user, "<span class='warning'>A design disk is already loaded!</span>")
return
if(!user.transferItemToLoc(D, src))
to_chat(user, "<span class='danger'>[D] is stuck to your hand!</span>")
to_chat(user, "<span class='warning'>[D] is stuck to your hand!</span>")
return
d_disk = D
else
to_chat(user, "<span class='danger'>Machine cannot accept disks in that format.</span>")
to_chat(user, "<span class='warning'>Machine cannot accept disks in that format.</span>")
return
to_chat(user, "<span class='notice'>You insert [D] into \the [src]!</span>")
else if(!(linked_destroy && linked_destroy.busy) && !(linked_lathe && linked_lathe.busy) && !(linked_imprinter && linked_imprinter.busy))
@@ -105,20 +105,20 @@
potion_action.target = src
potion_action.Grant(user)
actions += potion_action
if(hotkey_help)
hotkey_help.target = src
hotkey_help.Grant(user)
actions += hotkey_help
RegisterSignal(user, COMSIG_XENO_SLIME_CLICK_CTRL, .proc/XenoSlimeClickCtrl)
RegisterSignal(user, COMSIG_XENO_SLIME_CLICK_ALT, .proc/XenoSlimeClickAlt)
RegisterSignal(user, COMSIG_XENO_SLIME_CLICK_SHIFT, .proc/XenoSlimeClickShift)
RegisterSignal(user, COMSIG_XENO_TURF_CLICK_SHIFT, .proc/XenoTurfClickShift)
RegisterSignal(user, COMSIG_XENO_TURF_CLICK_CTRL, .proc/XenoTurfClickCtrl)
RegisterSignal(user, COMSIG_XENO_SLIME_CLICK_CTRL, .proc/XenoSlimeClickCtrl)
RegisterSignal(user, COMSIG_XENO_SLIME_CLICK_ALT, .proc/XenoSlimeClickAlt)
RegisterSignal(user, COMSIG_XENO_SLIME_CLICK_SHIFT, .proc/XenoSlimeClickShift)
RegisterSignal(user, COMSIG_XENO_TURF_CLICK_SHIFT, .proc/XenoTurfClickShift)
RegisterSignal(user, COMSIG_XENO_TURF_CLICK_CTRL, .proc/XenoTurfClickCtrl)
RegisterSignal(user, COMSIG_XENO_MONKEY_CLICK_CTRL, .proc/XenoMonkeyClickCtrl)
//Checks for recycler on every interact, prevents issues with load order on certain maps.
//Checks for recycler on every interact, prevents issues with load order on certain maps.
if(!connected_recycler)
for(var/obj/machinery/monkey_recycler/recycler in GLOB.monkey_recyclers)
if(get_area(recycler.loc) == get_area(loc))
@@ -126,13 +126,13 @@
connected_recycler.connected += src
/obj/machinery/computer/camera_advanced/xenobio/remove_eye_control(mob/living/user)
UnregisterSignal(user, COMSIG_XENO_SLIME_CLICK_CTRL)
UnregisterSignal(user, COMSIG_XENO_SLIME_CLICK_ALT)
UnregisterSignal(user, COMSIG_XENO_SLIME_CLICK_SHIFT)
UnregisterSignal(user, COMSIG_XENO_TURF_CLICK_SHIFT)
UnregisterSignal(user, COMSIG_XENO_TURF_CLICK_CTRL)
UnregisterSignal(user, COMSIG_XENO_MONKEY_CLICK_CTRL)
..()
UnregisterSignal(user, COMSIG_XENO_SLIME_CLICK_CTRL)
UnregisterSignal(user, COMSIG_XENO_SLIME_CLICK_ALT)
UnregisterSignal(user, COMSIG_XENO_SLIME_CLICK_SHIFT)
UnregisterSignal(user, COMSIG_XENO_TURF_CLICK_SHIFT)
UnregisterSignal(user, COMSIG_XENO_TURF_CLICK_CTRL)
UnregisterSignal(user, COMSIG_XENO_MONKEY_CLICK_CTRL)
..()
/obj/machinery/computer/camera_advanced/xenobio/proc/on_contents_del(datum/source, atom/deleted)
if(current_potion == deleted)
@@ -244,8 +244,8 @@
to_chat(owner, "[X] now has [X.monkeys] monkeys stored.")
else
to_chat(owner, "[X] needs to have at least 1 monkey stored. Currently has [X.monkeys] monkeys stored.")
else
to_chat(owner, "<span class='notice'>Target is not near a camera. Cannot proceed.</span>")
else
to_chat(owner, "<span class='warning'>Target is not near a camera. Cannot proceed.</span>")
/datum/action/innate/monkey_recycle
@@ -270,7 +270,7 @@
M.visible_message("[M] vanishes as [M.p_theyre()] reclaimed for recycling!")
recycler.use_power(500)
X.monkeys += recycler.cube_production
X.monkeys = round(X.monkeys, 0.1) //Prevents rounding errors
X.monkeys = round(X.monkeys, 0.1) //Prevents rounding errors
qdel(M)
to_chat(owner, "[X] now has [X.monkeys] monkeys available.")
else
@@ -465,6 +465,6 @@
M.visible_message("[M] vanishes as [p_theyre()] reclaimed for recycling!")
X.connected_recycler.use_power(500)
X.monkeys += connected_recycler.cube_production
X.monkeys = round(X.monkeys, 0.1) //Prevents rounding errors
X.monkeys = round(X.monkeys, 0.1) //Prevents rounding errors
qdel(M)
to_chat(C, "[X] now has [X.monkeys] monkeys available.")
@@ -46,7 +46,7 @@
//Effect when activated by a Luminescent. Separated into a minor and major effect. Returns cooldown in deciseconds.
/obj/item/slime_extract/proc/activate(mob/living/carbon/human/user, datum/species/jelly/luminescent/species, activation_type)
to_chat(user, "<span class='notice'>Nothing happened... This slime extract cannot be activated this way.</span>")
to_chat(user, "<span class='warning'>Nothing happened... This slime extract cannot be activated this way.</span>")
return 0
//Core-crossing: Feeding adult slimes extracts to obtain a much more powerful, single extract.
+3 -3
View File
@@ -18,18 +18,18 @@
/obj/effect/proc_holder/spell/targeted/barnyardcurse/cast(list/targets, mob/user = usr)
if(!targets.len)
to_chat(user, "<span class='notice'>No target found in range.</span>")
to_chat(user, "<span class='warning'>No target found in range!</span>")
return
var/mob/living/carbon/target = targets[1]
if(!is_type_in_typecache(target, compatible_mobs_typecache))
to_chat(user, "<span class='notice'>You are unable to curse [target]'s head!</span>")
to_chat(user, "<span class='warning'>You are unable to curse [target]'s head!</span>")
return
if(!(target in oview(range)))
to_chat(user, "<span class='notice'>[target.p_theyre(TRUE)] too far away!</span>")
to_chat(user, "<span class='warning'>[target.p_theyre(TRUE)] too far away!</span>")
return
if(target.anti_magic_check())
@@ -102,7 +102,7 @@
/obj/effect/proc_holder/spell/aoe_turf/conjure/soulstone/noncult/purified
summon_type = list(/obj/item/soulstone/anybody/purified)
/obj/effect/proc_holder/spell/targeted/forcewall/cult
name = "Shield"
desc = "This spell creates a temporary forcefield to shield yourself and allies from incoming fire."
@@ -197,14 +197,14 @@
/obj/effect/proc_holder/spell/targeted/abyssal_gaze/cast(list/targets, mob/user = usr)
if(!LAZYLEN(targets))
to_chat(user, "<span class='notice'>No target found in range.</span>")
to_chat(user, "<span class='warning'>No target found in range!</span>")
revert_cast()
return
var/mob/living/carbon/target = targets[1]
if(!(target in oview(range)))
to_chat(user, "<span class='notice'>[target] is too far away!</span>")
to_chat(user, "<span class='warning'>[target] is too far away!</span>")
revert_cast()
return
@@ -266,7 +266,7 @@
return
if(!(S in oview(range)))
to_chat(user, "<span class='notice'>[S] is too far away!</span>")
to_chat(user, "<span class='warning'>[S] is too far away!</span>")
revert_cast()
return
+3 -3
View File
@@ -311,7 +311,7 @@
if(!carbon_members.len)
return
if(!user.getBruteLoss() && !user.getFireLoss() && !user.getCloneLoss() && !user.getBrainLoss() && !user.getStaminaLoss())
to_chat(user, "<span class='notice'>We cannot heal ourselves any more with this power!</span>")
to_chat(user, "<span class='warning'>We cannot heal ourselves any more with this power!</span>")
revert_cast()
to_chat(user, "<span class='notice'>We begin siphoning power from our many vessels!</span>")
while(iterations < 7)
@@ -421,11 +421,11 @@
timely = 100
restricted_range = TRUE
if(!do_after(user, timely, FALSE, user))
to_chat(user, "<span class='notice'>We fail to assume control of the target.</span>")
to_chat(user, "<span class='warning'>We fail to assume control of the target!</span>")
revert_cast()
return
if(user.z != vessel.z || (restricted_range && get_dist(vessel, user) > 35))
to_chat(user, "<span class='notice'>Our vessel is too far away to control.</span>")
to_chat(user, "<span class='warning'>Our vessel is too far away to control!</span>")
revert_cast()
return
for(var/datum/antagonist/hivemind/H in GLOB.antagonists)
+1 -1
View File
@@ -52,7 +52,7 @@
Snd=sound(null, repeat = 0, wait = 1, channel = Snd.channel) //byond, why you suck?
playsound(get_turf(user),Snd,50,0)// Sorry MrPerson, but the other ways just didn't do it the way i needed to work, this is the only way.
if(get_dist(user,target)>range)
to_chat(user, "<span class='notice'>[target.p_theyre(TRUE)] too far away!</span>")
to_chat(user, "<span class='warning'>[target.p_theyre(TRUE)] too far away!</span>")
Reset(user)
return
@@ -24,11 +24,11 @@
/datum/surgery_step/add_prosthetic/preop(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery)
if(istype(tool, /obj/item/organ_storage))
if(!tool.contents.len)
to_chat(user, "<span class='notice'>There is nothing inside [tool]!</span>")
to_chat(user, "<span class='warning'>There is nothing inside [tool]!</span>")
return -1
var/obj/item/I = tool.contents[1]
if(!isbodypart(I))
to_chat(user, "<span class='notice'>[I] cannot be attached!</span>")
to_chat(user, "<span class='warning'>[I] cannot be attached!</span>")
return -1
tool = I
if(istype(tool, /obj/item/bodypart))
@@ -94,4 +94,3 @@
var/obj/item/melee/arm_blade/new_arm = new(target,TRUE,TRUE)
target_zone == BODY_ZONE_R_ARM ? target.put_in_r_hand(new_arm) : target.put_in_l_hand(new_arm)
return 1