Profectus-Demo/src/data/mod.js

50 lines
1,022 B
JavaScript
Raw Normal View History

// Import Decimal and numberUtils from a different file to globally change which big num library gets used
import Decimal, * as numberUtils from '../util/break_eternity.js';
2021-05-22 15:29:06 -05:00
const modInfo = {
// General Info
title: "The Modding Tree X",
id: "tmt-x",
author: "thepaperpilot",
2021-05-22 15:29:06 -05:00
discordName: "TMT-X",
discordLink: "https://discord.gg/WzejVAx",
// Gameplay Options
getStartingData() {
return {
points: new Decimal(10),
}
},
hasWon() {
return false;
},
2021-05-22 15:29:06 -05:00
update(delta) {
let gain = new Decimal(1);
// TODO add gain to player.deltas
gain.times(delta);
},
// Version
versionNumber: "0.0",
versionTitle: "Initial Commit",
// UI options
allowSmall: false,
2021-05-22 15:29:06 -05:00
defaultDecimalsShown: 2,
useHeader: false,
banner: null,
logo: null,
initialTabs: ["tree-tab", "info-tab", "dummy"],
// Advanced Options
/* eslint-disable-next-line no-unused-vars */
fixOldSave(oldVersion) {
},
bigNum: { Decimal, ...numberUtils },
maxTickLength: 3600
};
2021-05-22 15:29:06 -05:00
document.title = modInfo.title;
export default modInfo;