Only notify if mob is SSD

This commit is contained in:
Kyep
2018-03-27 16:36:26 -07:00
parent af3e632a09
commit 9aca23aaba
+4 -1
View File
@@ -100,7 +100,10 @@
if(drownee.losebreath > 20) //You've probably got bigger problems than drowning at this point, so we won't add to it until you get that under control.
return
add_logs(src, drownee, "drowned", null, null, 0, 0) //log it to their VV, but don't spam the admins' chats with the logs
if (isLivingSSD(drownee))
add_logs(src, drownee, "drowned", null, null, 0, 1) // Notify admins, since the person is SSD
else
add_logs(src, drownee, "drowned", null, null, 0, 0) // Do not notify admins.
if(drownee.stat) //Mob is in critical.
drownee.AdjustLoseBreath(3, bound_lower = 0, bound_upper = 20)
drownee.visible_message("<span class='danger'>\The [drownee] appears to be drowning!</span>","<span class='userdanger'>You're quickly drowning!</span>") //inform them that they are fucked.