Merge pull request #2186 from Citadel-Station-13/upstream-merge-29547

[MIRROR] Player-controlled medibots are now alerted when they can't heal someone
This commit is contained in:
ktccd
2017-07-31 21:48:50 +02:00
committed by GitHub
@@ -459,6 +459,8 @@
break
if(!reagent_id) //If they don't need any of that they're probably cured!
if(C.maxHealth - C.health < heal_threshold)
to_chat(src, "<span class='notice'>[C] is healthy! Your programming prevents you from injecting anyone without at least [heal_threshold] damage of any one type ([heal_threshold + 15] for oxygen damage.)</span>")
var/list/messagevoice = list("All patched up!" = 'sound/voice/mpatchedup.ogg',"An apple a day keeps me away." = 'sound/voice/mapple.ogg',"Feel better soon!" = 'sound/voice/mfeelbetter.ogg')
var/message = pick(messagevoice)
speak(message)