mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-01-19 04:19:30 +08:00
修复编辑器报错
This commit is contained in:
parent
35f166fe9a
commit
25ff6c6462
@ -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魔塔';
|
||||
|
@ -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') {
|
||||
|
@ -2,7 +2,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = {
|
||||
init: function () {
|
||||
// 这看不到插件,插件全放到plugin文件夹里面了,要看的话去 关于游戏 的开源地址里面看
|
||||
// 直接把仓库clone下来,或者下载zip都行
|
||||
// 脚本编辑同理
|
||||
// 脚本编辑同理,一部分在plugin里面
|
||||
this._afterLoadResources = function () {};
|
||||
}
|
||||
};
|
||||
|
6
src/types/core.d.ts
vendored
6
src/types/core.d.ts
vendored
@ -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;
|
||||
|
||||
/**
|
||||
* 全塔属性
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user