Home
API: chem

Function: growthCost()

lifecycle-kit

lifecycle-kit


lifecycle-kit / chem / growthCost

Function: growthCost()

growthCost(id, backbone?): number

Defined in: chem/biomolecules.ts:155

How costly a tissue is to grow, from the scarcity of its elements.

Mineral needs phosphorus, which is roughly five orders of magnitude rarer than oxygen, so skeleton is genuinely expensive and a heavily built creature is genuinely an achievement.

Parameters

id

string

backbone?

Backbone = "C"

Returns

number