1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2025-05-12 21:11:05 +00:00

Added unlocking hotkeys

This commit is contained in:
Harley White 2021-04-27 02:01:02 -04:00
parent b003027098
commit c8bc53ca50
4 changed files with 9 additions and 5 deletions

View file

@ -46,7 +46,8 @@ You can make almost any value dynamic by using a function in its place, includin
{
key: "p", // What the hotkey button is. Use uppercase if it's combined with shift, or "ctrl+x" for holding down ctrl.
description: "p: reset your points for prestige points", // The description of the hotkey that is displayed in the game's How To Play tab
onPress() { if (player.p.unlocked) doReset("p") }
onPress() { if (player.p.unlocked) doReset("p") },
unlocked() {return hasMilestone('p', 3)} // Determines if you can use the hotkey, optional
}
]
```