Skip to content

Commit

Permalink
terminology
Browse files Browse the repository at this point in the history
This sort of behavior is quite literally called shivering thermogenesis so yeah this is more appropriate wording.

Also rewrites the moodlet to be more fitting.
  • Loading branch information
DeltaFire15 committed Jun 23, 2024
1 parent d01b463 commit c2f89ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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
Expand Up @@ -53,6 +53,6 @@
mood_change = 3
timeout = 30 SECONDS

/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"
/datum/mood_event/lizard_shivers
description = "<span class='warning'>I'm shivering.. I need to find a spot where I can bask in the sun!</span>\n" //Evolved mental response, even if not entirely true here.
mood_change = -2
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@
if(cold_stacks < LIZARD_THERMOGENESIS_COLD_TRIGGER_STACKS && !fibrillating)
return ECTOTHERM_NO_THERMOGENESIS_NEEDED
if(!fibrillating) // !fibrillating reaching this point means enough stacks exist.
to_chat(human_holder, "<span class='warning'>Various muscles across your body start quivering!</span>")
SEND_SIGNAL(human_holder, COMSIG_ADD_MOOD_EVENT, "lizard_trembles", /datum/mood_event/lizard_vibrations)
to_chat(human_holder, "<span class='warning'>You start shivering and feel the urge to find a sunny spot!</span>")
SEND_SIGNAL(human_holder, COMSIG_ADD_MOOD_EVENT, "lizard_shivers", /datum/mood_event/lizard_shivers)
fibrillating = TRUE
else if(cold_stacks == 0) //We also check if we have to stop vibrating here.
to_chat(human_holder, "<span class='notice'>Your muscles calm down.</span>")
SEND_SIGNAL(human_holder, COMSIG_CLEAR_MOOD_EVENT, "lizard_trembles")
to_chat(human_holder, "<span class='notice'>You stop shivering.</span>")
SEND_SIGNAL(human_holder, COMSIG_CLEAR_MOOD_EVENT, "lizard_shivers")
fibrillating = FALSE
return ECTOTHERM_NO_THERMOGENESIS_NEEDED

return ..(human_holder, FALSE) //We already use some fancy logic for our thermoregulation triggering so we don't use the normal temp difference check save for if we would get hot.

//Modular proc attachment
/datum/species/lizard/on_species_loss(mob/living/carbon/human/C, datum/species/new_species, pref_load) //Human variable, named C. What did they mean by this?
SEND_SIGNAL(C, COMSIG_CLEAR_MOOD_EVENT, "lizard_trembles") //Safely remove if our species is changed.
SEND_SIGNAL(C, COMSIG_CLEAR_MOOD_EVENT, "lizard_shivers") //Safely remove if our species is changed.
return ..()

0 comments on commit c2f89ea

Please sign in to comment.