2023-04-20 22:23:08 +00:00
import { _ as e , c as t , o as a , d as s } from "./app.c95a51e0.js" ; const f = JSON . parse ( '{"title":"Layer Features","description":"","frontmatter":{},"headers":[{"level":2,"title":"Layer Definition features","slug":"layer-definition-features","link":"#layer-definition-features","children":[]},{"level":2,"title":"Big features (all optional)","slug":"big-features-all-optional","link":"#big-features-all-optional","children":[]},{"level":2,"title":"Prestige formula features","slug":"prestige-formula-features","link":"#prestige-formula-features","children":[]},{"level":2,"title":"Tree/node features","slug":"tree-node-features","link":"#tree-node-features","children":[]},{"level":2,"title":"Other features","slug":"other-features","link":"#other-features","children":[]},{"level":2,"title":"Custom Prestige type","slug":"custom-prestige-type","link":"#custom-prestige-type","children":[]}],"relativePath":"public/gamedevtree/docs/layer-features.md","lastUpdated":null}' ) , o = { name : "public/gamedevtree/docs/layer-features.md" } , n = s ( ` <h1 id="layer-features" tabindex="-1">Layer Features <a class="header-anchor" href="#layer-features" aria-hidden="true">#</a></h1><p>This is a more comprehensive list of established features to add to layers. You can add more freely, if you want to have other functions or values associated with your layer. These have special functionality, though.</p><p>You can make almost any value dynamic by using a function in its place, including all display strings and styling/color features.</p><p>Key:</p><ul><li>No label: This is required and the game will crash if it isn't included.</li><li><strong>sometimes required</strong>: This is may be required, depending on other things in the layer.</li><li><strong>optional</strong>: You can leave this out if you don't intend to use that feature for the layer.</li></ul><h2 id="layer-definition-features" tabindex="-1">Layer Definition features <a class="header-anchor" href="#layer-definition-features" aria-hidden="true">#</a></h2><ul><li><p>layer: <strong>Assigned automagically</strong>. It's the same value as the name of this layer, so you can do player[this.layer].points or similar to access the save value. It makes copying code to new layers easier. It is also assigned to all upgrades and buyables and such.</p></li><li><p>name: <strong>Optional</strong>, used in reset confirmations (and maybe other places). If absent, it just uses the layer's id.</p></li><li><p>startData(): A function to return the default save data for this layer. Add any variables you have to it. Any nonstandard Decimal variables need to be added to convertToDecimal as well. Standard values: Required: unlocked: a bool determining if this layer is unlocked or not points: a Decimal, the main currency for the layer Optional: total: A Decimal, tracks total amount of main prestige currency best: A Decimal, tracks highest amount of main prestige currency unlockOrder: used to keep track of relevant layers unlocked before this one.</p></li><li><p>color: A color associated with this layer, used in many places. (A string in hex format with a #)</p></li><li><p>row: The row of the layer, starting at 0. This affects where the node appears on the tree, and which resets affect the layer.</p><pre><code> Using "side" instead of a number will cause the layer to appear off to the side as a smaller node (useful for achievements
2022-10-05 00:48:27 +00:00
and statistics ) . Side layers are not affected by resets unless you add a doReset to them .
2022-11-12 03:03:09 +00:00
< / c o d e > < / p r e > < / l i > < l i > < p > r e s o u r c e : N a m e o f t h e m a i n c u r r e n c y y o u g a i n b y r e s e t t i n g o n t h i s l a y e r . < / p > < / l i > < l i > < p > e f f e c t ( ) : < s t r o n g > o p t i o n a l < / s t r o n g > , A f u n c t i o n t h a t c a l c u l a t e s a n d r e t u r n s t h e c u r r e n t v a l u e s o f a n y b o n u s e s i n h e r e n t t o t h e m a i n c u r r e n c y . C a n r e t u r n a v a l u e o r a n o b j e c t c o n t a i n i n g m u l t i p l e v a l u e s . < e m > Y o u w i l l a l s o h a v e t o i m p l e m e n t t h e e f f e c t w h e r e i t i s a p p l i e d . < / e m > < / p > < / l i > < l i > < p > e f f e c t D e s c r i p t i o n : < s t r o n g > o p t i o n a l < / s t r o n g > , A f u n c t i o n t h a t r e t u r n s a d e s c r i p t i o n o f t h i s e f f e c t . I f t h e t e x t s t a y s c o n s t a n t , i t c a n j u s t b e a s t r i n g . < / p > < / l i > < l i > < p > l a y e r S h o w n ( ) : A f u n c t i o n r e t u r n i n g a b o o l w h i c h d e t e r m i n e s i f t h i s l a y e r & # 3 9 ; s n o d e s h o u l d b e v i s i b l e o n t h e t r e e . I t c a n a l s o r e t u r n & q u o t ; g h o s t & q u o t ; , w h i c h w i l l h i d e t h e l a y e r , b u t i t s n o d e w i l l s t i l l t a k e u p s p a c e i n t h e t r e e . < / p > < / l i > < l i > < p > h o t k e y s : < s t r o n g > o p t i o n a l < / s t r o n g > , A n a r r a y c o n t a i n i n g i n f o r m a t i o n o n a n y h o t k e y s a s s o c i a t e d w i t h t h i s l a y e r : < / p > < d i v c l a s s = " l a n g u a g e - j s " > < b u t t o n t i t l e = " C o p y C o d e " c l a s s = " c o p y " > < / b u t t o n > < s p a n c l a s s = " l a n g " > j s < / s p a n > < p r e c l a s s = " s h i k i " > < c o d e > < s p a n c l a s s = " l i n e " > < s p a n s t y l e = " c o l o r : # F F C B 6 B ; " > h o t k e y s < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > : < / s p a n > < s p a n s t y l e = " c o l o r : # A 6 A C C D ; " > [ < / s p a n > < / s p a n >
2022-10-05 00:48:27 +00:00
< span class = "line" > < span style = "color:#A6ACCD;" > < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > { < / s p a n > < s p a n s t y l e = " c o l o r : # F 0 7 1 7 8 ; " > k e y < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > : < / s p a n > < s p a n s t y l e = " c o l o r : # A 6 A C C D ; " > < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > & q u o t ; < / s p a n > < s p a n s t y l e = " c o l o r : # C 3 E 8 8 D ; " > p < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > & q u o t ; < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > , < / s p a n > < s p a n s t y l e = " c o l o r : # A 6 A C C D ; " > < / s p a n > < s p a n s t y l e = " c o l o r : # 6 7 6 E 9 5 ; " > / / W h a t t h e h o t k e y b u t t o n i s . U s e u p p e r c a s e i f i t & # 3 9 ; s c o m b i n e d w i t h s h i f t , o r & q u o t ; c t r l + x & q u o t ; i f c t r l i s . < / s p a n > < / s p a n >
< span class = "line" > < span style = "color:#A6ACCD;" > < / s p a n > < s p a n s t y l e = " c o l o r : # F 0 7 1 7 8 ; " > d e s c < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > : < / s p a n > < s p a n s t y l e = " c o l o r : # A 6 A C C D ; " > < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > & q u o t ; < / s p a n > < s p a n s t y l e = " c o l o r : # C 3 E 8 8 D ; " > p : r e s e t y o u r p o i n t s f o r p r e s t i g e p o i n t s < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > & q u o t ; < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > , < / s p a n > < s p a n s t y l e = " c o l o r : # A 6 A C C D ; " > < / s p a n > < s p a n s t y l e = " c o l o r : # 6 7 6 E 9 5 ; " > / / T h e d e s c r i p t i o n o f t h e h o t k e y u s e d i n t h e H o w T o P l a y < / s p a n > < / s p a n >
< span class = "line" > < span style = "color:#A6ACCD;" > < / s p a n > < s p a n s t y l e = " c o l o r : # F 0 7 1 7 8 ; " > o n P r e s s < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > ( ) { < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > i f < / s p a n > < s p a n s t y l e = " c o l o r : # F 0 7 1 7 8 ; " > ( < / s p a n > < s p a n s t y l e = " c o l o r : # A 6 A C C D ; " > p l a y e r < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > . < / s p a n > < s p a n s t y l e = " c o l o r : # A 6 A C C D ; " > p < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > . < / s p a n > < s p a n s t y l e = " c o l o r : # A 6 A C C D ; " > u n l o c k e d < / s p a n > < s p a n s t y l e = " c o l o r : # F 0 7 1 7 8 ; " > ) < / s p a n > < s p a n s t y l e = " c o l o r : # 8 2 A A F F ; " > d o R e s e t < / s p a n > < s p a n s t y l e = " c o l o r : # F 0 7 1 7 8 ; " > ( < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > & q u o t ; < / s p a n > < s p a n s t y l e = " c o l o r : # C 3 E 8 8 D ; " > p < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > & q u o t ; < / s p a n > < s p a n s t y l e = " c o l o r : # F 0 7 1 7 8 ; " > ) < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > } } , < / s p a n > < s p a n s t y l e = " c o l o r : # A 6 A C C D ; " > < / s p a n > < s p a n s t y l e = " c o l o r : # 6 7 6 E 9 5 ; " > / / T h i s f u n c t i o n i s c a l l e d w h e n t h e h o t k e y i s p r e s s e d . < / s p a n > < / s p a n >
< span class = "line" > < span style = "color:#A6ACCD;" > ] < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > , < / s p a n > < / s p a n >
< span class = "line" > < / s p a n > < / c o d e > < / p r e > < / d i v > < / l i > < l i > < p > s t y l e : < s t r o n g > o p t i o n a l < / s t r o n g > , a & q u o t ; C S S o b j e c t & q u o t ; w h e r e t h e k e y s a r e C S S a t t r i b u t e s , c o n t a i n i n g a n y C S S t h a t s h o u l d a f f e c t t h i s l a y e r & # 3 9 ; s e n t i r e t a b . < / p > < / l i > < l i > < p > t a b F o r m a t : < s t r o n g > o p t i o n a l < / s t r o n g > , u s e t h i s i f y o u w a n t t o a d d e x t r a t h i n g s t o y o u r t a b o r c h a n g e t h e l a y o u t . < a h r e f = " . / c u s t o m - t a b - l a y o u t s " > S e e h e r e f o r m o r e i n f o . < / a > < / p > < / l i > < l i > < p > m i d s e c t i o n : < s t r o n g > o p t i o n a l < / s t r o n g > , a n a l t e r n a t i v e t o t a b F o r m a t , w h i c h i s i n s e r t e d i n b e t w e e n M i l e s t o n e s a n d B u y a b l e s i n t h e s t a n d a r d t a b l a y o u t . ( c a n n o t d o s u b t a b s ) < / p > < / l i > < / u l > < h 2 i d = " b i g - f e a t u r e s - a l l - o p t i o n a l " t a b i n d e x = " - 1 " > B i g f e a t u r e s ( a l l o p t i o n a l ) < a c l a s s = " h e a d e r - a n c h o r " h r e f = " # b i g - f e a t u r e s - a l l - o p t i o n a l " a r i a - h i d d e n = " t r u e " > # < / a > < / h 2 > < u l > < l i > < p > u p g r a d e s : A g r i d o f o n e - t i m e p u r c h a s e s w h i c h c a n h a v e u n i q u e u p g r a d e c o n d i t i o n s , c u r r e n c y c o s t s , a n d b o n u s e s . < a h r e f = " . / u p g r a d e s " > E x p l a n a t i o n s a r e i n a s e p a r a t e f i l e . < / a > < / p > < / l i > < l i > < p > m i l e s t o n e s : A l i s t o f b o n u s e s g a i n e d u p o n r e a c h i n g c e r t a i n t h r e s h o l d s o f a r e s o u r c e . O f t e n u s e d f o r a u t o m a t i o n / Q O L . < a h r e f = " . / m i l e s t o n e s " > E x p l a n a t i o n s a r e i n a s e p a r a t e f i l e . < / a > < / p > < / l i > < l i > < p > c h a l l e n g e s : T h e p l a y e r c a n e n t e r c h a l l e n g e s , w h i c h m a k e t h e g a m e h a r d e r . I f t h e y r e a c h a g o a l a n d b e a t t h e c h a l l e n g e , t h e y r e c i e v e a b o n u s . < a h r e f = " . / c h a l l e n g e s " > E x p l a n a t i o n s a r e i n a s e p a r a t e f i l e . < / a > < / p > < / l i > < l i > < p > b u y a b l e s : E f f e c t i v e l y u p g r a d e s t h a t c a n b e b o u g h t m u l t i p l e t i m e s , a n d a r e o p t i o n a l l y r e s p e c c a b l e . M a n y u s e s . < a h r e f = " . / b u y a b l e s " > E x p l a n a t i o n s a r e i n a s e p a r a t e f i l e . < / a > < / p > < / l i > < l i > < p > c l i c k a b l e s : E x t r e m e l y v e r s a t i l e a n d g e n e r a l i z e d b u t t o n s w h i c h c a n o n l y b e c l i c k e d s o m e t i m e s . < a h r e f = " . / c l i c k a b l e s " > E x p l a n a t i o n s a r e i n a s e p a r a t e f i l e . < / a > < / p > < / l i > < l i > < p > m i c r o t a b s : A n a r e a t h a t f u n c t i o n s l i k e a s e t o f s u b t a b s , w i t h b u t t o n s a t t h e t o p c h a n g i n g t h e c o n t e n t w i t h i n . ( A d v a n c e d ) < a h r e f = " . / s u b t a b s - a n d - m i c r o t a b s " > E x p l a n a t i o n s a r e i n a s e p a r a t e f i l e . < / a > < / p > < / l i > < l i > < p > b a r s : D i s p l a y s o m e i n f o r m a t i o n a s a p r o g r e s s b a r , g a g u e , o r s i m i l a r . T h e y a r e h i g h l y c u s t o m i z a b l e , a n d c a n b e v e r t i c a l a s w e l l . < a h r e f = " . / b a r s " > E x p l a n a t i o n s a r e i n a s e p a r a t e f i l e . < / a > < / p > < / l i > < l i > < p > a c h i e v e m e n t s : K i n d o f l i k e m i l e s t o n e s , b u t w i t h a d i f f e r e n t d i s p l a y s t y l e a n d s o m e o t h e r d i f f e r e n c e s . E x t r a f e a t u r e s a r e o n t h e w a y a t a l a t e r d a t e ! < a h r e f = " . / a c h i e v e m e n t s " > E x p l a n a t i o n s a r e i n a s e p a r a t e f i l e . < / a > < / p > < / l i > < l i > < p > i n f o b o x e s : D i s p l a y s s o m e t e x t i n a b o x t h a t c a n b e s h o w n o r h i d d e n . < a h r e f = " . / i n f o b o x e s " > E x p l a n a t i o n s a r e i n a s e p a r a t e f i l e . < / a > < / p > < / l i > < / u l > < h 2 i d = " p r e s t i g e - f o r m u l a - f e a t u r e s " t a b i n d e x = " - 1 " > P r e s t i g e f o r m u l a f e a t u r e s < a c l a s s = " h e a d e r - a n c h o r " h r e f = " # p r e s t i g e - f o r m u l a - f e a t u r e s " a r i a - h i d d e n = " t r u e " > # < / a > < / h 2 > < u l > < l i > < p > t y p e : < s t r o n g > o p t i o n a l < / s t r o n g > , D e t e r m i n e s w h i c h p r e s t i g e f o r m u l a y o u u s e . D e f a u l t s t o & q u o t ; n o n e & q u o t ; . & q u o t ; n o r m a l & q u o t ; : T h e a m o u n t o f c u r r e n c y y o u g a i n i s i n d e p e n d e n t o f i t s c u r r e n t a m o u n t ( l i k e P r e s t i g e ) . f o r m u l a b e f o r e b o n u s e s i s b a s e d o n < c o d e > b a s e R e s o u r c e ^ e x p o n e n t < / c o d e > & q u o t ; s t a t i c & q u o t ; : T h e c o s t i s d e p e n d e n t o n y o u r t o t a l a f t e r r e s e t . f o r m u l a b e f o r e b o n u s e s i s b a s e d o n < c o d e > b a s e ^ ( x ^ e x p o n e n t ) < / c o d e > & q u o t ; c u s t o m & q u o t ; : Y o u c a n d e f i n e e v e r y t h i n g , f r o m t h e c a l c u l a t i o n s t o t h e t e x t o n t h e b u t t o n , y o u r s e l f . ( S e e m o r e a t t h e b o t t o m ) & q u o t ; n o n e & q u o t ; : T h i s l a y e r d o e s n o t p r e s t i g e , a n d t h e r e f o r e d o e s n o t n e e d a n y o f t h e o t h e r f e a t u r e s i n t h i s s e c t i o n . < / p > < / l i > < l i > < p > b a s e R e s o u r c e : T h e n a m e o f t h e r e s o u r c e t h a t d e t e r m i n e s h o w m u c h o f t h e m a i n c u r r e n c y y o u g a i n o n r e s e t . < / p > < / l i > < l i > < p > b a s e A m o u n t ( ) : A f u n c t i o n t h a t g e t s t h e c u r r e n t v a l u e o f t h e b a s e r e s o u r c e . < / p > < / l i > < l i > < p > r e q u i r e s : A D e c i m a l , t h e a m o u n t o f t h e b a s e n e e d e d t o g a i n 1 o f t h e p r e s t i g e c u r r e n c y . A l s o t h e a m o u n t r e q u i r e d t o u n l o c k t h e l a y e r . Y o u c a n i n s t e a d m a k e t h i s a f u n c t i o n , t o m a k e i t h a r d e r i f a n o t h e r l a y e r w a s u n l o c k e d f i r s t ( b a s e d o n u n l o c k O r d e r ) . < / p > < / l i > < l i > < p > e x p o n e n t : U s e d a s d e s c r i b e d a b o v e . < / p > < / l i > < l i > < p > b a s e : < s t r o n g > s o m e t i m e s r e q u i r e d < / s t r o n g > , r e q u i r e d f o r & q u o t ; s t a t i c & q u o t ; l a y e r s , u s e d a s d e s c r i b e d a b o v e . I f a b s e n t , d e f a u l t s t o 2 . M u s t b e g r e a t e r t h a n 1 . < / p > < / l i > < l i > < p > r o u n d U p C o s t : < s t r o n g
resetLayerData ( layer , keep ) , where layer is this layer , and keep is an array of the names of things to keep .
It can include things like & quot ; points & quot ; , & quot ; best & quot ; , & quot ; total & quot ; ( for this layer & # 39 ; s prestige currency ) , & quot ; upgrades & quot ; ,
any unique variables like & quot ; generatorPower & quot ; , etc .
If you want to only keep specific upgrades or something like that , save them in a separate variable , then
call layerDataReset , and then set player [ layer ] . upgrades to the saved upgrades .
2022-11-12 03:03:09 +00:00
< / c o d e > < / p r e > < / l i > < l i > < p > u p d a t e ( d i f f ) : < s t r o n g > o p t i o n a l < / s t r o n g > , t h i s f u n c t i o n i s c a l l e d e v e r y g a m e t i c k . U s e i t f o r a n y p a s s i v e r e s o u r c e p r o d u c t i o n o r t i m e - b a s e d t h i n g s . d i f f i s t h e t i m e s i n c e t h e l a s t t i c k . S u g g e s t i o n : u s e a d d P o i n t s ( l a y e r , g a i n ) w h e n g e n e r a t i n g p o i n t s t o a u t o m a t i c a l l y u p d a t e t h e b e s t a n d t o t a l a m o u n t s . < / p > < / l i > < l i > < p > a u t o m a t e ( ) : < s t r o n g > o p t i o n a l < / s t r o n g > , t h i s f u n c t i o n i s c a l l e d e v e r y g a m e t i c k , a f t e r p r o d u c t i o n . U s e i t t o a c t i v a t e a n y a u t o b u y e r s o r a u t o - r e s e t s o r s i m i l a r o n t h i s l a y e r , i f a p p r o p r i a t e . < / p > < / l i > < l i > < p > r e s e t s N o t h i n g : < s t r o n g > o p t i o n a l < / s t r o n g > , r e t u r n s t r u e i f t h i s l a y e r s h o u l d n & # 3 9 ; t t r i g g e r a n y r e s e t s w h e n y o u p r e s t i g e . < / p > < / l i > < l i > < p > i n c r e a s e U n l o c k O r d e r : < s t r o n g > o p t i o n a l < / s t r o n g > , a n a r r a y o f l a y e r i d s . W h e n t h i s l a y e r i s u n l o c k e d f o r t h e f i r s t t i m e , t h e u n l o c k O r d e r v a l u e f o r a n y n o t - y e t - u n l o c k e d l a y e r s i n t h i s l i s t i n c r e a s e s . T h i s c a n b e u s e d t o m a k e t h e m h a r d e r t o u n l o c k . < / p > < / l i > < l i > < p > s h o u l d N o t i f y : < s t r o n g > o p t i o n a l < / s t r o n g > , a f u n c t i o n t o r e t u r n t r u e i f t h i s l a y e r s h o u l d b e h i g h l i g h t e d i n t h e t r e e . T h e l a y e r w i l l a u t o m a t i c a l l y b e h i g h l i g h t e d i f y o u c a n b u y a n u p g r a d e w h e t h e r y o u h a v e t h i s o r n o t . < / p > < / l i > < l i > < p > c o m p o n e n t S t y l e s : < s t r o n g > o p t i o n a l < / s t r o n g > , A n o b j e c t t h a t c o n t a i n s a s e t o f f u n c t i o n s r e t u r n i n g C S S o b j e c t s . E a c h o f t h e s e w i l l b e a p p l i e d t o a n y c o m p o n e n t s o n t h e l a y e r w i t h t h e t y p e o f i t s i d . E x a m p l e : < / p > < / l i > < / u l > < d i v c l a s s = " l a n g u a g e - j s " > < b u t t o n t i t l e = " C o p y C o d e " c l a s s = " c o p y " > < / b u t t o n > < s p a n c l a s s = " l a n g " > j s < / s p a n > < p r e c l a s s = " s h i k i " > < c o d e > < s p a n c l a s s = " l i n e " > < s p a n s t y l e = " c o l o r : # A 6 A C C D ; " > < / s p a n > < s p a n s t y l e = " c o l o r : # F F C B 6 B ; " > c o m p o n e n t S t y l e s < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > : < / s p a n > < s p a n s t y l e = " c o l o r : # A 6 A C C D ; " > < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > { < / s p a n > < / s p a n >
2022-10-05 00:48:27 +00:00
< span class = "line" > < span style = "color:#F07178;" > < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > & q u o t ; < / s p a n > < s p a n s t y l e = " c o l o r : # C 3 E 8 8 D ; " > c h a l l e n g e < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > & q u o t ; < / s p a n > < s p a n s t y l e = " c o l o r : # F 0 7 1 7 8 ; " > ( ) < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > { < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > r e t u r n < / s p a n > < s p a n s t y l e = " c o l o r : # F 0 7 1 7 8 ; " > < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > { < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > & # 3 9 ; < / s p a n > < s p a n s t y l e = " c o l o r : # F 0 7 1 7 8 ; " > h e i g h t < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > & # 3 9 ; < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > : < / s p a n > < s p a n s t y l e = " c o l o r : # F 0 7 1 7 8 ; " > < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > & # 3 9 ; < / s p a n > < s p a n s t y l e = " c o l o r : # C 3 E 8 8 D ; " > 2 0 0 p x < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > & # 3 9 ; < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > } } , < / s p a n > < / s p a n >
< span class = "line" > < span style = "color:#F07178;" > < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > & q u o t ; < / s p a n > < s p a n s t y l e = " c o l o r : # C 3 E 8 8 D ; " > p r e s t i g e - b u t t o n < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > & q u o t ; < / s p a n > < s p a n s t y l e = " c o l o r : # F 0 7 1 7 8 ; " > ( ) < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > { < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > r e t u r n < / s p a n > < s p a n s t y l e = " c o l o r : # F 0 7 1 7 8 ; " > < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > { < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > & # 3 9 ; < / s p a n > < s p a n s t y l e = " c o l o r : # F 0 7 1 7 8 ; " > c o l o r < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > & # 3 9 ; < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > : < / s p a n > < s p a n s t y l e = " c o l o r : # F 0 7 1 7 8 ; " > < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > & # 3 9 ; < / s p a n > < s p a n s t y l e = " c o l o r : # C 3 E 8 8 D ; " > # A A 6 6 A A < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > & # 3 9 ; < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > } } , < / s p a n > < / s p a n >
< span class = "line" > < span style = "color:#F07178;" > < / s p a n > < s p a n s t y l e = " c o l o r : # 8 9 D D F F ; " > } , < / s p a n > < / s p a n >
< span class = "line" > < / s p a n > < / c o d e > < / p r e > < / d i v > < h 2 i d = " c u s t o m - p r e s t i g e - t y p e " t a b i n d e x = " - 1 " > C u s t o m P r e s t i g e t y p e < a c l a s s = " h e a d e r - a n c h o r " h r e f = " # c u s t o m - p r e s t i g e - t y p e " a r i a - h i d d e n = " t r u e " > # < / a > < / h 2 > < u l > < l i > < p > g e t R e s e t G a i n ( ) : < s t r o n g > F o r c u s t o m p r e s t i g e t y p e < / s t r o n g > , R e t u r n s h o w m a n y p o i n t s y o u s h o u l d g e t i f y o u r e s e t n o w . Y o u c a n c a l l g e t R e s e t G a i n ( t h i s . l a y e r , u s e T y p e = & q u o t ; s t a t i c & q u o t ; ) o r s i m i l a r t o c a l c u l a t e w h a t y o u r g a i n w o u l d b e u n d e r a n o t h e r p r e s t i g e t y p e ( p r o v i d e d y o u h a v e a l l o f t h e r e q u i r e d f e a t u r e s i n t h e l a y e r . ) < / p > < / l i > < l i > < p > g e t N e x t A t ( c a n M a x = f a l s e ) : < s t r o n g > F o r c u s t o m p r e s t i g e t y p e < / s t r o n g > , R e t u r n s h o w m a n y o f t h e b a s e c u r r e n c y y o u n e e d t o g e t t o t h e n e x t p o i n t . c a n M a x i s a n o p t i o n a l v a r i a b l e u s e d w i t h S t a t i c - i s h l a y e r s t o d i f f e r e n t i a t e b e t w e e n i f i t & # 3 9 ; s l o o k i n g f o r t h e f i r s t p o i n t y o u c a n r e s e t a t , o r t h e r e q u i r e m e n t f o r a n y g a i n a t a l l . ( S u p p o r t i n g b o t h i s g o o d ) . Y o u c a n a l s o c a l l g e t N e x t A t ( t h i s . l a y e r , c a n M a x = f a l s e , u s e T y p e = & q u o t ; s t a t i c & q u o t ; ) o r s i m i l a r t o c a l c u l a t e w h a t y o u r n e x t a t w o u l d b e u n d e r a n o t h e r p r e s t i g e t y p e ( p r o v i d e d y o u h a v e a l l o f t h e r e q u i r e d f e a t u r e s i n t h e l a y e r . ) < / p > < / l i > < l i > < p > c a n R e s e t ( ) : < s t r o n g > F o r c u s t o m p r e s t i g e t y p e < / s t r o n g > , r e t u r n t r u e o n l y i f y o u h a v e t h e r e s o u r c e s r e q u i r e d t o d o a p r e s t i g e h e r e . < / p > < / l i > < / u l > ` , 1 8 ) , r = [ n ] ; f u n c t i o n l ( i , p , c , u , h , y ) { r e t u r n a ( ) , t ( " d i v " , n u l l , r ) } c o n s t g = e ( o , [ [ " r e n d e r " , l ] ] ) ; e x p o r t { f a s _ _ p a g e D a t a , g a s d e f a u l t } ;