mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-03-01 18:17:05 +08:00
fix: skillTree & 序章提交成绩
This commit is contained in:
parent
e7b4d4cd74
commit
99402b33d8
@ -18,17 +18,6 @@ main.floors.MT5=
|
|||||||
"parallelDo": "",
|
"parallelDo": "",
|
||||||
"events": {
|
"events": {
|
||||||
"14,7": [
|
"14,7": [
|
||||||
{
|
|
||||||
"type": "confirm",
|
|
||||||
"text": "是否提交序章成绩?",
|
|
||||||
"yes": [
|
|
||||||
{
|
|
||||||
"type": "win",
|
|
||||||
"reason": "踏上旅途"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"no": []
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"type": "if",
|
"type": "if",
|
||||||
"condition": "(flag:cave==1)",
|
"condition": "(flag:cave==1)",
|
||||||
@ -49,6 +38,20 @@ main.floors.MT5=
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"false": [
|
"false": [
|
||||||
|
{
|
||||||
|
"type": "confirm",
|
||||||
|
"text": "是否提交序章成绩?",
|
||||||
|
"yes": [
|
||||||
|
{
|
||||||
|
"type": "win",
|
||||||
|
"reason": "踏上旅途"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "exit"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"no": []
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "setCurtain",
|
"type": "setCurtain",
|
||||||
"color": [
|
"color": [
|
||||||
|
@ -221,7 +221,8 @@ export function getSkillFromIndex(index: number) {
|
|||||||
* 获取技能等级
|
* 获取技能等级
|
||||||
*/
|
*/
|
||||||
export function getSkillLevel(skill: number) {
|
export function getSkillLevel(skill: number) {
|
||||||
return levels[skill] ?? 0;
|
levels[skill] ??= 0;
|
||||||
|
return levels[skill];
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getSkillConsume(skill: number) {
|
export function getSkillConsume(skill: number) {
|
||||||
|
@ -23,7 +23,9 @@ export function getAddStatus(equip: Equip) {
|
|||||||
{keys.map(v => {
|
{keys.map(v => {
|
||||||
const value = Math.floor(
|
const value = Math.floor(
|
||||||
(equip.value[v] ?? 0) * core.getBuff(v) +
|
(equip.value[v] ?? 0) * core.getBuff(v) +
|
||||||
(core.status.hero[v] * (equip.percentage[v] ?? 0)) / 100
|
(core.status.hero[v as keyof HeroStatus] *
|
||||||
|
(equip.percentage[v] ?? 0)) /
|
||||||
|
100
|
||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user