Repairing light robotic damage messaging fix (#8870)

* Robo-repair calls print a different message when all the damage is healed

* Return whether or not damage is repaired.
This commit is contained in:
Atermonera
2023-01-15 11:03:17 -08:00
committed by GitHub
parent 83eaaa0a4f
commit 02c3aebf2a
2 changed files with 8 additions and 7 deletions
+3 -2
View File
@@ -443,11 +443,12 @@
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()]
user.visible_message("<span class='notice'>\The [user] patches [damage_desc] on [T.his] [src.name] with [tool].</span>")
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] patches [damage_desc] on [owner]'s [src.name] with [tool].</span>")
user.visible_message("<span class='notice'>\The [user] [fix_verb] [damage_desc] on [owner]'s [src.name] with [tool].</span>")
return 1