Skip to content

Gabriel2#32

Draft
Ewwweee wants to merge 57 commits intoTerasology:developfrom
Cordoncharge83:Gabriel2
Draft

Gabriel2#32
Ewwweee wants to merge 57 commits intoTerasology:developfrom
Cordoncharge83:Gabriel2

Conversation

@Ewwweee
Copy link
Copy Markdown

@Ewwweee Ewwweee commented Dec 17, 2023

Hello, this pull request is made to resolve all the points in the issue #26 .

feat(Temperature) : Temperature which increase, decrease or stagnate. Temperature depends on time

feat(Humidity) : Humidity increase when Temeprature decrease and vice-versa

feat(Water state) : the water will evaporate or freeze according to the temperature. Same with the snow

feat(Weather) : the weather depends on humidity and temperature

Cordoncharge83 and others added 30 commits November 28, 2023 15:13
…hod, we send the current weather condition depending on the humidity and the temperature
Copy link
Copy Markdown

@BenjaminAmos BenjaminAmos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Somebody will get around to properly reviewing this at some point but can I just ask that you tidy-up your changes a bit first? You seem to have introduced several random files with content that is completely unrelated to these changes.

You can make updates to this pull request by pushing to the branch it points to.

I've left a few comments from a cursory glance at the changes but this is not yet a full review.

@@ -0,0 +1 @@
sah sah sah No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is not needed.

@@ -0,0 +1 @@
ijfjverzhjbtrkubt:lhbtr No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is also not needed.

@@ -0,0 +1 @@
TEjsfsidfjzuifnhnhjdfs No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not believe that this file serves any useful purpose either.

Comment on lines +57 to +58
import org.terasology.climateConditions.ClimateConditionsSystem;
import org.terasology.climateConditions.ClimateConditionsSystem;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this class imported twice?


@Override
public void postBegin() {
networkSystem = context.get(NetworkSystem.class);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general, using @In should be the same as context.get. Did that not work for you?

@ReceiveEvent
public void stagnateTemperature(TemperatureStagnateEvent event, EntityRef worldEntity) {
float temperature = this.currentTemperature;
//T = (TMAX - TMIN)value + TMIN => value = (T - TMIN)/(TMAX -TMIN)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume that this is re-arranging the equation but the comment is not clear about what this equation does.

@@ -0,0 +1,39 @@
<!-- This file, when present as src/test/resources/logback-test.xml,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file should not be needed. Logging configuration is not typically done at a module level.

@@ -0,0 +1 @@
jsgdhsjfjhiezuyruiz
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file also appears to serve no use.

// SPDX-License-Identifier: Apache-2.0
package org.terasology.weatherManager.weather;

import java.util.Random;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why have you added a random import here?

@jdrueckert jdrueckert marked this pull request as draft January 3, 2024 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants