Repairing light robotic damage messaging fix

This commit is contained in:
Atermonera
2023-01-15 14:04:19 -05:00
committed by VirgoBot
parent 0d06166735
commit 1966acb410
2 changed files with 14 additions and 3 deletions
@@ -79,21 +79,25 @@
if(S.organ_tag == BP_HEAD)
if(H.head && istype(H.head,/obj/item/clothing/head/helmet/space))
to_chat(user, "<span class='warning'>You can't apply [src] through [H.head]!</span>")
return 1
return TRUE
else
if(H.wear_suit && istype(H.wear_suit,/obj/item/clothing/suit/space))
to_chat(user, "<span class='warning'>You can't apply [src] through [H.wear_suit]!</span>")
return 1
return TRUE
if(!welding)
to_chat(user, "<span class='warning'>You'll need to turn [src] on to patch the damage on [H]'s [S.name]!</span>")
return 1
return TRUE
if(S.robo_repair(15, BRUTE, "some dents", src, user))
remove_fuel(1, user)
<<<<<<< HEAD
return 1
else
return 1 //Stops you from accidentally harming someone while on help intent.
=======
return TRUE
>>>>>>> 02c3aebf2a3... Repairing light robotic damage messaging fix (#8870)
return ..()
+7
View File
@@ -461,11 +461,18 @@
if("omni")src.heal_damage(repair_amount, repair_amount, 0, 1)
if(damage_desc)
var/fix_verb = (damage_amount > repair_amount) ? "patches" : "finishes patching"
if(user == src.owner)
var/datum/gender/T = gender_datums[user.get_visible_gender()]
<<<<<<< HEAD
user.visible_message("<b>\The [user]</b> patches [damage_desc] on [T.his] [src.name] with [tool].")
else
user.visible_message("<b>\The [user]</b> patches [damage_desc] on [owner]'s [src.name] with [tool].")
=======
user.visible_message("<span class='notice'>\The [user] [fix_verb] [damage_desc] on [T.his] [src.name] with [tool].</span>")
else
user.visible_message("<span class='notice'>\The [user] [fix_verb] [damage_desc] on [owner]'s [src.name] with [tool].</span>")
>>>>>>> 02c3aebf2a3... Repairing light robotic damage messaging fix (#8870)
return 1