Fix divers beta 1.4
* Changement du son de récupération d'objet * Ajout d'une couleur de rareté et suppression de la boucle sur la couleur de rareté * Changement de la mutation Prolifique : n'ajoute des graines que si mature * Changement de la mutation Rapide : réduction du debuff de temps de vie par 2 * Modification de la mutation Vivace : Augmentation des points ajoutés * Les graines données sur des plantes non mature ne mutent plus * Fix sur la plantation, on ne peut plus planter là où il y a de la roche * Fix visuel : les particule de vent ne s'affichent plus lorsqu'il pleut
This commit is contained in:
@@ -28,6 +28,7 @@ func _ready():
|
||||
func apply_meteo():
|
||||
rain_particles.amount = max(1,int(1000 * meteo.rain_value))
|
||||
rain_particles.visible = meteo.rain_value != 0.
|
||||
wind_particles.visible = meteo.rain_value == 0.
|
||||
rain_particles.scale.x = -1 if meteo.wind_direction.x > 0 else 1
|
||||
|
||||
var wind_particle_material : ParticleProcessMaterial = wind_particles.process_material as ParticleProcessMaterial
|
||||
|
||||
@@ -252,10 +252,9 @@ func is_coords_rocky(tiles_coords : Array[Vector2i]):
|
||||
var chunk : Chunk = get_chunk_for_coord(coord)
|
||||
if chunk:
|
||||
var local_coord := TilesDiffData.get_local_coord(coord, chunk.chunk_coord)
|
||||
print(chunk.rock_layer.get_tile_type(local_coord))
|
||||
if chunk.rock_layer.get_tile_type(local_coord) != RockLayer.TileType.EMPTY:
|
||||
return false
|
||||
return true
|
||||
if chunk.rock_layer.get_tile_type(local_coord) == RockLayer.TileType.ROCK:
|
||||
return true
|
||||
return false
|
||||
|
||||
func dig_rocks(tiles_coords : Array[Vector2i], save_tiles_diff := true, loot := true):
|
||||
if save_tiles_diff :
|
||||
|
||||
@@ -42,5 +42,8 @@ func has_tile(coord : Vector2i) -> bool:
|
||||
|
||||
func get_tile_type(coord : Vector2i) -> TileType:
|
||||
if has_tile(coord):
|
||||
return TileType.CRISTAL if get_cell_tile_data(coord).terrain == CRISTAL_TILE_TERRAIN else TileType.ROCK
|
||||
if get_cell_tile_data(coord).terrain == CRISTAL_TILE_TERRAIN:
|
||||
return TileType.CRISTAL
|
||||
elif get_cell_tile_data(coord).terrain == ROCK_TILE_TERRAIN:
|
||||
return TileType.ROCK
|
||||
return TileType.EMPTY
|
||||
|
||||
Reference in New Issue
Block a user