mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-11 23:23:28 +01:00
Fix non-consumable Ahdomai's Eclipse (#24277)
* Fix non-consumable Ahdomai's Eclipse * Apply some refactoring * Better call parent first * Apply DGamerL suggestions Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> --------- Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
4aa06a90d2
commit
b3bec16c2c
@@ -1567,13 +1567,12 @@
|
||||
drink_name = "Ahdomai's Eclipse"
|
||||
drink_desc = "Blizzard in a glass. Tajaran signature drink!"
|
||||
taste_description = "ice"
|
||||
var/min_achievable_temp = 250
|
||||
|
||||
/datum/reagent/consumable/ethanol/ahdomai_eclipse/on_mob_life(mob/living/M)
|
||||
if(!istajaran(M))
|
||||
return ..()
|
||||
if(M.bodytemperature > 250)
|
||||
M.bodytemperature = max(250, M.bodytemperature - (50 * TEMPERATURE_DAMAGE_COEFFICIENT))
|
||||
|
||||
. = ..()
|
||||
if(istajaran(M) && M.bodytemperature > min_achievable_temp)
|
||||
M.bodytemperature = max(min_achievable_temp, M.bodytemperature - (50 * TEMPERATURE_DAMAGE_COEFFICIENT))
|
||||
|
||||
/datum/reagent/consumable/ethanol/beach_feast
|
||||
name = "Feast by the Beach"
|
||||
|
||||
Reference in New Issue
Block a user