删除无用函数

This commit is contained in:
unanmed 2023-02-26 20:03:21 +08:00
parent f2c4cdee70
commit 21cf5412f8
7 changed files with 8 additions and 33 deletions

View File

@ -3127,11 +3127,6 @@ control.prototype.getBuff = function (name) {
return core.getFlag('__' + name + '_buff__', 1);
};
////// 获得或移除毒衰咒效果 //////
control.prototype.triggerDebuff = function (action, type) {
return this.controldata.triggerDebuff(action, type);
};
////// 设置勇士的位置 //////
control.prototype.setHeroLoc = function (name, value, noGather) {
if (!core.status.hero) return;

View File

@ -36,7 +36,7 @@ main.floors.MT43=
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 94],
[70030, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,584],
[70030,584,584,584,584,584, 0, 0, 0, 0, 0, 0, 0, 0,584],
[70030, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,584],
[70030, 0, 0, 0, 0, 0, 0, 0, 0, 0,584,584,584, 0,584],
[70030, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,584],
[584,584,584,584,584, 0, 0, 0, 0, 0,584,584,584,584,584],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],

View File

@ -1415,12 +1415,6 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = {
}[name] || name
);
},
triggerDebuff: function (action, type) {
// 毒衰咒效果的获得与解除
// action获得还是解除'get'表示获得,'remove'表示解除
// type一个数组表示获得了哪些毒衰咒效果poison, weakcurse
if (!(type instanceof Array)) type = [type];
},
updateStatusBar: function () {
// 更新状态栏

View File

@ -439,28 +439,28 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a =
"cls": "tools",
"name": "解毒药水",
"text": "可以解除中毒状态",
"useItemEffect": "core.triggerDebuff('remove', 'poison');",
"useItemEffect": "",
"canUseItemEffect": "core.hasFlag('poison');"
},
"weakWine": {
"cls": "tools",
"name": "解衰药水",
"text": "可以解除衰弱状态",
"useItemEffect": "core.triggerDebuff('remove', 'weak');",
"useItemEffect": "",
"canUseItemEffect": "core.hasFlag('weak');"
},
"curseWine": {
"cls": "tools",
"name": "解咒药水",
"text": "可以解除诅咒状态",
"useItemEffect": "core.triggerDebuff('remove', 'curse');",
"useItemEffect": "",
"canUseItemEffect": "core.hasFlag('curse');"
},
"superWine": {
"cls": "tools",
"name": "万能药水",
"text": "可以解除所有不良状态",
"useItemEffect": "core.triggerDebuff('remove', ['poison', 'weak', 'curse']);",
"useItemEffect": "",
"canUseItemEffect": "(function() {\n\treturn core.hasFlag('poison') || core.hasFlag('weak') || core.hasFlag('curse');\n})();"
},
"hammer": {

View File

@ -11,9 +11,9 @@ var maps_90f36752_8815_4be8_b32b_d7fad1d0542e =
"9": {"cls":"terrains","id":"pinkShopLeft"},
"10": {"cls":"terrains","id":"pinkShopRight"},
"11": {"cls":"animates","id":"lavaNet","canPass":true,"trigger":"null","script":"(function () {\n\t// 血网的伤害效果移动到 checkBlock 中处理\n\n\t// 如果要做一次性血网,可直接注释掉下面这句话:\n\t// core.removeBlock(core.getHeroLoc('x'), core.getHeroLoc('y'));\n})();","name":"血网"},
"12": {"cls":"animates","id":"poisonNet","canPass":true,"trigger":"null","script":"(function () {\n\tif (!core.hasItem('amulet')) {\n\t\tcore.triggerDebuff('get', 'poison');\n\t\tcore.updateStatusBar();\n\t}\n\n\t// 如果要做一次性毒网,可直接注释掉下面这句话:\n\t// core.removeBlock(core.getHeroLoc('x'), core.getHeroLoc('y'));\n})()","name":"毒网"},
"13": {"cls":"animates","id":"weakNet","canPass":true,"trigger":"null","script":"(function () {\n\tif (!core.hasItem('amulet')) {\n\t\tcore.triggerDebuff('get', 'weak');\n\t\tcore.updateStatusBar();\n\t}\n\n\t// 如果要做一次性衰网,可直接注释掉下面这句话:\n\t// core.removeBlock(core.getHeroLoc('x'), core.getHeroLoc('y'));\n})()","name":"衰网"},
"14": {"cls":"animates","id":"curseNet","canPass":true,"trigger":"null","script":"(function () {\n\tif (!core.hasItem('amulet')) {\n\t\tcore.triggerDebuff('get', 'curse');\n\t\tcore.updateStatusBar();\n\t}\n\n\t// 如果要做一次性咒网,可直接注释掉下面这句话:\n\t// core.removeBlock(core.getHeroLoc('x'), core.getHeroLoc('y'));\n})()","name":"咒网"},
"12": {"cls":"animates","id":"poisonNet","canPass":true,"trigger":"null","script":"","name":"毒网"},
"13": {"cls":"animates","id":"weakNet","canPass":true,"trigger":"null","script":"","name":"衰网"},
"14": {"cls":"animates","id":"curseNet","canPass":true,"trigger":"null","script":"","name":"咒网"},
"15": {"cls":"animates","id":"blueWater"},
"16": {"cls":"animates","id":"water"},
"20": {"cls":"autotile","id":"autotile"},

View File

@ -734,13 +734,6 @@ interface Control {
*/
getBuff(name: keyof NumbericHeroStatus): number;
/**
* debuff
* @param action get表示获得debuffremove表示移除debuff
* @param type debuff列表
*/
triggerDebuff(action: string, type: string | string[]): void;
/**
*
* 使使

View File

@ -26,13 +26,6 @@ interface ControlData {
*/
getStatusLabel(name: string): string;
/**
* debuff
* @param action get表示获得debuffremove表示移除debuff
* @param type debuff列表
*/
triggerDebuff(action: 'get' | 'remove', type: string | string[]): void;
/**
*
*/