mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-11-22 00:21:32 +00:00
60 lines
No EOL
1.5 KiB
JavaScript
60 lines
No EOL
1.5 KiB
JavaScript
let modInfo = {
|
|
name: "The ??? Tree",
|
|
id: "mymod",
|
|
pointsName: "points",
|
|
discordName: "",
|
|
discordLink: "",
|
|
changelogLink: "https://github.com/Acamaeda/The-Modding-Tree/blob/master/changelog.md",
|
|
offlineLimit: 1, // In hours
|
|
initialStartPoints: new Decimal (10) // Used for hard resets and new players
|
|
}
|
|
|
|
// Set your version in num and name
|
|
let VERSION = {
|
|
num: "0.0",
|
|
name: "Literally nothing",
|
|
}
|
|
|
|
// 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)
|
|
var doNotCallTheseFunctionsEveryTick = ["blowUpEverything"]
|
|
|
|
function getStartPoints(){
|
|
return new Decimal(modInfo.initialStartPoints)
|
|
}
|
|
|
|
// Determines if it should show points/sec
|
|
function canGenPoints(){
|
|
return true
|
|
}
|
|
|
|
// Calculate points/sec!
|
|
function getPointGen() {
|
|
if(!canGenPoints())
|
|
return new Decimal(0)
|
|
|
|
let gain = new Decimal(1)
|
|
return gain
|
|
}
|
|
|
|
// 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 = [
|
|
]
|
|
|
|
// Determines when the game "ends"
|
|
function isEndgame() {
|
|
return player.points.gte(new Decimal("e280000000"))
|
|
}
|
|
|
|
|
|
|
|
// 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
|
|
} |