temperature

This commit is contained in:
Ed
2025-07-31 15:13:37 +03:00
parent 52536aab97
commit 57e6a88c57
3 changed files with 33 additions and 1 deletions

View File

@@ -8,6 +8,7 @@
- CP14MobStarving
- MobBloodstream
- MobFlammable
- CP14MobTemperature
- MobPolymorphable
id: CP14SimpleMobBase
suffix: AI

View File

@@ -5,6 +5,7 @@
- MobCombat
- CP14MobDamageable
- CP14MobMagical
- CP14MobTemperature
- MobPolymorphable
id: CP14BaseMobSpecies
categories: [ ForkFiltered ]

View File

@@ -90,4 +90,34 @@
delay: 3 # 5m to full restore
- type: CP14MagicUnsafeDamage
- type: CP14MagicUnsafeSleep
- type: CP14AuraImprint
- type: CP14AuraImprint
- type: entity
id: CP14MobTemperature
components:
- type: Temperature
heatDamageThreshold: 325
coldDamageThreshold: 0
currentTemperature: 310.15
coldDamage: #per second, scales with temperature & other constants
types:
Cold : 0.1
- type: ThermalRegulator
metabolismHeat: 800
radiatedHeat: 100
implicitHeatRegulation: 250
sweatHeatRegulation: 500
shiveringHeatRegulation: 500
normalBodyTemperature: 310.15
thermalRegulationTemperatureThreshold: 2
- type: Temperature
heatDamageThreshold: 325
coldDamageThreshold: 260
currentTemperature: 310.15
specificHeat: 42
coldDamage:
types:
Cold: 1 #per second, scales with temperature & other constants
heatDamage:
types:
Heat: 1.5 #per second, scales with temperature & other constants