Terasology / ClimateConditions

A module for managing temperature, humidity, and other climate factors
0 stars 6 forks source link

feat: Adds Levels to Hypo/Hyperthermia #25

Closed ktksan closed 4 years ago

ktksan commented 4 years ago

This PR introduces levels to Hypothermia and Hyperthermia Effects. Adds new allEffectModifier and level attributes to Hypo/HyperthermiaComponents, allEffectModifier directly impacts the magnitude of difficulty relating to each effect. for e.g. an allEffectModifier = 2 value, increases the damage due to frostbite to double and decreases walkSpeedMultiplier to half in case of higher level of hyporthermia.. As of now, allEffectModifier value remains same as Hypo/Hyperthermia level value.. 1 being normal and 2 being critical.

Probable Usage; When BodyTemprature reaches critically low/ high temperature, the level can be increased to 2. example can be found in the closed PR in the portion following this comment: https://github.com/Terasology/ClimateConditions/pull/24/files#r452474872

Edit: PR now changed to have different effects on different levels of Hypo/Hyperthermia.

skaldarnar commented 4 years ago

Should be merged before #17 for simplicity.

If https://github.com/MovingBlocks/Terasology/pull/4095 is merged this PR can be simplified.