Terasology / ClimateConditions

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

feat: Add BodyTemperatureAlterationEffect #23

Closed ktksan closed 4 years ago

ktksan commented 4 years ago

Adds body temperature alteration effect. Reacts to the AffectBodyTemperatureEvent and modifies the change based on the modifiers. Has an id attribute which stores information on type of body temperature change alteration - currently 3 ids have been implemented -

  1. "activateWhenEnvironmentColder" - when change in temperature is negative.
  2. "activateWhenEnvironmentHotter" - when change in temperature is positive.
  3. "default" - modifies the change irrespective of whether it is positive or negative.

Depends on: https://github.com/Terasology/ClimateConditions/pull/17

jdrueckert commented 4 years ago

Which changes in here actually belong to this PR? Seems like there's also stuff in here that comes from the Body Temperature System PR #17 ? Or maybe the other way around? I'm confused 🙈

ktksan commented 4 years ago

@jdrueckert 😅. All files that actually belong to this PR are in a separate directory alterationEffects... so basically the ones with the path: src/main/java/org/terasology/climateConditions/alterationEffect/ i.e. the last 3 files... I left the other files here because.. otherwise, you won't be able to test these changes 😅