<spanclass="line"><spanstyle="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> startData</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">() { </span><spanstyle="--shiki-light:#D73A49;--shiki-dark:#F97583;">return</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> { </span><spanstyle="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// startData is a function that returns default data for a layer. </span></span>
<spanclass="line"><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> unlocked: </span><spanstyle="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">true</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, </span><spanstyle="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// You can add more variables here to add them to your layer.</span></span>
<spanclass="line"><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> points: </span><spanstyle="--shiki-light:#D73A49;--shiki-dark:#F97583;">new</span><spanstyle="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> Decimal</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(</span><spanstyle="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">0</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">), </span><spanstyle="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// "points" is the internal name for the main resource of the layer.</span></span>
<spanclass="line"><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> color: </span><spanstyle="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"#4BDC13"</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, </span><spanstyle="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// The color for this layer, which affects many elements.</span></span>
<spanclass="line"><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> resource: </span><spanstyle="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"prestige points"</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, </span><spanstyle="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// The name of this layer's main prestige resource.</span></span>
<spanclass="line"><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> row: </span><spanstyle="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">0</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, </span><spanstyle="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// The row this layer is on (0 is the first row).</span></span>
<spanclass="line"><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> baseResource: </span><spanstyle="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"points"</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, </span><spanstyle="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// The name of the resource your prestige gain is based on.</span></span>
<spanclass="line"><spanstyle="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> baseAmount</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">() { </span><spanstyle="--shiki-light:#D73A49;--shiki-dark:#F97583;">return</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> player.points }, </span><spanstyle="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// A function to return the current amount of baseResource.</span></span>
<spanclass="line"><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> requires: </span><spanstyle="--shiki-light:#D73A49;--shiki-dark:#F97583;">new</span><spanstyle="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> Decimal</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(</span><spanstyle="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">10</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">), </span><spanstyle="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// The amount of the base needed to gain 1 of the prestige currency.</span></span>
<spanclass="line"><spanstyle="--shiki-light:#6A737D;--shiki-dark:#6A737D;"> // Also the amount required to unlock the layer.</span></span>
<spanclass="line"><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> type: </span><spanstyle="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"normal"</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, </span><spanstyle="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// Determines the formula used for calculating prestige currency.</span></span>
<spanclass="line"><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> exponent: </span><spanstyle="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">0.5</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, </span><spanstyle="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// "normal" prestige gain is (currency^exponent).</span></span>
<spanclass="line"><spanstyle="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> gainMult</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">() { </span><spanstyle="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// Returns your multiplier to your gain of the prestige resource.</span></span>
<spanclass="line"><spanstyle="--shiki-light:#D73A49;--shiki-dark:#F97583;"> return</span><spanstyle="--shiki-light:#D73A49;--shiki-dark:#F97583;"> new</span><spanstyle="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> Decimal</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(</span><spanstyle="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">1</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">) </span><spanstyle="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// Factor in any bonuses multiplying gain here.</span></span>
<spanclass="line"><spanstyle="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> gainExp</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">() { </span><spanstyle="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// Returns your exponent to your gain of the prestige resource.</span></span>
<spanclass="line"><spanstyle="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> layerShown</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">() { </span><spanstyle="--shiki-light:#D73A49;--shiki-dark:#F97583;">return</span><spanstyle="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> true</span><spanstyle="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> }, </span><spanstyle="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// Returns a bool for if this layer's node should be visible in the tree.</span></span>