1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2024-11-24 09:21:46 +00:00

Merge pull request #5 from thepaperpilot/2.0-format-docs

Added code blocks to 2.0 format changes documentation
This commit is contained in:
Harley White 2020-10-19 19:33:25 -04:00 committed by GitHub
commit a95ca1ca99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,28 +1,27 @@
# 2.0 format changes
- Temp format is changed from temp.something[layer] to temp[layer]. something, for consistency
- 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
- `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
- Generation of Points now happens in the main game loop (not in a layer update function), enabled by `canGenPoints` in [game.js](js/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
- 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
- desc -> challengeDescription
- reward -> rewardDescription
- effect -> rewardEffect
- effectDisplay -> rewardDisplay
- active -> challengeActive