Fail-messages from notice-spans to warning-span.

This commit is contained in:
kingofkosmos
2019-10-12 21:24:52 +03:00
parent 280d416d4f
commit dba1d2eb2d
13 changed files with 31 additions and 31 deletions

View File

@@ -542,7 +542,7 @@
return
//Box closing from here on out.
if(!isturf(owner.loc)) //Don't let the player use this to escape mechs/welded closets.
to_chat(owner, "<span class = 'notice'>You need more space to activate this implant.</span>")
to_chat(owner, "<span class='warning'>You need more space to activate this implant!</span>")
return
if(cooldown < world.time - 100)
var/box = new boxtype(owner.drop_location())

View File

@@ -35,10 +35,10 @@
//because you're expecting user input.
/obj/item/airlock_painter/proc/can_use(mob/user)
if(!ink)
to_chat(user, "<span class='notice'>There is no toner cartridge installed in [src]!</span>")
to_chat(user, "<span class='warning'>There is no toner cartridge installed in [src]!</span>")
return 0
else if(ink.charges < 1)
to_chat(user, "<span class='notice'>[src] is out of ink!</span>")
to_chat(user, "<span class='warning'>[src] is out of ink!</span>")
return 0
else
return 1

View File

@@ -97,7 +97,7 @@
head = null
to_chat(user, "<span class='notice'>You disassemble the cyborg shell.</span>")
else
to_chat(user, "<span class='notice'>There is nothing to remove from the endoskeleton.</span>")
to_chat(user, "<span class='warning'>There is nothing to remove from the endoskeleton!</span>")
update_icon()
/obj/item/robot_suit/proc/put_in_hand_or_drop(mob/living/user, obj/item/I) //normal put_in_hands() drops the item ontop of the player, this drops it at the suit's loc
@@ -112,7 +112,7 @@
return TRUE
if(!chest) //can't remove a cell if there's no chest to remove it from.
to_chat(user, "<span class='notice'>[src] has no attached torso.</span>")
to_chat(user, "<span class='warning'>[src] has no attached torso!</span>")
return
var/obj/item/stock_parts/cell/temp_cell = user.is_holding_item_of_type(/obj/item/stock_parts/cell)
@@ -131,7 +131,7 @@
to_chat(user, "<span class='notice'>You remove [chest.cell] from [src].</span>")
chest.cell = null
else
to_chat(user, "<span class='notice'>The power cell slot in [src]'s torso is empty.</span>")
to_chat(user, "<span class='warning'>The power cell slot in [src]'s torso is empty!</span>")
return
to_chat(user, "<span class='notice'>You [chest.cell ? "replace [src]'s [chest.cell.name] with [temp_cell]" : "insert [temp_cell] into [src]"].</span>")

View File

@@ -336,7 +336,7 @@ That prevents a few funky behaviors.
AI.battery = circuit.battery
qdel(src)
else //If for some reason you use an empty card on an empty AI terminal.
to_chat(user, "There is no AI loaded on this terminal!")
to_chat(user, "<span class='alert'>There is no AI loaded on this terminal.</span>")
/obj/item/circuitboard/aicore
name = "AI core (AI Core Board)" //Well, duh, but best to be consistent

View File

@@ -153,7 +153,7 @@
else if(exposed)
if(!hiddenitem)
to_chat(user, "<span class='notice'>There is nothing in the drain holder.</span>")
to_chat(user, "<span class='warning'>There is nothing in the drain holder!</span>")
else
if(ishuman(user))
user.put_in_hands(hiddenitem)
@@ -167,7 +167,7 @@
/obj/structure/urinal/attackby(obj/item/I, mob/living/user, params)
if(exposed)
if (hiddenitem)
to_chat(user, "<span class='warning'>There is already something in the drain enclosure.</span>")
to_chat(user, "<span class='warning'>There is already something in the drain enclosure!</span>")
return
if(I.w_class > 1)
to_chat(user, "<span class='warning'>[I] is too large for the drain enclosure.</span>")

View File

@@ -81,7 +81,7 @@
if (express_console)
unlink_console()
else
to_chat(user, "<span class='notice'>There is no linked console!</span>")
to_chat(user, "<span class='alert'>There is no linked console.</span>")
/obj/item/supplypod_beacon/attackby(obj/item/W, mob/user)
if(istype(W, /obj/item/pen)) //give a tag that is visible from the linked express console

View File

@@ -45,7 +45,7 @@
if(HAS_TRAIT(I, TRAIT_NODROP) || (I.item_flags & (ABSTRACT | DROPDEL)))
return ..()
else if(!grill_fuel)
to_chat(user, "<span class='notice'>There is not enough fuel.</span>")
to_chat(user, "<span class='warning'>There is not enough fuel!</span>")
return
else if(!grilled_item && user.transferItemToLoc(I, src))
grilled_item = I

View File

@@ -178,7 +178,7 @@
update_corgi_fluff()
regenerate_icons()
else
to_chat(usr, "<span class='danger'>There is nothing to remove from its [remove_from].</span>")
to_chat(usr, "<span class='warning'>There is nothing to remove from its [remove_from]!</span>")
return
if("back")
if(inventory_back)
@@ -187,7 +187,7 @@
update_corgi_fluff()
regenerate_icons()
else
to_chat(usr, "<span class='danger'>There is nothing to remove from its [remove_from].</span>")
to_chat(usr, "<span class='warning'>There is nothing to remove from its [remove_from]!</span>")
return
if("collar")
if(pcollar)
@@ -624,7 +624,7 @@
//Lisa already has a cute bow!
/mob/living/simple_animal/pet/dog/corgi/Lisa/Topic(href, href_list)
if(href_list["remove_inv"] || href_list["add_inv"])
to_chat(usr, "<span class='danger'>[src] already has a cute bow!</span>")
to_chat(usr, "<span class='warning'>[src] already has a cute bow!</span>")
return
..()

View File

@@ -91,7 +91,7 @@
if(spider_ask == "No" || !src || QDELETED(src))
return 1
if(key)
to_chat(user, "<span class='notice'>Someone else already took this spider.</span>")
to_chat(user, "<span class='warning'>Someone else already took this spider!</span>")
return 1
key = user.key
if(directive)

View File

@@ -242,9 +242,9 @@
food.LAssailant = C
X.monkeys--
X.monkeys = round(X.monkeys, 0.1) //Prevents rounding errors
to_chat(owner, "[X] now has [X.monkeys] monkeys stored.")
to_chat(owner, "<span class='notice'>[X] now has [X.monkeys] monkeys stored.</span>")
else
to_chat(owner, "[X] needs to have at least 1 monkey stored. Currently has [X.monkeys] monkeys stored.")
to_chat(owner, "<span class='warning'>[X] needs to have at least 1 monkey stored. Currently has [X.monkeys] monkeys stored.</span>")
else
to_chat(owner, "<span class='warning'>Target is not near a camera. Cannot proceed.</span>")
@@ -263,7 +263,7 @@
var/obj/machinery/monkey_recycler/recycler = X.connected_recycler
if(!recycler)
to_chat(owner, "<span class='notice'>There is no connected monkey recycler. Use a multitool to link one.</span>")
to_chat(owner, "<span class='warning'>There is no connected monkey recycler. Use a multitool to link one.</span>")
return
if(GLOB.cameranet.checkTurfVis(remote_eye.loc))
for(var/mob/living/carbon/monkey/M in remote_eye.loc)
@@ -273,7 +273,7 @@
X.monkeys += recycler.cube_production
X.monkeys = round(X.monkeys, 0.1) //Prevents rounding errors
qdel(M)
to_chat(owner, "[X] now has [X.monkeys] monkeys available.")
to_chat(owner, "<span class='notice'>[X] now has [X.monkeys] monkeys available.</span>")
else
to_chat(owner, "<span class='warning'>Target is not near a camera. Cannot proceed.</span>")
@@ -444,9 +444,9 @@
food.LAssailant = C
X.monkeys--
X.monkeys = round(X.monkeys, 0.1) //Prevents rounding errors
to_chat(C, "[X] now has [X.monkeys] monkeys stored.")
to_chat(C, "<span class='notice'>[X] now has [X.monkeys] monkeys stored.</span>")
else
to_chat(C, "[X] needs to have at least 1 monkey stored. Currently has [X.monkeys] monkeys stored.")
to_chat(C, "<span class='warning'>[X] needs to have at least 1 monkey stored. Currently has [X.monkeys] monkeys stored.</span>")
//Pick up monkey
/obj/machinery/computer/camera_advanced/xenobio/proc/XenoMonkeyClickCtrl(mob/living/user, mob/living/carbon/monkey/M)
@@ -458,7 +458,7 @@
var/obj/machinery/computer/camera_advanced/xenobio/X = E.origin
var/area/mobarea = get_area(M.loc)
if(!X.connected_recycler)
to_chat(C, "<span class='notice'>There is no connected monkey recycler. Use a multitool to link one.</span>")
to_chat(C, "<span class='warning'>There is no connected monkey recycler. Use a multitool to link one.</span>")
return
if(mobarea.name == E.allowed_area || mobarea.xenobiology_compatible)
if(!M.stat)
@@ -468,4 +468,4 @@
X.monkeys += connected_recycler.cube_production
X.monkeys = round(X.monkeys, 0.1) //Prevents rounding errors
qdel(M)
to_chat(C, "[X] now has [X.monkeys] monkeys available.")
to_chat(C, "<span class='notice'>[X] now has [X.monkeys] monkeys available.</span>")

View File

@@ -63,7 +63,7 @@
if(1)
to_chat(usr, "<span class='warning'>Invalid shuttle requested.</span>")
else
to_chat(usr, "<span class='notice'>Unable to comply.</span>")
to_chat(usr, "<span class='warning'>Unable to comply.</span>")
/obj/machinery/computer/shuttle/emag_act(mob/user)
if(obj_flags & EMAGGED)
@@ -74,4 +74,4 @@
/obj/machinery/computer/shuttle/connect_to_shuttle(obj/docking_port/mobile/port, obj/docking_port/stationary/dock, idnum, override=FALSE)
if(port && (shuttleId == initial(shuttleId) || override))
shuttleId = port.id
shuttleId = port.id

View File

@@ -24,10 +24,10 @@
/obj/item/autosurgeon/attack_self(mob/user)//when the object it used...
if(!uses)
to_chat(user, "<span class='warning'>[src] has already been used. The tools are dull and won't reactivate.</span>")
to_chat(user, "<span class='alert'>[src] has already been used. The tools are dull and won't reactivate.</span>")
return
else if(!storedorgan)
to_chat(user, "<span class='notice'>[src] currently has no implant stored.</span>")
to_chat(user, "<span class='alert'>[src] currently has no implant stored.</span>")
return
storedorgan.Insert(user)//insert stored organ into the user
user.visible_message("<span class='notice'>[user] presses a button on [src], and you hear a short mechanical noise.</span>", "<span class='notice'>You feel a sharp sting as [src] plunges into your body.</span>")
@@ -45,10 +45,10 @@
/obj/item/autosurgeon/attackby(obj/item/I, mob/user, params)
if(istype(I, organ_type))
if(storedorgan)
to_chat(user, "<span class='notice'>[src] already has an implant stored.</span>")
to_chat(user, "<span class='alert'>[src] already has an implant stored.</span>")
return
else if(!uses)
to_chat(user, "<span class='notice'>[src] has already been used up.</span>")
to_chat(user, "<span class='alert'>[src] has already been used up.</span>")
return
if(!user.transferItemToLoc(I, src))
return
@@ -61,7 +61,7 @@
if(..())
return TRUE
if(!storedorgan)
to_chat(user, "<span class='notice'>There's no implant in [src] for you to remove.</span>")
to_chat(user, "<span class='warning'>There's no implant in [src] for you to remove!</span>")
else
var/atom/drop_loc = user.drop_location()
for(var/J in src)

View File

@@ -79,7 +79,7 @@
/obj/vehicle/sealed/proc/remove_key(mob/user)
if(!inserted_key)
to_chat(user, "<span class='notice'>There is no key in [src]!</span>")
to_chat(user, "<span class='warning'>There is no key in [src]!</span>")
return
if(!is_occupant(user) || !(occupants[user] & VEHICLE_CONTROL_DRIVE))
to_chat(user, "<span class='warning'>You must be driving [src] to remove [src]'s key!</span>")