mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-11-24 09:21:46 +00:00
Fixed clickables
This commit is contained in:
parent
5a4a4da5ad
commit
2d56c25917
4 changed files with 6 additions and 3 deletions
|
@ -1,5 +1,8 @@
|
|||
# The Modding Tree changelog:
|
||||
|
||||
# v2.5.5.1 - 5/12/21
|
||||
- Fixed clickables.
|
||||
|
||||
# v2.5.5 - 5/12/21
|
||||
- Added grids! They are a grid of buttons which behave the same, but have their own data. Good for inventory grids, map tiles, and more!
|
||||
- Added "marked" feature to add a mark to a node. Can be an image instead of a star. (Originally by Jacorb)
|
||||
|
|
|
@ -11,7 +11,7 @@ let modInfo = {
|
|||
|
||||
// Set your version in num and name
|
||||
let VERSION = {
|
||||
num: "2.5.5",
|
||||
num: "2.5.5.1",
|
||||
name: "Dreams Really Do Come True",
|
||||
}
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ var scrolled = false;
|
|||
|
||||
// Don't change this
|
||||
const TMT_VERSION = {
|
||||
tmtNum: "2.5.5",
|
||||
tmtNum: "2.5.5.1",
|
||||
tmtName: "Dreams Really Do Come True"
|
||||
}
|
||||
|
||||
|
|
|
@ -180,7 +180,7 @@ function buyBuyable(layer, id) {
|
|||
function clickClickable(layer, id) {
|
||||
if (!player[layer].unlocked) return
|
||||
if (!tmp[layer].clickables[id].unlocked) return
|
||||
if (!tmp[layer].clickables[id].getCanClick) return
|
||||
if (!tmp[layer].clickables[id].canClick) return
|
||||
|
||||
run(layers[layer].clickables[id].onClick, layers[layer].clickables[id])
|
||||
updateClickableTemp(layer)
|
||||
|
|
Loading…
Reference in a new issue