Skip to content

Commit

Permalink
should round
Browse files Browse the repository at this point in the history
also mood -2 and quip about another one
  • Loading branch information
DeltaFire15 committed Jun 22, 2024
1 parent bf28132 commit ffb61c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions nsv13/code/datums/mood_events/nsv_events.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/datum/mood_event/moth_drink_blood
description = "<span class='nicegreen'>That hit the spot!</span>\n"
mood_change = 10
mood_change = 10 //Why is a moth drinking blood a mood buff the level of being a cultist?? And for *ten minutes*???
timeout = 10 MINUTES

/datum/mood_event/tailpull
Expand Down Expand Up @@ -55,4 +55,4 @@

/datum/mood_event/lizard_vibrations
description = "<span class='warning'>I know my muscles are shaking to warm me up, but it still feels distracting..</span>\n"
mood_change = -1
mood_change = -2
4 changes: 2 additions & 2 deletions nsv13/code/modules/mob/living/carbon/human/nsv_species.dm
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@
if(temperature_differential < ECTOTHERM_THERMOGENESIS_CRIT_COLDNESS)
if(human_holder.nutrition < ECTOTHERM_THERMOGENESIS_NUTRITION_USE * human_holder.metabolism_efficiency)
return 0
adjustment = CLAMP(temperature_differential / ECTOTHERM_RECOVERY_DIVISOR * human_holder.metabolism_efficiency, ECTOTHERM_MIN_RECOVERY * human_holder.metabolism_efficiency, ECTOTHERM_MAX_RECOVERY * human_holder.metabolism_efficiency)
adjustment = round(CLAMP(temperature_differential / ECTOTHERM_RECOVERY_DIVISOR * human_holder.metabolism_efficiency, ECTOTHERM_MIN_RECOVERY * human_holder.metabolism_efficiency, ECTOTHERM_MAX_RECOVERY * human_holder.metabolism_efficiency), 0.1)
human_holder.adjust_nutrition(-ECTOTHERM_THERMOGENESIS_NUTRITION_USE * human_holder.metabolism_efficiency)
else
if(human_holder.nutrition < ECTOTHERM_MAJOR_THERMOGENESIS_NUTRITION_USE * human_holder.metabolism_efficiency)
return 0
adjustment = CLAMP(temperature_differential / ECTOTHERM_RECOVERY_DIVISOR * human_holder.metabolism_efficiency, ECTOTHERM_MIN_RECOVERY * human_holder.metabolism_efficiency, ECTOTHERM_MAX_RECOVERY * human_holder.metabolism_efficiency * ECTOTHERM_CRIT_COLD_MAX_RECOVERY_MOD)
adjustment = round(CLAMP(temperature_differential / ECTOTHERM_RECOVERY_DIVISOR * human_holder.metabolism_efficiency, ECTOTHERM_MIN_RECOVERY * human_holder.metabolism_efficiency, ECTOTHERM_MAX_RECOVERY * human_holder.metabolism_efficiency * ECTOTHERM_CRIT_COLD_MAX_RECOVERY_MOD), 0.1)
human_holder.adjust_nutrition(-ECTOTHERM_MAJOR_THERMOGENESIS_NUTRITION_USE * human_holder.metabolism_efficiency)
human_holder.adjust_bodytemperature(adjustment)
return adjustment

0 comments on commit ffb61c6

Please sign in to comment.