mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-09-24 00:11:48 +08:00
Compare commits
3 Commits
fedd7b553e
...
a78680a3a4
Author | SHA1 | Date | |
---|---|---|---|
![]() |
a78680a3a4 | ||
351ede3996 | |||
6f199bc6f8 |
@ -4,8 +4,8 @@ import { patchAll } from './fallback';
|
|||||||
import { createGameRenderer, createRender } from './render';
|
import { createGameRenderer, createRender } from './render';
|
||||||
|
|
||||||
export function create() {
|
export function create() {
|
||||||
createAudio();
|
|
||||||
patchAll();
|
patchAll();
|
||||||
|
createAudio();
|
||||||
createRender();
|
createRender();
|
||||||
loading.once('coreInit', () => {
|
loading.once('coreInit', () => {
|
||||||
createGameRenderer();
|
createGameRenderer();
|
||||||
|
@ -1545,7 +1545,7 @@ export function createLayer() {
|
|||||||
|
|
||||||
hook.on('setBlock', (x, y, floor, block) => {
|
hook.on('setBlock', (x, y, floor, block) => {
|
||||||
const isNow = floor === core.status.floorId;
|
const isNow = floor === core.status.floorId;
|
||||||
LayerGroupFloorBinder.activedBinder.forEach(v => {
|
LayerGroupFloorBinder.activeBinder.forEach(v => {
|
||||||
if (floor === v.floor || (isNow && v.bindThisFloor)) {
|
if (floor === v.floor || (isNow && v.bindThisFloor)) {
|
||||||
v.setBlock('event', block, x, y);
|
v.setBlock('event', block, x, y);
|
||||||
}
|
}
|
||||||
@ -1561,7 +1561,7 @@ export function createLayer() {
|
|||||||
hook.on('changingFloor', floor => {
|
hook.on('changingFloor', floor => {
|
||||||
// 潜在隐患:如果putRenderData改成异步,那么会变成两帧后才能真正刷新并渲染
|
// 潜在隐患:如果putRenderData改成异步,那么会变成两帧后才能真正刷新并渲染
|
||||||
// 考虑到楼层转换一般不会同时执行很多次,因此这里改为立刻更新
|
// 考虑到楼层转换一般不会同时执行很多次,因此这里改为立刻更新
|
||||||
LayerGroupFloorBinder.activedBinder.forEach(v => {
|
LayerGroupFloorBinder.activeBinder.forEach(v => {
|
||||||
if (v.bindThisFloor) v.updateBindData();
|
if (v.bindThisFloor) v.updateBindData();
|
||||||
v.emit('floorChange', floor);
|
v.emit('floorChange', floor);
|
||||||
});
|
});
|
||||||
@ -1571,7 +1571,7 @@ export function createLayer() {
|
|||||||
});
|
});
|
||||||
hook.on('setBgFgBlock', (name, number, x, y, floor) => {
|
hook.on('setBgFgBlock', (name, number, x, y, floor) => {
|
||||||
const isNow = floor === core.status.floorId;
|
const isNow = floor === core.status.floorId;
|
||||||
LayerGroupFloorBinder.activedBinder.forEach(v => {
|
LayerGroupFloorBinder.activeBinder.forEach(v => {
|
||||||
if (floor === v.floor || (isNow && v.bindThisFloor)) {
|
if (floor === v.floor || (isNow && v.bindThisFloor)) {
|
||||||
v.setBlock(name, number, x, y);
|
v.setBlock(name, number, x, y);
|
||||||
}
|
}
|
||||||
@ -1612,7 +1612,7 @@ export class LayerGroupFloorBinder
|
|||||||
|
|
||||||
private needUpdate: boolean = false;
|
private needUpdate: boolean = false;
|
||||||
|
|
||||||
static activedBinder: Set<LayerGroupFloorBinder> = new Set();
|
static activeBinder: Set<LayerGroupFloorBinder> = new Set();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 绑定楼层为当前楼层,并跟随变化
|
* 绑定楼层为当前楼层,并跟随变化
|
||||||
@ -1698,7 +1698,7 @@ export class LayerGroupFloorBinder
|
|||||||
for (const layer of group.layers.values()) {
|
for (const layer of group.layers.values()) {
|
||||||
this.checkLayerExtends(layer);
|
this.checkLayerExtends(layer);
|
||||||
}
|
}
|
||||||
LayerGroupFloorBinder.activedBinder.add(this);
|
LayerGroupFloorBinder.activeBinder.add(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
onLayerAdd(_group: LayerGroup, layer: Layer): void {
|
onLayerAdd(_group: LayerGroup, layer: Layer): void {
|
||||||
@ -1706,7 +1706,7 @@ export class LayerGroupFloorBinder
|
|||||||
}
|
}
|
||||||
|
|
||||||
onDestroy(group: LayerGroup) {
|
onDestroy(group: LayerGroup) {
|
||||||
LayerGroupFloorBinder.activedBinder.delete(this);
|
LayerGroupFloorBinder.activeBinder.delete(this);
|
||||||
group.layers.forEach(v => {
|
group.layers.forEach(v => {
|
||||||
v.removeExtends('floor-binder');
|
v.removeExtends('floor-binder');
|
||||||
});
|
});
|
||||||
|
@ -48,6 +48,8 @@ export function createRender() {
|
|||||||
|
|
||||||
export * from './components';
|
export * from './components';
|
||||||
export * from './elements';
|
export * from './elements';
|
||||||
|
export * from './fx';
|
||||||
|
export * from './legacy';
|
||||||
export * from './ui';
|
export * from './ui';
|
||||||
export * from './utils';
|
export * from './utils';
|
||||||
export * from './renderer';
|
export * from './renderer';
|
||||||
|
@ -5,3 +5,5 @@ export function createLegacy() {
|
|||||||
createGameCanvas();
|
createGameCanvas();
|
||||||
createShadow();
|
createShadow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export * from './shadow';
|
||||||
|
@ -182,7 +182,9 @@ export const ReplayingToolbar = defineComponent<ReplayingProps>(props => {
|
|||||||
const speedDown = () => core.speedDownReplay();
|
const speedDown = () => core.speedDownReplay();
|
||||||
const speedUp = () => core.speedUpReplay();
|
const speedUp = () => core.speedUpReplay();
|
||||||
const book = () => core.openBook(true);
|
const book = () => core.openBook(true);
|
||||||
const save = () => core.save(true);
|
const save = () => {
|
||||||
|
saveSave(mainUIController, [0, 0, MAIN_WIDTH, MAIN_HEIGHT]);
|
||||||
|
};
|
||||||
const view = () => {
|
const view = () => {
|
||||||
if (core.isPlaying() && !core.isMoving() && !core.status.lockControl) {
|
if (core.isPlaying() && !core.isMoving() && !core.status.lockControl) {
|
||||||
core.ui._drawViewMaps();
|
core.ui._drawViewMaps();
|
||||||
|
@ -242,8 +242,9 @@ export function canUpgrade(skill: number) {
|
|||||||
if (consume > core.status.hero.mdef) return false;
|
if (consume > core.status.hero.mdef) return false;
|
||||||
const level = getSkillLevel(skill);
|
const level = getSkillLevel(skill);
|
||||||
const s = getSkillFromIndex(skill);
|
const s = getSkillFromIndex(skill);
|
||||||
if (level === s?.max) return false;
|
if (!s) return false;
|
||||||
const front = s?.front ?? [];
|
if (level >= s.max) return false;
|
||||||
|
const front = s.front;
|
||||||
for (const [skill, level] of front) {
|
for (const [skill, level] of front) {
|
||||||
if (getSkillLevel(skill) < level) return false;
|
if (getSkillLevel(skill) < level) return false;
|
||||||
}
|
}
|
||||||
|
@ -56,9 +56,11 @@ export {};
|
|||||||
core.status.maps[data].enemy?.calRealAttribute();
|
core.status.maps[data].enemy?.calRealAttribute();
|
||||||
core.updateStatusBar(true, true);
|
core.updateStatusBar(true, true);
|
||||||
}
|
}
|
||||||
Mota.require('@motajs/legacy-ui').Shadow.update(true);
|
Mota.require('@user/client-modules').Shadow.update(true);
|
||||||
const Binder = Mota.require('@motajs/render').LayerGroupFloorBinder;
|
const Binder = Mota.require(
|
||||||
Binder.activedBinder.forEach(v => {
|
'@user/client-modules'
|
||||||
|
).LayerGroupFloorBinder;
|
||||||
|
Binder.activeBinder.forEach(v => {
|
||||||
if (v.getFloor() === core.status.floorId) {
|
if (v.getFloor() === core.status.floorId) {
|
||||||
v.updateBindData();
|
v.updateBindData();
|
||||||
}
|
}
|
||||||
|
@ -62,10 +62,15 @@ export function initReplay() {
|
|||||||
core.registerReplayAction('upgradeSkill', name => {
|
core.registerReplayAction('upgradeSkill', name => {
|
||||||
if (!name.startsWith('skill:')) return false;
|
if (!name.startsWith('skill:')) return false;
|
||||||
const skill = parseInt(name.slice(6));
|
const skill = parseInt(name.slice(6));
|
||||||
upgradeSkill(skill);
|
const success = upgradeSkill(skill);
|
||||||
const s = getSkillFromIndex(skill);
|
const s = getSkillFromIndex(skill);
|
||||||
const skillName = s?.title;
|
const skillName = s?.title;
|
||||||
core.status.route.push(name);
|
core.status.route.push(name);
|
||||||
|
if (!success) {
|
||||||
|
const { tip } = Mota.require('@motajs/legacy-ui');
|
||||||
|
tip('error', `升级技能:${skillName}失败`);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
tipAndWait(`升级技能:${skillName}`, 1000).then(() => {
|
tipAndWait(`升级技能:${skillName}`, 1000).then(() => {
|
||||||
core.replay();
|
core.replay();
|
||||||
});
|
});
|
||||||
|
@ -2,9 +2,7 @@
|
|||||||
"normal": [
|
"normal": [
|
||||||
{
|
{
|
||||||
"name": "虚惊一场",
|
"name": "虚惊一场",
|
||||||
"text": [
|
"text": ["打完山洞门口的兽人后只剩一滴血"],
|
||||||
"打完山洞门口的兽人后只剩一滴血"
|
|
||||||
],
|
|
||||||
"point": 30
|
"point": 30
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -18,44 +16,34 @@
|
|||||||
"challenge": [
|
"challenge": [
|
||||||
{
|
{
|
||||||
"name": "逃出生天",
|
"name": "逃出生天",
|
||||||
"text": [
|
"text": ["通过山路追逐战的困难难度"],
|
||||||
"通过山路追逐战的困难难度"
|
|
||||||
],
|
|
||||||
"point": 20
|
"point": 20
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "冰与火之舞",
|
"name": "冰与火之舞",
|
||||||
"text": [
|
"text": ["完成第二章音游特殊战的困难难度"],
|
||||||
"完成第二章音游特殊战的困难难度"
|
|
||||||
],
|
|
||||||
"point": 50
|
"point": 50
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"explore": [
|
"explore": [
|
||||||
{
|
{
|
||||||
"name": "勇气巅峰",
|
"name": "勇气巅峰",
|
||||||
"text": [
|
"text": ["第一章完成度达到100%"],
|
||||||
"第一章完成度达到100%"
|
"progress": "${Mota.require('completion_r').getChapterCompletion(1)} / 100",
|
||||||
],
|
|
||||||
"progress": "${Mota.Plugin.require('completion_r').getChapterCompletion(1)} / 100",
|
|
||||||
"percent": true,
|
"percent": true,
|
||||||
"point": 50
|
"point": 50
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "你是怎么办到的?!",
|
"name": "你是怎么办到的?!",
|
||||||
"text": [
|
"text": ["与山路上的若干个神秘木牌对话"],
|
||||||
"与山路上的若干个神秘木牌对话"
|
|
||||||
],
|
|
||||||
"progress": "${core.getLocalStorage('mountSign', 0)} / 5",
|
"progress": "${core.getLocalStorage('mountSign', 0)} / 5",
|
||||||
"hide": "该探索成就需要你自己探索如何达成",
|
"hide": "该探索成就需要你自己探索如何达成",
|
||||||
"point": 25
|
"point": 25
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "智慧之心",
|
"name": "智慧之心",
|
||||||
"text": [
|
"text": ["第二章完成度达到100%"],
|
||||||
"第二章完成度达到100%"
|
"progress": "${Mota.require('completion_r').getChapterCompletion(2)} / 100",
|
||||||
],
|
|
||||||
"progress": "${Mota.Plugin.require('completion_r').getChapterCompletion(2)} / 100",
|
|
||||||
"percent": true,
|
"percent": true,
|
||||||
"point": 50
|
"point": 50
|
||||||
},
|
},
|
||||||
@ -69,17 +57,13 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "学坏了",
|
"name": "学坏了",
|
||||||
"text": [
|
"text": ["学习电摇嘲讽技能"],
|
||||||
"学习电摇嘲讽技能"
|
|
||||||
],
|
|
||||||
"hide": "该探索成就需要你自己探索如何达成",
|
"hide": "该探索成就需要你自己探索如何达成",
|
||||||
"point": 20
|
"point": 20
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "满腹经纶",
|
"name": "满腹经纶",
|
||||||
"text": [
|
"text": ["把第二章中所有能学习的技能都学一遍"],
|
||||||
"把第二章中所有能学习的技能都学一遍"
|
|
||||||
],
|
|
||||||
"hide": "该探索成就需要你自己探索如何达成",
|
"hide": "该探索成就需要你自己探索如何达成",
|
||||||
"progress": "",
|
"progress": "",
|
||||||
"point": 50
|
"point": 50
|
||||||
|
@ -241,10 +241,12 @@ actions.prototype._sys_onkeyUp_replay = function (e) {
|
|||||||
else if (e.keyCode == 65)
|
else if (e.keyCode == 65)
|
||||||
// A
|
// A
|
||||||
core.rewindReplay();
|
core.rewindReplay();
|
||||||
else if (e.keyCode == 83)
|
else if (e.keyCode == 83) {
|
||||||
// S
|
// S
|
||||||
core.control._replay_SL();
|
const { saveSave, mainUIController, MAIN_WIDTH, MAIN_HEIGHT } =
|
||||||
else if (e.keyCode == 88)
|
Mota.require('@user/client-modules');
|
||||||
|
saveSave(mainUIController, [0, 0, MAIN_WIDTH, MAIN_HEIGHT]);
|
||||||
|
} else if (e.keyCode == 88)
|
||||||
// X
|
// X
|
||||||
core.control._replay_book();
|
core.control._replay_book();
|
||||||
else if (e.keyCode == 33 || e.keyCode == 34)
|
else if (e.keyCode == 33 || e.keyCode == 34)
|
||||||
|
@ -1275,10 +1275,6 @@ control.prototype.startReplay = function (list) {
|
|||||||
core.setOpacity('replay', 0.6);
|
core.setOpacity('replay', 0.6);
|
||||||
this._replay_drawProgress();
|
this._replay_drawProgress();
|
||||||
core.updateStatusBar(false, true);
|
core.updateStatusBar(false, true);
|
||||||
// Mota.Plugin.require('utils_r').tip(
|
|
||||||
// 'warn',
|
|
||||||
// '由于不可抗力,录像播放过程中将没有勇士移动动画'
|
|
||||||
// );
|
|
||||||
Mota.require('@user/data-base').hook.emit('replayStatus', false);
|
Mota.require('@user/data-base').hook.emit('replayStatus', false);
|
||||||
this.replay();
|
this.replay();
|
||||||
};
|
};
|
||||||
|
@ -39,7 +39,7 @@ main.floors.MT12=
|
|||||||
"手机端可以点击右下角的难度来切换下方工具栏至数字键",
|
"手机端可以点击右下角的难度来切换下方工具栏至数字键",
|
||||||
{
|
{
|
||||||
"type": "function",
|
"type": "function",
|
||||||
"function": "function(){\nconst HeroSkill = Mota.require('@user/data-state').Mechanism.HeroSkill;\nHeroSkill.learnSkill(HeroSkill.Jump);\n}"
|
"function": "function(){\nconst HeroSkill = Mota.require('@user/data-state').HeroSkill;\nHeroSkill.learnSkill(HeroSkill.Jump);\n}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "hide",
|
"type": "hide",
|
||||||
|
@ -70,7 +70,7 @@ main.floors.MT16=
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "function",
|
"type": "function",
|
||||||
"function": "function(){\ncore.status.maps.MT14.canFlyFrom = false;\nMota.Plugin.require('chase_g').chaseInit1();\n}"
|
"function": "function(){\ncore.status.maps.MT14.canFlyFrom = false;\nMota.require('chase_g').chaseInit1();\n}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "show",
|
"type": "show",
|
||||||
@ -89,7 +89,7 @@ main.floors.MT16=
|
|||||||
"no": [
|
"no": [
|
||||||
{
|
{
|
||||||
"type": "function",
|
"type": "function",
|
||||||
"function": "function(){\nMota.Plugin.require('replay_g').readyClip();\n}"
|
"function": "function(){\nMota.require('replay_g').readyClip();\n}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "choices",
|
"type": "choices",
|
||||||
@ -400,7 +400,7 @@ main.floors.MT16=
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "function",
|
"type": "function",
|
||||||
"function": "function(){\nMota.Plugin.require('chase_r').start(false);\n}"
|
"function": "function(){\nMota.require('chase_r').start(false);\n}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "autoSave"
|
"type": "autoSave"
|
||||||
|
@ -56,7 +56,7 @@ main.floors.MT17=
|
|||||||
"12,6": [
|
"12,6": [
|
||||||
{
|
{
|
||||||
"type": "function",
|
"type": "function",
|
||||||
"function": "function(){\nif (core.status.hero.hp - flags.hphphp >= 150000) {\n\tMota.Plugin.require('achievement_r').completeAchievement('normal', 1);\n}\ndelete flags.hphphp;\n}"
|
"function": "function(){\nif (core.status.hero.hp - flags.hphphp >= 150000) {\n\tMota.require('achievement_r').completeAchievement('normal', 1);\n}\ndelete flags.hphphp;\n}"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -157,7 +157,7 @@ main.floors.MT21=
|
|||||||
"\t[低级智人]\b[up,hero]或许智慧结晶会告诉我答案吧。",
|
"\t[低级智人]\b[up,hero]或许智慧结晶会告诉我答案吧。",
|
||||||
{
|
{
|
||||||
"type": "function",
|
"type": "function",
|
||||||
"function": "function(){\nif (!core.isReplaying()) Mota.require('@motajs/legacy-ui').fixedUi.open('chapter', { chapter: '第二章 智慧' });\nMota.Plugin.require('removeMap_g').removeMaps('tower1', 'tower7', true);\ndelete flags.tower1;\ndelete flags.wordsTimeOut;\ndelete flags.boom;\ndelete flags.booming;\n}"
|
"function": "function(){\nif (!core.isReplaying()) Mota.require('@motajs/legacy-ui').fixedUi.open('chapter', { chapter: '第二章 智慧' });\nMota.require('removeMap_g').removeMaps('tower1', 'tower7', true);\ndelete flags.tower1;\ndelete flags.wordsTimeOut;\ndelete flags.boom;\ndelete flags.booming;\n}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "setValue",
|
"type": "setValue",
|
||||||
|
@ -16,7 +16,7 @@ main.floors.MT32=
|
|||||||
"firstArrive": [
|
"firstArrive": [
|
||||||
{
|
{
|
||||||
"type": "function",
|
"type": "function",
|
||||||
"function": "function(){\nMota.Plugin.require('removeMap_g').removeMaps('MT17', 'MT21', true)\n}"
|
"function": "function(){\nMota.require('removeMap_g').removeMaps('MT17', 'MT21', true)\n}"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"eachArrive": [],
|
"eachArrive": [],
|
||||||
|
@ -101,7 +101,7 @@ main.floors.MT35=
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "function",
|
"type": "function",
|
||||||
"function": "function(){\nMota.Plugin.require('removeMap_g').removeMaps('MT22', 'MT31', true);\n}"
|
"function": "function(){\nMota.require('removeMap_g').removeMaps('MT22', 'MT31', true);\n}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "changeFloor",
|
"type": "changeFloor",
|
||||||
|
@ -70,7 +70,7 @@ main.floors.MT41=
|
|||||||
"那我就送你回到标题界面吧!",
|
"那我就送你回到标题界面吧!",
|
||||||
{
|
{
|
||||||
"type": "function",
|
"type": "function",
|
||||||
"function": "function(){\nMota.Plugin.require('achievement_r').completeAchievement('explore', 0);\n}"
|
"function": "function(){\nMota.require('achievement_r').completeAchievement('explore', 0);\n}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "restart"
|
"type": "restart"
|
||||||
|
@ -124,7 +124,7 @@ main.floors.MT6=
|
|||||||
"4,12": [
|
"4,12": [
|
||||||
{
|
{
|
||||||
"type": "function",
|
"type": "function",
|
||||||
"function": "function(){\nif (core.status.hero.hp === 1) {\n\tMota.Plugin.require('achievement_r').completeAchievement('normal', 0);\n}\n}"
|
"function": "function(){\nif (core.status.hero.hp === 1) {\n\tMota.require('achievement_r').completeAchievement('normal', 0);\n}\n}"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -123,7 +123,7 @@ main.floors.tower7=
|
|||||||
"下面,就让我们开始吧!",
|
"下面,就让我们开始吧!",
|
||||||
{
|
{
|
||||||
"type": "function",
|
"type": "function",
|
||||||
"function": "function(){\nMota.Plugin.require('replay_g').readyClip();\n}"
|
"function": "function(){\nMota.require('replay_g').readyClip();\n}"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -168,7 +168,7 @@ main.floors.tower7=
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "function",
|
"type": "function",
|
||||||
"function": "function(){\nMota.Plugin.require('boss_r').startTowerBoss();\n}"
|
"function": "function(){\nMota.require('boss_r').startTowerBoss();\n}"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"eachArrive": [],
|
"eachArrive": [],
|
||||||
|
@ -218,7 +218,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// if (!flags.debug && !main.replayChecking)
|
// if (!flags.debug && !main.replayChecking)
|
||||||
// Mota.Plugin.require('completion_r').checkVisitedFloor();
|
// Mota.require('completion_r').checkVisitedFloor();
|
||||||
Mota.require('@user/data-base').hook.emit(
|
Mota.require('@user/data-base').hook.emit(
|
||||||
'afterChangeFloor',
|
'afterChangeFloor',
|
||||||
floorId
|
floorId
|
||||||
|
@ -40,8 +40,8 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a =
|
|||||||
"cls": "items",
|
"cls": "items",
|
||||||
"name": "小绿宝石",
|
"name": "小绿宝石",
|
||||||
"text": ",护盾+${core.values.greenGem}",
|
"text": ",护盾+${core.values.greenGem}",
|
||||||
"itemEffect": "core.status.hero.mdef += Math.round(20 * core.status.thisMap.ratio / (core.getFlag(\"hard\") + 1) * (Mota.require('@user/data-state').getSkillLevel(12) / 20 + 1))",
|
"itemEffect": "core.status.hero.mdef += Math.round(20 * core.status.thisMap.ratio / (core.getFlag('hard')) * (Mota.require('@user/data-state').getSkillLevel(12) / 20 + 1))",
|
||||||
"itemEffectTip": ",智慧+${Math.round(20 * core.status.thisMap.ratio / (core.getFlag(\"hard\") + 1) * (Mota.require('@user/data-state').getSkillLevel(12) / 20 + 1))}",
|
"itemEffectTip": ",智慧+${Math.round(20 * core.status.thisMap.ratio / (core.getFlag('hard')) * (Mota.require('@user/data-state').getSkillLevel(12) / 20 + 1))}",
|
||||||
"useItemEffect": "core.status.hero.mdef += core.values.greenGem",
|
"useItemEffect": "core.status.hero.mdef += core.values.greenGem",
|
||||||
"canUseItemEffect": "true"
|
"canUseItemEffect": "true"
|
||||||
},
|
},
|
||||||
@ -626,8 +626,8 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a =
|
|||||||
"cls": "items",
|
"cls": "items",
|
||||||
"name": "中绿宝石",
|
"name": "中绿宝石",
|
||||||
"text": ",护盾+${core.values.greenGem}",
|
"text": ",护盾+${core.values.greenGem}",
|
||||||
"itemEffect": "core.status.hero.mdef += Math.round(40 * core.status.thisMap.ratio / (core.getFlag(\"hard\") + 1) * (Mota.require('@user/data-state').getSkillLevel(12) / 20 + 1))",
|
"itemEffect": "core.status.hero.mdef += Math.round(40 * core.status.thisMap.ratio / (core.getFlag('hard')) * (Mota.require('@user/data-state').getSkillLevel(12) / 20 + 1))",
|
||||||
"itemEffectTip": ",智慧+${Math.round(40 * core.status.thisMap.ratio / (core.getFlag(\"hard\") + 1) * (Mota.require('@user/data-state').getSkillLevel(12) / 20 + 1))}",
|
"itemEffectTip": ",智慧+${Math.round(40 * core.status.thisMap.ratio / (core.getFlag('hard')) * (Mota.require('@user/data-state').getSkillLevel(12) / 20 + 1))}",
|
||||||
"useItemEffect": "core.status.hero.mdef += core.values.greenGem",
|
"useItemEffect": "core.status.hero.mdef += core.values.greenGem",
|
||||||
"canUseItemEffect": "true"
|
"canUseItemEffect": "true"
|
||||||
},
|
},
|
||||||
@ -729,8 +729,8 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a =
|
|||||||
"cls": "items",
|
"cls": "items",
|
||||||
"name": "大绿宝石",
|
"name": "大绿宝石",
|
||||||
"text": ",护盾+${core.values.greenGem}",
|
"text": ",护盾+${core.values.greenGem}",
|
||||||
"itemEffect": "core.status.hero.mdef += Math.round(80 * core.status.thisMap.ratio / (core.getFlag(\"hard\") + 1) * (Mota.require('@user/data-state').getSkillLevel(12) / 20 + 1))",
|
"itemEffect": "core.status.hero.mdef += Math.round(80 * core.status.thisMap.ratio / (core.getFlag('hard')) * (Mota.require('@user/data-state').getSkillLevel(12) / 20 + 1))",
|
||||||
"itemEffectTip": ",智慧+${Math.round(80 * core.status.thisMap.ratio / (core.getFlag(\"hard\") + 1) * (Mota.require('@user/data-state').getSkillLevel(12) / 20 + 1))}",
|
"itemEffectTip": ",智慧+${Math.round(80 * core.status.thisMap.ratio / (core.getFlag('hard')) * (Mota.require('@user/data-state').getSkillLevel(12) / 20 + 1))}",
|
||||||
"useItemEffect": "core.status.hero.mdef += core.values.greenGem",
|
"useItemEffect": "core.status.hero.mdef += core.values.greenGem",
|
||||||
"canUseItemEffect": "true"
|
"canUseItemEffect": "true"
|
||||||
},
|
},
|
||||||
@ -896,8 +896,8 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a =
|
|||||||
"cls": "items",
|
"cls": "items",
|
||||||
"name": "超大绿宝石",
|
"name": "超大绿宝石",
|
||||||
"text": ",护盾+${core.values.greenGem}",
|
"text": ",护盾+${core.values.greenGem}",
|
||||||
"itemEffect": "core.status.hero.mdef += Math.round(160 * core.status.thisMap.ratio / (core.getFlag(\"hard\") + 1) * (Mota.require('@user/data-state').getSkillLevel(12) / 20 + 1))",
|
"itemEffect": "core.status.hero.mdef += Math.round(160 * core.status.thisMap.ratio / (core.getFlag('hard')) * (Mota.require('@user/data-state').getSkillLevel(12) / 20 + 1))",
|
||||||
"itemEffectTip": ",智慧+${Math.round(160 * core.status.thisMap.ratio / (core.getFlag(\"hard\") + 1) * (Mota.require('@user/data-state').getSkillLevel(12) / 20 + 1))}",
|
"itemEffectTip": ",智慧+${Math.round(160 * core.status.thisMap.ratio / (core.getFlag('hard')) * (Mota.require('@user/data-state').getSkillLevel(12) / 20 + 1))}",
|
||||||
"useItemEffect": "core.status.hero.mdef += core.values.greenGem",
|
"useItemEffect": "core.status.hero.mdef += core.values.greenGem",
|
||||||
"canUseItemEffect": "true"
|
"canUseItemEffect": "true"
|
||||||
},
|
},
|
||||||
@ -1019,8 +1019,8 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a =
|
|||||||
"cls": "items",
|
"cls": "items",
|
||||||
"name": "璀璨绿宝石",
|
"name": "璀璨绿宝石",
|
||||||
"text": ",护盾+${core.values.greenGem}",
|
"text": ",护盾+${core.values.greenGem}",
|
||||||
"itemEffect": "core.status.hero.mdef += Math.round(320 * core.status.thisMap.ratio / (core.getFlag(\"hard\") + 1) * (Mota.require('@user/data-state').getSkillLevel(12) / 20 + 1))",
|
"itemEffect": "core.status.hero.mdef += Math.round(320 * core.status.thisMap.ratio / (core.getFlag('hard')) * (Mota.require('@user/data-state').getSkillLevel(12) / 20 + 1))",
|
||||||
"itemEffectTip": ",智慧+${Math.round(320 * core.status.thisMap.ratio / (core.getFlag(\"hard\") + 1) * (Mota.require('@user/data-state').getSkillLevel(12) / 20 + 1))}",
|
"itemEffectTip": ",智慧+${Math.round(320 * core.status.thisMap.ratio / (core.getFlag('hard')) * (Mota.require('@user/data-state').getSkillLevel(12) / 20 + 1))}",
|
||||||
"useItemEffect": "core.status.hero.mdef += core.values.greenGem",
|
"useItemEffect": "core.status.hero.mdef += core.values.greenGem",
|
||||||
"canUseItemEffect": "true"
|
"canUseItemEffect": "true"
|
||||||
},
|
},
|
||||||
@ -1050,8 +1050,8 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a =
|
|||||||
"cls": "items",
|
"cls": "items",
|
||||||
"name": "传奇绿宝石",
|
"name": "传奇绿宝石",
|
||||||
"text": ",防御+${core.values.blueGem}",
|
"text": ",防御+${core.values.blueGem}",
|
||||||
"itemEffect": "core.status.hero.mdef += Math.round(640 * core.status.thisMap.ratio / (core.getFlag(\"hard\") + 1) * (Mota.require('@user/data-state').getSkillLevel(12) / 20 + 1))",
|
"itemEffect": "core.status.hero.mdef += Math.round(640 * core.status.thisMap.ratio / (core.getFlag('hard')) * (Mota.require('@user/data-state').getSkillLevel(12) / 20 + 1))",
|
||||||
"itemEffectTip": ",智慧+${Math.round(640 * core.status.thisMap.ratio / (core.getFlag(\"hard\") + 1) * (Mota.require('@user/data-state').getSkillLevel(12) / 20 + 1))}",
|
"itemEffectTip": ",智慧+${Math.round(640 * core.status.thisMap.ratio / (core.getFlag('hard')) * (Mota.require('@user/data-state').getSkillLevel(12) / 20 + 1))}",
|
||||||
"useItemEffect": "core.status.hero.def += core.values.blueGem",
|
"useItemEffect": "core.status.hero.def += core.values.blueGem",
|
||||||
"canUseItemEffect": "true"
|
"canUseItemEffect": "true"
|
||||||
},
|
},
|
||||||
@ -1071,8 +1071,8 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a =
|
|||||||
"cls": "items",
|
"cls": "items",
|
||||||
"name": "史诗绿宝石",
|
"name": "史诗绿宝石",
|
||||||
"text": ",护盾+${core.values.greenGem}",
|
"text": ",护盾+${core.values.greenGem}",
|
||||||
"itemEffect": "core.status.hero.mdef += Math.round(1280 * core.status.thisMap.ratio / (core.getFlag(\"hard\") + 1) * (Mota.require('@user/data-state').getSkillLevel(12) / 20 + 1))",
|
"itemEffect": "core.status.hero.mdef += Math.round(1280 * core.status.thisMap.ratio / (core.getFlag('hard')) * (Mota.require('@user/data-state').getSkillLevel(12) / 20 + 1))",
|
||||||
"itemEffectTip": ",智慧+${Math.round(1280 * core.status.thisMap.ratio / (core.getFlag(\"hard\") + 1) * (Mota.require('@user/data-state').getSkillLevel(12) / 20 + 1))}",
|
"itemEffectTip": ",智慧+${Math.round(1280 * core.status.thisMap.ratio / (core.getFlag('hard')) * (Mota.require('@user/data-state').getSkillLevel(12) / 20 + 1))}",
|
||||||
"useItemEffect": "core.status.hero.mdef += core.values.greenGem",
|
"useItemEffect": "core.status.hero.mdef += core.values.greenGem",
|
||||||
"canUseItemEffect": "true"
|
"canUseItemEffect": "true"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user