Implements hunger drain + changelog

This commit is contained in:
Xhuis
2015-09-29 23:12:45 -04:00
parent 840ab165f3
commit 4e33e464a4
3 changed files with 12 additions and 2 deletions
@@ -185,7 +185,7 @@
if("doctorsdelight")
icon_state = "doctorsdelightglass"
name = "Doctor's Delight"
desc = "A healthy mixture of juices, guaranteed to keep you healthy until the next toolboxing takes place."
desc = "The space doctor's favorite. Guaranteed to restore bodily injury; side effects include cravings and hunger."
if("manlydorf")
icon_state = "manlydorfglass"
name = "The Manly Dorf"
@@ -392,7 +392,7 @@
/datum/reagent/consumable/doctor_delight
name = "The Doctor's Delight"
id = "doctorsdelight"
description = "A gulp a day keeps the Medibot away! A mixture of juices that heals most damage types fairly quickly."
description = "A gulp a day keeps the Medibot away! A mixture of juices that heals most damage types fairly quickly at the cost of hunger."
color = "#FF8CFF" // rgb: 255, 140, 255
/datum/reagent/consumable/doctor_delight/on_mob_life(mob/living/M)
@@ -400,6 +400,9 @@
M.adjustFireLoss(-2)
M.adjustToxLoss(-2)
M.adjustOxyLoss(-2)
if(M.nutrition && (M.nutrition - 2 > 0))
if(!(M.mind && M.mind.assigned_role == "Medical Doctor")) //Drains the nutrition of the holder. Not medical doctors though, since it's the Doctor's Delight!
M.nutrition -= 2
..()
/datum/reagent/consumable/chocolatepudding