newBorns

Méthode retournant toutes les informations sur les montures venants de naitre après l'ouverture d'un enclos.

🎮 Méthode

mount:newBorns()

📝 Arguments

Nom

Type

Description

💎 Valeur de retour

Type

Description

{ MountClientData }

Liste.

Il faut accéder à un enclos avant d'utiliser cette méthode.

Exemple

function move()
	global:printMessage("-----------------------------------------------")
	global:printMessage("Montures venants de naitre")
	global:printMessage("-----------------------------------------------")
	local newBorns = mount:newBorns()
	for _, newBorn in ipairs(newBorns) do
		global:printSuccess("id: "..newBorn.id)
		global:printSuccess("model: "..newBorn.model)
		global:printSuccess("name: "..newBorn.name)
		global:printSuccess("sex: "..tostring(newBorn.sex))
		global:printSuccess("ownerId: "..newBorn.ownerId)
		global:printSuccess("experience: "..newBorn.experience)
		global:printSuccess("experienceForLevel: "..newBorn.experienceForLevel)
		global:printSuccess("experienceForNextLevel: "..newBorn.experienceForNextLevel)
		global:printSuccess("level: "..newBorn.level)
		global:printSuccess("isRideable: "..tostring(newBorn.isRideable))
		global:printSuccess("maxPods: "..newBorn.maxPods)
		global:printSuccess("isWild: "..tostring(newBorn.isWild))
		global:printSuccess("stamina: "..newBorn.stamina)
		global:printSuccess("staminaMax: "..newBorn.staminaMax)
		global:printSuccess("maturity "..newBorn.maturity)
		global:printSuccess("maturityForAdult: "..newBorn.maturityForAdult)
		global:printSuccess("energy: "..newBorn.energy)
		global:printSuccess("energyMax: "..newBorn.energyMax)
		global:printSuccess("serenity: "..newBorn.serenity)
		global:printSuccess("serenityMax: "..newBorn.serenityMax)
		global:printSuccess("aggressivityMax: "..newBorn.aggressivityMax)
		global:printSuccess("love: "..newBorn.love)
		global:printSuccess("loveMax: "..newBorn.loveMax)
		global:printSuccess("fecondationTime: "..newBorn.fecondationTime)
		global:printSuccess("isFecondationReady: "..tostring(newBorn.isFecondationReady))
		global:printSuccess("boostLimiter: "..newBorn.boostLimiter)
		global:printSuccess("boostMax: "..newBorn.boostMax)
		global:printSuccess("reproductionCount: "..newBorn.reproductionCount)
		global:printSuccess("reproductionCountMax: "..newBorn.reproductionCountMax)
		global:printSuccess("harnessGID: "..newBorn.harnessGID)
		global:printSuccess("useHarnessColors: "..tostring(newBorn.useHarnessColors))
		global:printSuccess("Effects :")
		for _,effect in ipairs(newBorn.effectList) do
			global:printSuccess("        ActionID: "..effect.actionId.." - Value: "..effect.value)
		end
		global:printSuccess("ancestors :")
		for _,ancestor in ipairs(newBorn.ancestor) do
			global:printSuccess("        "..ancestor)
		end
		global:printSuccess("behaviors :")
		for _,behavior in ipairs(newBorn.behaviors) do
			global:printSuccess("        "..behavior)
		end
		global:printMessage("-----------------------------------------------")
	end
	global:printMessage("-----------------------------------------------")
end

Dernière mise à jour