24 lines
1.3 KiB
GDScript
24 lines
1.3 KiB
GDScript
# data/evolution_condition.gd
|
|
@tool
|
|
class_name EvolutionCondition
|
|
extends Resource
|
|
|
|
@export var trigger : String # "level-up", "trade", "use-item", "shed"...
|
|
@export var min_level : int = 0 # 0 = pas de condition de niveau
|
|
@export var item : String # objet à utiliser, "" si aucun
|
|
@export var held_item : String # objet à tenir, "" si aucun
|
|
@export var known_move : String # capacité requise, "" si aucune
|
|
@export var known_move_type : String # type de capacité requis, "" si aucun
|
|
@export var min_happiness : int = 0
|
|
@export var min_beauty : int = 0
|
|
@export var min_affection : int = 0
|
|
@export var time_of_day : String # "day", "night", "" si indifférent
|
|
@export var location : String # lieu requis, "" si aucun
|
|
@export var trade_species : String # échange contre cette espèce précise, "" sinon
|
|
@export var party_species : String # espèce requise dans l'équipe, "" si aucune
|
|
@export var party_type : String # type requis dans l'équipe, "" si aucun
|
|
@export var relative_physical_stats : int = 0 # -1, 0, 1 (atk<def, atk=def, atk>def) ; PokeAPI: null -> 0 par défaut, ambigu avec "égal"
|
|
@export var needs_overworld_rain : bool = false
|
|
@export var turn_upside_down : bool = false
|
|
@export var gender : int = -1 # -1 = indifférent, 1 = femelle, 2 = mâle (valeurs de l'API PokeAPI)
|