mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2025-02-16 09:41:41 +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 should be formatted like this:
|
||||||
|
|
||||||
`` buyables: {
|
``buyables: {
|
||||||
rows: # of rows
|
rows: # of rows
|
||||||
cols: # of columns
|
cols: # of columns
|
||||||
respec() {}, **optional**, implement it to reset things and give back your currency.
|
respec() {}, **optional**, implement it to reset things and give back your currency.
|
||||||
Having this function makes a respec button appear
|
Having this function makes a respec button appear
|
||||||
respecText: **optional**, text that appears on the respec button
|
respecText: **optional**, text that appears on the respec button
|
||||||
11: {
|
11: {
|
||||||
desc: "Blah",
|
desc: "Blah",
|
||||||
|
etc
|
||||||
|
}
|
||||||
etc
|
etc
|
||||||
}
|
}``
|
||||||
etc
|
|
||||||
} ``
|
|
||||||
|
|
||||||
Features:
|
Features:
|
||||||
|
|
||||||
|
|
|
@ -3,13 +3,13 @@
|
||||||
Challenges are stored in the following format:
|
Challenges are stored in the following format:
|
||||||
|
|
||||||
``challs: {
|
``challs: {
|
||||||
rows: # of rows
|
rows: # of rows
|
||||||
cols: # of columns
|
cols: # of columns
|
||||||
11: {
|
11: {
|
||||||
name: "Ouch",
|
name: "Ouch",
|
||||||
|
etc
|
||||||
|
}
|
||||||
etc
|
etc
|
||||||
}
|
|
||||||
etc
|
|
||||||
}``
|
}``
|
||||||
|
|
||||||
You can use inChall(layer, id) and hasChall(layer, id) to determine if the player is currently in a challenge,
|
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:
|
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 "}],
|
["prestige-button", function(){return "Melt your points into "}],
|
||||||
["raw-html", function() {return "<button onclick='console.log(`yeet`)'>'HI'</button>"}],
|
["raw-html", function() {return "<button onclick='console.log(`yeet`)'>'HI'</button>"}],
|
||||||
["display-text",
|
["display-text",
|
||||||
|
|
|
@ -11,7 +11,7 @@ Key:
|
||||||
# Layer Definition features
|
# Layer Definition features
|
||||||
|
|
||||||
- startData(): A function to return the default save data for this layer. Add any variables you have to it.
|
- 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:
|
Standard values:
|
||||||
Required:
|
Required:
|
||||||
unl: a bool determining if this layer is unlocked or not
|
unl: a bool determining if this layer is unlocked or not
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
Milestones should be formatted like this:
|
Milestones should be formatted like this:
|
||||||
|
|
||||||
``milestones: {
|
``milestones: {
|
||||||
0: {
|
0: {
|
||||||
requirementDesc: "123 waffles",
|
requirementDesc: "123 waffles",
|
||||||
}
|
}
|
||||||
etc
|
etc
|
||||||
}``
|
}``
|
||||||
|
|
||||||
You can use inChall(layer, id) and hasChall(layer, id) to determine if the player is currently in a challenge,
|
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 are stored in the following format:
|
||||||
|
|
||||||
``upgrades: {
|
``upgrades: {
|
||||||
rows: # of rows
|
rows: # of rows
|
||||||
cols: # of columns
|
cols: # of columns
|
||||||
11: {
|
11: {
|
||||||
desc: "Blah",
|
desc: "Blah",
|
||||||
|
etc
|
||||||
|
}
|
||||||
etc
|
etc
|
||||||
}
|
|
||||||
etc
|
|
||||||
}``
|
}``
|
||||||
|
|
||||||
You can use hasUpg(layer, id) to determine if the player has an upgrade. This is useful for implementing bonuses.
|
You can use hasUpg(layer, id) to determine if the player has an upgrade. This is useful for implementing bonuses.
|
||||||
|
|
Loading…
Add table
Reference in a new issue