What's the best, most efficient, most modular way to structure a "heat" mechanic?

Okay so my game relies on a “Heat” mechanic as part of the survival aspect.

My basic concept is that there’s a “Body temperature” value stored in the character.

When you’re near a fire, you’ll given an affect which increases their body temperature. When you’re not near a fire you’ll be given an affect which decreases your body temperature.

(I have a basic “affect” or “affliction” system to apply certain conditions to a player).

If the temperature goes below 35 Celsius, the “Hypothermia” affect will be applied and you’ll slowly die.

Enough backstory, what’s the best way to structure a system which detects when you’re within the radius of an object tagged “HeatSource”?

Thanks.

1 Like