mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-14 08:35:39 +01:00
refactors most spans
This commit is contained in:
@@ -27,17 +27,17 @@
|
||||
var/mob/living/carbon/human/H = M
|
||||
var/obj/item/organ/external/affecting = H.get_organ(check_zone(L.zone_sel.selecting))
|
||||
if(!affecting)
|
||||
to_chat(user, "<span class='warning'>The limb is missing!</span>")
|
||||
to_chat(user, span_warning("The limb is missing!"))
|
||||
return
|
||||
if(affecting.status >= ORGAN_ROBOT)
|
||||
to_chat(user, "<span class='notice'>\The [src] won't work on a robotic limb!</span>")
|
||||
to_chat(user, span_notice("\The [src] won't work on a robotic limb!"))
|
||||
return
|
||||
|
||||
if(!H.can_inject(user, FALSE, L.zone_sel.selecting, pierce_material))
|
||||
to_chat(user, "<span class='notice'>\The [src] can't be applied through such a thick material!</span>")
|
||||
to_chat(user, span_notice("\The [src] can't be applied through such a thick material!"))
|
||||
return
|
||||
|
||||
to_chat(H, "<span class='notice'>\The [src] is placed on your [affecting].</span>")
|
||||
to_chat(H, span_notice("\The [src] is placed on your [affecting]."))
|
||||
M.drop_from_inventory(src) //icon update
|
||||
if(reagents.total_volume)
|
||||
reagents.trans_to_mob(M, reagents.total_volume, CHEM_BLOOD) //CHEM_TOUCH
|
||||
@@ -48,29 +48,29 @@
|
||||
var/mob/living/carbon/human/H = M
|
||||
var/obj/item/organ/external/affecting = H.get_organ(check_zone(L.zone_sel.selecting))
|
||||
if(!affecting)
|
||||
to_chat(user, "<span class='warning'>The limb is missing!</span>")
|
||||
to_chat(user, span_warning("The limb is missing!"))
|
||||
return
|
||||
if(affecting.status >= ORGAN_ROBOT)
|
||||
to_chat(user, "<span class='notice'>\The [src] won't work on a robotic limb!</span>")
|
||||
to_chat(user, span_notice("\The [src] won't work on a robotic limb!"))
|
||||
return
|
||||
|
||||
if(!H.can_inject(user, FALSE, L.zone_sel.selecting, pierce_material))
|
||||
to_chat(user, "<span class='notice'>\The [src] can't be applied through such a thick material!</span>")
|
||||
to_chat(user, span_notice("\The [src] can't be applied through such a thick material!"))
|
||||
return
|
||||
|
||||
user.visible_message("<span class='warning'>[user] attempts to place \the [src] onto [H]`s [affecting].</span>")
|
||||
user.visible_message(span_warning("[user] attempts to place \the [src] onto [H]`s [affecting]."))
|
||||
|
||||
user.setClickCooldown(user.get_attack_speed(src))
|
||||
if(!do_mob(user, M))
|
||||
return
|
||||
|
||||
user.drop_from_inventory(src) //icon update
|
||||
user.visible_message("<span class='warning'>[user] applies \the [src] to [H].</span>")
|
||||
user.visible_message(span_warning("[user] applies \the [src] to [H]."))
|
||||
|
||||
var/contained = reagentlist()
|
||||
add_attack_logs(user,M,"Applied a patch containing [contained]")
|
||||
|
||||
to_chat(H, "<span class='notice'>\The [src] is placed on your [affecting].</span>")
|
||||
to_chat(H, span_notice("\The [src] is placed on your [affecting]."))
|
||||
M.drop_from_inventory(src) //icon update
|
||||
|
||||
if(reagents.total_volume)
|
||||
@@ -79,4 +79,4 @@
|
||||
|
||||
return 1
|
||||
|
||||
return 0
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user