Browse Source

新增:银河裂,荧光层数BUG

1.修复流萤荧光层数显示错误BUG
2.见红施加的流血提高到6回合
3.流血伤害可以被感电影响
4.新增神话武器:银河裂
2.0
许孟阳 3 weeks ago
parent
commit
59e0de0f6b
  1. 11
      src/config/equips/weapon.ts
  2. 3
      src/config/i18n/zh/euips.ts
  3. 2
      src/config/i18n/zh/skills.ts
  4. 13
      src/config/skill/buff.ts
  5. 2
      src/config/skill/jewelry.ts
  6. 2
      src/config/skill/pants.ts
  7. 61
      src/config/skill/weapon.ts
  8. 4
      src/tool/caller/battle.ts
  9. 14
      src/views/version/update-log.vue

11
src/config/equips/weapon.ts

@ -129,6 +129,17 @@ export const weaponColorfulCategorys: Categorys[] = [ @@ -129,6 +129,17 @@ export const weaponColorfulCategorys: Categorys[] = [
'LiuYing,SeeRed',
0.9
),
new WeaponCategory(
'yinhelie',
'weapon/银河裂.png',
[
{ type: 'atk', valCoefficient: 1.8 },
{ type: 'crit', valCoefficient: 1.5 },
{ type: 'critDmg', valCoefficient: 1.3 },
],
'HunYuan,LieYinHe',
0.90
),
new WeaponCategory(
'chulian',
'weapon/初恋.png',

3
src/config/i18n/zh/euips.ts

@ -24,13 +24,13 @@ export const weapon = { @@ -24,13 +24,13 @@ export const weapon = {
shayi: ['杀意', '仇敌,莫让吾听闻汝名。'],
limaoliren: ['狸猫利刃', '比时光还要无情。'],
liuying: ['流萤', '若不困顿於林野,必凄惶於道路。'],
yinhelie: ['银河裂', '天河裂而混元出。'],
chulian: ['初恋', '我的初恋在月亮之上。 ----八戒'],
chengba: ['称霸', '霸者不藏其锋,以天地为鞘。'],
duwu: ['黩武', '若未用够最后一丝力气,如何能甘心。'],
emeng: ['噩梦', '我最近的噩梦,都和一只猴子有关...... ----增长天王'],
heifeng: ['黑风', '这把斧子一直不肯相信它的主人已经死去。'],
shishen: ['弑神', '从斩妖台流落到地府的禁忌之物,慎用。'],
jlys: ['九灵·元圣', '当坐骑总比没命了强。'],
llzx: ['冷龙之心', '长九尺三寸,苍青之气盘绕九十三匝。'],
liubuxiang: ['六不像', '汝若身披业火,当一念不起,六欲尽灭。'],
longxian: ['龙衔', '天之西北有幽冥无日之国,有龙衔烛而照之也。'],
@ -39,7 +39,6 @@ export const weapon = { @@ -39,7 +39,6 @@ export const weapon = {
wuzhe: ['无遮', '知识自境之心。'],
wuqi: ['武气', '武曲星君有武器十八般,皆太乙出品。'],
yanmo: ['炎魔', '传说炎魔是火焰山城最后的引路人。'],
yinhelie: ['银河裂', '天河裂而混元出。'],
zhangsan: ['丈三', '杀一是罪,屠万为雄。'],
creation: ['创世亡命剑', '只有被选中的勇士才能唤醒它真正的力量。'],
nameless: ['无名剑', '没有人知道它的来历。'],

2
src/config/i18n/zh/skills.ts

@ -30,6 +30,8 @@ export const liuying = [ @@ -30,6 +30,8 @@ export const liuying = [
];
export const seeRed = ['见红', '对目标施加${0}层流血,持续${1}回合。', '冷却${0}回合。'];
export const shilian = ['失恋', '受到的伤害增加${0}%。'];
export const hunyuan = ['混元', '获得${0}%攻击加成。'];
export const lieyinhe = ['裂银河', '一剑裂银河。无视目标护甲进行攻击,冷却${0}回合。'];
export const bhxdjc = [
'百花羞的矜持',

13
src/config/skill/buff.ts

@ -141,6 +141,15 @@ export class BlocPercentBuff extends PercentAttackedBuff { @@ -141,6 +141,15 @@ export class BlocPercentBuff extends PercentAttackedBuff {
owner.extraAttr.bloc += Math.ceil((owner.attr.bloc * this.percent) / 100);
}
}
//承受伤害增加或减少BUFF
export class MoreBearBuff extends PercentAttackedBuff {
desc(): string {
return replace(t('skill.defbuff.2'), [this.percent * this.layer]);
}
takeEffect(owner: BattleRole): void {
owner.moreBear = callDmgPercent(owner.moreBear, this.percent);
}
}
//控制异常
export class ControlBuff extends AttackBuff {
constructor(name: string, last: number) {
@ -197,13 +206,13 @@ export class LiuXue extends AttackBuff { @@ -197,13 +206,13 @@ export class LiuXue extends AttackBuff {
}
takeEffect(owner: BattleRole): void {
const reducPercent = callReducPercent(owner.attr.def + owner.extraAttr.def, owner.attr.lv); //目标防御提供的减伤比例
const dmg = Math.ceil(owner.attr.curHp * (this.percent / 100) * this.layer * (1 - reducPercent));
const dmg = Math.ceil(owner.attr.curHp * (this.percent / 100) * this.layer * (1 - reducPercent) * (1 + owner.moreBear / 100));
owner.addHp(-1 * dmg);
owner.debuffLog(replace(t('skill.liuxue.1'), [this.layer, t(owner.type), dmg]));
}
}
//感电
export class GanDian extends DmgReducBuff {
export class GanDian extends MoreBearBuff {
constructor(last: number) {
super('gandian', -50, last);
}

2
src/config/skill/jewelry.ts

@ -74,7 +74,7 @@ export class JHSY extends CounterSkill { @@ -74,7 +74,7 @@ export class JHSY extends CounterSkill {
takeEffect(owner: BattleRole, target: BattleRole): void {
// const reducPercent = callReducPercent(owner.attr.def + owner.extraAttr.def, owner.attr.lv); //目标防御提供的减伤比例
// const reflected = Math.ceil(((target.baseDmg * this.percent) / 100) * (1 - reducPercent));
const reflected = Math.ceil((target.baseDmg * this.percent) / 100);
const reflected = Math.ceil(target.baseDmg * (this.percent / 100) * (1 + target.moreBear / 100));
target.addHp(-1 * reflected);
const log = replace(t('skill.JHSY.2'), [t(owner.type), reflected]);
owner.extraDmgLog(log);

2
src/config/skill/pants.ts

@ -58,7 +58,7 @@ export class WanKang extends CounterSkill { @@ -58,7 +58,7 @@ export class WanKang extends CounterSkill {
return target.dmg > 0;
}
takeEffect(owner: BattleRole, target: BattleRole): void {
let reflected = Math.ceil((target.baseDmg * this.percent) / 100);
let reflected = Math.ceil(target.baseDmg * (this.percent / 100));
const max = Math.ceil((owner.attr.hp * this.hpPercnet) / 100);
reflected > max && (reflected = max);
target.addHp(-1 * reflected);

61
src/config/skill/weapon.ts

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
import { ActionSkill, Attack, Control, PrePassiveSkill, StartPassiveSkill, SufPassiveSkill } from './base';
import { createt } from '../i18n';
import { replace, BattleRole } from '@/tool';
import { ControlBuff, CritDmgBuff, DmgPercentBuff, DmgReducBuff, GanDian, KuiLan, LiuXue } from './buff';
import { AtkPercentBuff, ControlBuff, CritDmgBuff, DmgPercentBuff, DmgReducBuff, GanDian, KuiLan, LiuXue } from './buff';
const t = createt('');
const st = createt('skill.');
@ -33,22 +33,6 @@ export class QiuAi extends Attack { @@ -33,22 +33,6 @@ export class QiuAi extends Attack {
return replace(st('qiuai.1'), [this.percent]);
}
}
//见红
export class SeeRed extends ActionSkill {
name: string = 'seeRed';
layer: number = 5;
cd: number = 5;
last: number = 5;
desc(): string {
return replace(st('seeRed.1'), [this.layer, this.last]) + replace(st('seeRed.2'), [this.cd]);
}
use(owner: BattleRole, target: BattleRole): void {
owner.skillPercent = 0;
const liuxue = new LiuXue(this.layer, this.last);
target.putBuff(liuxue);
owner.extraDmgLog(replace(st('user'), [t(owner.type), st(this.name + '.0')]) + replace(st('seeRed.1'), [this.layer, this.last]));
}
}
//鳍刺
export class QiCi extends SufPassiveSkill {
name: string = 'qici';
@ -240,7 +224,7 @@ export class LiuYing extends SufPassiveSkill { @@ -240,7 +224,7 @@ export class LiuYing extends SufPassiveSkill {
}
takeEffect(owner: BattleRole, target: BattleRole): void {
this.curLayer += this.layer;
owner.extraDmgLog(replace(st('liuying.2'), [t(owner.type), this.layer, this.maxLayer, this.curLayer]));
owner.extraDmgLog(replace(st('liuying.2'), [t(owner.type), this.layer, this.curLayer]));
if (this.curLayer >= this.maxLayer) {
const additional = Math.ceil((owner.atk * this.percent) / 100);
target.addHp(-1 * additional);
@ -251,6 +235,22 @@ export class LiuYing extends SufPassiveSkill { @@ -251,6 +235,22 @@ export class LiuYing extends SufPassiveSkill {
}
}
}
//见红
export class SeeRed extends ActionSkill {
name: string = 'seeRed';
layer: number = 5;
cd: number = 5;
last: number = 6;
desc(): string {
return replace(st('seeRed.1'), [this.layer, this.last]) + replace(st('seeRed.2'), [this.cd]);
}
use(owner: BattleRole, target: BattleRole): void {
owner.skillPercent = 0;
const liuxue = new LiuXue(this.layer, this.last);
target.putBuff(liuxue);
owner.extraDmgLog(replace(st('user'), [t(owner.type), st(this.name + '.0')]) + replace(st('seeRed.1'), [this.layer, this.last]));
}
}
//失恋
export class ShiLian extends StartPassiveSkill {
name: string = 'shilian';
@ -263,3 +263,28 @@ export class ShiLian extends StartPassiveSkill { @@ -263,3 +263,28 @@ export class ShiLian extends StartPassiveSkill {
owner.putBuff(shilian);
}
}
//混元
export class HunYuan extends StartPassiveSkill {
name: string = 'hunyuan';
atkPercent: number = 150;
desc(): string {
return replace(st('hunyuan.1'), [this.atkPercent]);
}
takeEffect(owner: BattleRole, target: BattleRole): void {
const hunyuan = new AtkPercentBuff(this.name, this.atkPercent, 9999);
owner.putBuff(hunyuan);
}
}
//裂银河
export class LieYinHe extends Attack {
name: string = 'lieyinhe';
cd: number = 10;
desc(): string {
return replace(st('lieyinhe.1'), [this.cd]);
}
use(owner: BattleRole, target: BattleRole): void {
target.extraAttr.def = -1 * target.attr.def;
super.use(owner, target);
}
}

4
src/tool/caller/battle.ts

@ -20,6 +20,7 @@ export class BattleRole { @@ -20,6 +20,7 @@ export class BattleRole {
extraAttr: Attribute = new Attribute();
shield: number = 0;
skillPercent: number = 100;
moreBear: number = 0;
constructor(attr: Attribute, commit, type: string) {
this.attr = attr;
@ -40,6 +41,7 @@ export class BattleRole { @@ -40,6 +41,7 @@ export class BattleRole {
this.extraAttr.critDmg = 0;
this.shield = Math.ceil(this.shield * 0.9);
this.skillPercent = 0;
this.moreBear = 0;
};
addSkill = (skillName, lv?) => {
@ -171,7 +173,7 @@ export class BattleRole { @@ -171,7 +173,7 @@ export class BattleRole {
}
const reducPercent = callReducPercent(target.attr.def + target.extraAttr.def, target.attr.lv); //目标防御提供的减伤比例
const dmgReduc = callDmgReduc(target.attr.dmgReduc, target.extraAttr.dmgReduc); //目标伤害减免
const takeDmgPercent = (1 - reducPercent) * (1 - dmgReduc / 100); //目标承受伤害比例
const takeDmgPercent = (1 - reducPercent) * (1 - dmgReduc / 100) * (1 + this.moreBear / 100); //目标承受伤害比例
const bloc = target.attr.bloc + target.extraAttr.bloc; //目标格挡值
const dmg = Math.ceil(this.baseDmg * takeDmgPercent - bloc); //目标承受伤害
this.dmg = dmg < 1 ? 1 : dmg;

14
src/views/version/update-log.vue

@ -38,7 +38,17 @@ const hisVersions = [ @@ -38,7 +38,17 @@ const hisVersions = [
]
const updateLogs: any = [{
date: '2025-05-22', version: '1.0',
date: '2025-05-26', version: '1.0',
adjust: [
'新增神话武器:银河裂',
'见红施加的流血提高到6回合',
'流血伤害可以被感电影响',
],
bug: [
'修复流萤荧光层数显示错误BUG',
]
}, {
date: '2025-05-25', version: '1.0',
adjust: [
'新增神话装备:黑白钻戒,流萤',
'神话装备【求爱】技能调整',
@ -51,7 +61,7 @@ const updateLogs: any = [{ @@ -51,7 +61,7 @@ const updateLogs: any = [{
'修复黑白钻戒名字不显示问题'
]
}, {
date: '2025-05-22', version: '1.0',
date: '2025-05-24', version: '1.0',
adjust: [
'弹窗可拖动位置',
'自动重铸费用改为1.5倍',

Loading…
Cancel
Save