import{_ as e,q as a,p as t,ag as i}from"./chunks/framework.Sr2_9k8k.js";const f=JSON.parse('{"title":"2.0 format changes","description":"","frontmatter":{},"headers":[],"relativePath":"public/gamedevtree/2.0-format-changes.md","filePath":"public/gamedevtree/2.0-format-changes.md"}'),o={name:"public/gamedevtree/2.0-format-changes.md"},n=i('
- Temp format is changed from
temp.something[layer]
to temp[layer].something
, for consistency - Challenges are now saved as an object with the amount of completions in each spot. (This will break saves.)
effectDisplay
in Challenges and Upgrades no longer takes an argument, and neither does effect
for Buyables- Buyable cost can take an argument for amount of buyables, but it needs to function if no argument is supplied (it should do the cost for the next purchase).
- Generation of Points now happens in the main game loop (not in a layer update function), enabled by
canGenPoints
in game.js. - Changed
fullLayerReset
to layerDataReset
, which takes an array of names of values to keep
In addition, many names were changed, mostly expanding abbreviations:
All instances of:
- chall -> challenge
- unl -> unlocked
- upg -> upgrade (besides CSS)
- amt -> amount
- desc -> description
- resCeil -> roundUpCost
- order -> unlockOrder
- incr_order -> increaseUnlockOrder
Challenges:
- desc -> challengeDescription
- reward -> rewardDescription
- effect -> rewardEffect
- effectDisplay -> rewardDisplay
- active -> challengeActive
',7),l=[n];function s(r,c,d,g,h,m){return t(),a("div",null,l)}const u=e(o,[["render",s]]);export{f as __pageData,u as default};