2020-10-17 04:21:59 +00:00
|
|
|
let modInfo = {
|
2020-10-17 22:30:32 +00:00
|
|
|
name: "The ??? Tree",
|
|
|
|
id: "mymod",
|
2020-10-19 23:52:52 +00:00
|
|
|
author: "nobody",
|
2020-10-17 04:21:59 +00:00
|
|
|
pointsName: "points",
|
|
|
|
discordName: "",
|
|
|
|
discordLink: "",
|
|
|
|
changelogLink: "https://github.com/Acamaeda/The-Modding-Tree/blob/master/changelog.md",
|
2020-10-27 23:25:03 +00:00
|
|
|
initialStartPoints: new Decimal (10), // Used for hard resets and new players
|
|
|
|
|
|
|
|
offlineLimit: 1, // In hours
|
2020-10-17 04:21:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Set your version in num and name
|
|
|
|
let VERSION = {
|
2020-10-17 22:18:57 +00:00
|
|
|
num: "0.0",
|
|
|
|
name: "Literally nothing",
|
2020-10-17 04:21:59 +00:00
|
|
|
}
|
|
|
|
|
2020-10-17 21:04:38 +00:00
|
|
|
// If you add new functions anywhere inside of a layer, and those functions have an effect when called, add them here.
|
|
|
|
// (The ones here are examples, all official functions are already taken care of)
|
2020-10-17 22:18:57 +00:00
|
|
|
var doNotCallTheseFunctionsEveryTick = ["blowUpEverything"]
|
2020-10-17 04:21:59 +00:00
|
|
|
|
|
|
|
function getStartPoints(){
|
|
|
|
return new Decimal(modInfo.initialStartPoints)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Determines if it should show points/sec
|
|
|
|
function canGenPoints(){
|
2020-10-17 22:18:57 +00:00
|
|
|
return true
|
2020-10-17 04:21:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Calculate points/sec!
|
|
|
|
function getPointGen() {
|
|
|
|
if(!canGenPoints())
|
|
|
|
return new Decimal(0)
|
|
|
|
|
|
|
|
let gain = new Decimal(1)
|
|
|
|
return gain
|
|
|
|
}
|
|
|
|
|
2020-10-17 21:04:38 +00:00
|
|
|
// You can add non-layer related variables that should to into "player" and be saved here, along with default values
|
|
|
|
function addedPlayerData() { return {
|
|
|
|
}}
|
|
|
|
|
|
|
|
// Display extra things at the top of the page
|
|
|
|
var displayThings = [
|
|
|
|
]
|
2020-10-17 04:21:59 +00:00
|
|
|
|
2020-10-17 21:14:32 +00:00
|
|
|
// Determines when the game "ends"
|
|
|
|
function isEndgame() {
|
|
|
|
return player.points.gte(new Decimal("e280000000"))
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-10-17 04:21:59 +00:00
|
|
|
// Less important things beyond this point!
|
|
|
|
|
|
|
|
// You can change this if you have things that can be messed up by long tick lengths
|
|
|
|
function maxTickLength() {
|
|
|
|
return(3600000) // Default is 1 hour which is just arbitrarily large
|
2020-11-29 01:10:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Use this if you need to undo inflation from an older version. If the version is older than the version that fixed the issue,
|
|
|
|
// you can cap their current resources with this.
|
|
|
|
function fixOldSave(oldVersion){
|
2020-10-17 04:21:59 +00:00
|
|
|
}
|