diff --git a/public/libs/core.js b/public/libs/core.js index adbac1c..2286098 100644 --- a/public/libs/core.js +++ b/public/libs/core.js @@ -314,12 +314,6 @@ core.prototype._init_flags = function () { core.firstData = core.clone(core.data.firstData); this._init_sys_flags(); - // 让你总是拼错! - window.on = true; - window.off = false; - window.ture = true; - window.flase = false; - core.dom.versionLabel.innerText = core.firstData.version; core.dom.logoLabel.innerText = core.firstData.title; document.title = core.firstData.title + ' - HTML5魔塔'; diff --git a/public/main.js b/public/main.js index de39107..a91a07f 100644 --- a/public/main.js +++ b/public/main.js @@ -321,6 +321,8 @@ main.prototype.init = async function (mode, callback) { core.init(coreData, callback); core.resize(); + main.core = core; + core.plugin = {}; // 加载插件 if (!main.replayChecking && main.mode === 'play') { diff --git a/public/project/plugins.js b/public/project/plugins.js index bcb52fe..4279d2e 100644 --- a/public/project/plugins.js +++ b/public/project/plugins.js @@ -2,7 +2,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = { init: function () { // 这看不到插件,插件全放到plugin文件夹里面了,要看的话去 关于游戏 的开源地址里面看 // 直接把仓库clone下来,或者下载zip都行 - // 脚本编辑同理 + // 脚本编辑同理,一部分在plugin里面 this._afterLoadResources = function () {}; } }; diff --git a/src/types/core.d.ts b/src/types/core.d.ts index 353f2d7..2209235 100644 --- a/src/types/core.d.ts +++ b/src/types/core.d.ts @@ -1427,12 +1427,6 @@ declare let flags: Flags; */ declare let hero: HeroStatus; -// 让你总是拼错!(不过现在有ts了应该拼不错了 -declare const ture: true; -declare const flase: false; -declare const on: true; -declare const off: false; - /** * 全塔属性 */