AI-Project/survival/game/biomes/biome_data.py
2021-06-19 00:09:14 +02:00

10 lines
344 B
Python

from survival.game.biomes.biome_preset import BiomePreset
class BiomeData:
def __init__(self, preset: BiomePreset):
self.biome = preset
def get_diff_value(self, height: float, moisture: float, heat: float):
return (height - self.biome.min_height) + (moisture - self.biome.min_moisture) + (heat - self.biome.min_heat)