Skip to content

Commit

Permalink
adding suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
SunShine214 committed Aug 6, 2024
1 parent 274ae95 commit b8c9522
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/modules/mob/mob_helpers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,10 @@
else
user.visible_message("[user] has fixed some of the [dam ? "dents on" : "burnt wires in"] [H]'s [parse_zone(affecting.body_zone)].", \
"<span class='notice'>You fix some of the [dam ? "dents on" : "burnt wires in"] [H == user ? "your" : "[H]'s"] [parse_zone(affecting.body_zone)].</span>")
if(((affecting.brute_dam <= 0 && brute_heal) && ((!H.is_bleeding()) && H.has_mechanical_bleeding())) || (affecting.burn_dam <= 0 && burn_heal)) //might be bad to have this many expressions in a single if....
if((affecting.brute_dam <= 0 && brute_heal) && ((!H.is_bleeding()) && H.has_mechanical_bleeding()))
return FALSE //successful heal, but the target is at full health. Returns false to signal you can stop healing now
if(affecting.burn_dam <=0 && burn_heal)
return FALSE //same as above, but checking for burn damage instead
return TRUE //successful heal
else
to_chat(user, "<span class='warning'>[affecting] is already in good condition!</span>")
Expand Down

0 comments on commit b8c9522

Please sign in to comment.