Amélioration QOL et fix divers pour l'alpha-1.1
* Ajout des icônes dans les descriptions des mutations * QOL sur la fonctionnalité de drop d'item * Ajout des contrôles dans le tutoriel * Réécriture des dialogues d'intro et d'échec * Changements mineurs sur des dialogues et traduction * Les graines apparaissent avec déjà une mutation * Limitation du Talion autour de la station de recharge * Fix de l'ascenseur dans la base Astra * Ajout d'un effet visuel quand il n'y a plus d'énergie * Le nombre de graine apparrait désormais dans l'inspécteur de plantes * Ajout d'un petit icône de progrès de durée de vie de la plante au survol * Ajout d'une description de la signification des icônes dans le menu pause * La mutation éphémère réduit désormais la durée de vie de 1
This commit is contained in:
@@ -40,8 +40,7 @@ static func generate_from_parent(plant_data : PlantData) -> Seed:
|
||||
static func generate_random() -> Seed:
|
||||
var archetype = PlantArchetype.get_random()
|
||||
var random_mutations : Array[PlantMutation] = []
|
||||
if randf() < MUTATION_PROBABILITY:
|
||||
random_mutations = ([archetype.available_mutations.pick_random().duplicate_deep()] as Array[PlantMutation])
|
||||
random_mutations.append(archetype.available_mutations.pick_random().duplicate_deep())
|
||||
var new_seed = Seed.new(
|
||||
Random.generate_random_word(),
|
||||
PlantArchetype.get_random(),
|
||||
|
||||
@@ -156,8 +156,11 @@ func pick_item(item : Item):
|
||||
|
||||
func drop_item():
|
||||
var ind_to_drop := data.inventory.current_item_ind
|
||||
if data.inventory.current_is_tool():
|
||||
ind_to_drop = data.inventory.n_tools
|
||||
while (
|
||||
(data.inventory.get_item(ind_to_drop) == null or ind_to_drop < data.inventory.n_tools)
|
||||
and ind_to_drop < len(data.inventory.items) - 1
|
||||
):
|
||||
ind_to_drop += 1
|
||||
var item_to_drop = data.inventory.pop_item(ind_to_drop)
|
||||
if item_to_drop:
|
||||
terrain.drop_item(item_to_drop, global_position)
|
||||
|
||||
Reference in New Issue
Block a user