mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-11-21 16:13:55 +00:00
More fixes I hope
This commit is contained in:
parent
62d0753d50
commit
1f0ccee7c5
6 changed files with 30 additions and 29 deletions
|
@ -5,18 +5,18 @@ the player can reset the purchases to get their currency back.
|
|||
|
||||
Buyables should be formatted like this:
|
||||
|
||||
`` buyables: {
|
||||
rows: # of rows
|
||||
cols: # of columns
|
||||
respec() {}, **optional**, implement it to reset things and give back your currency.
|
||||
Having this function makes a respec button appear
|
||||
respecText: **optional**, text that appears on the respec button
|
||||
11: {
|
||||
desc: "Blah",
|
||||
``buyables: {
|
||||
rows: # of rows
|
||||
cols: # of columns
|
||||
respec() {}, **optional**, implement it to reset things and give back your currency.
|
||||
Having this function makes a respec button appear
|
||||
respecText: **optional**, text that appears on the respec button
|
||||
11: {
|
||||
desc: "Blah",
|
||||
etc
|
||||
}
|
||||
etc
|
||||
}
|
||||
etc
|
||||
} ``
|
||||
}``
|
||||
|
||||
Features:
|
||||
|
||||
|
|
|
@ -3,13 +3,13 @@
|
|||
Challenges are stored in the following format:
|
||||
|
||||
``challs: {
|
||||
rows: # of rows
|
||||
cols: # of columns
|
||||
11: {
|
||||
name: "Ouch",
|
||||
rows: # of rows
|
||||
cols: # of columns
|
||||
11: {
|
||||
name: "Ouch",
|
||||
etc
|
||||
}
|
||||
etc
|
||||
}
|
||||
etc
|
||||
}``
|
||||
|
||||
You can use inChall(layer, id) and hasChall(layer, id) to determine if the player is currently in a challenge,
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
|
||||
Custom tab layouts can be used to do basically anything in a tab window, especially combined with the "style" layer feature. The tabFormat feature is an array of things, like this:
|
||||
|
||||
`` tabFormat: ["main-display",
|
||||
``
|
||||
tabFormat: ["main-display",
|
||||
["prestige-button", function(){return "Melt your points into "}],
|
||||
["raw-html", function() {return "<button onclick='console.log(`yeet`)'>'HI'</button>"}],
|
||||
["display-text",
|
||||
|
|
|
@ -11,7 +11,7 @@ Key:
|
|||
# Layer Definition features
|
||||
|
||||
- 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.
|
||||
Any nonstandard Decimal variables need to be added to convertToDecimal as well.
|
||||
Standard values:
|
||||
Required:
|
||||
unl: a bool determining if this layer is unlocked or not
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
Milestones should be formatted like this:
|
||||
|
||||
``milestones: {
|
||||
0: {
|
||||
requirementDesc: "123 waffles",
|
||||
}
|
||||
etc
|
||||
0: {
|
||||
requirementDesc: "123 waffles",
|
||||
}
|
||||
etc
|
||||
}``
|
||||
|
||||
You can use inChall(layer, id) and hasChall(layer, id) to determine if the player is currently in a challenge,
|
||||
|
|
|
@ -3,13 +3,13 @@
|
|||
Upgrades are stored in the following format:
|
||||
|
||||
``upgrades: {
|
||||
rows: # of rows
|
||||
cols: # of columns
|
||||
11: {
|
||||
desc: "Blah",
|
||||
rows: # of rows
|
||||
cols: # of columns
|
||||
11: {
|
||||
desc: "Blah",
|
||||
etc
|
||||
}
|
||||
etc
|
||||
}
|
||||
etc
|
||||
}``
|
||||
|
||||
You can use hasUpg(layer, id) to determine if the player has an upgrade. This is useful for implementing bonuses.
|
||||
|
|
Loading…
Reference in a new issue