diff --git a/public/img/equips/pants/升仙.png b/public/img/equips/pants/升仙.png new file mode 100644 index 0000000..2212a83 Binary files /dev/null and b/public/img/equips/pants/升仙.png differ diff --git a/public/img/equips/pants/铠鼠鳞.png b/public/img/equips/pants/铠鼠鳞.png new file mode 100644 index 0000000..36efc61 Binary files /dev/null and b/public/img/equips/pants/铠鼠鳞.png differ diff --git a/src/config/equips/pants.ts b/src/config/equips/pants.ts index edebdbc..6abf903 100644 --- a/src/config/equips/pants.ts +++ b/src/config/equips/pants.ts @@ -36,6 +36,25 @@ export const pantsColorfulCategorys: Categorys[] = [ ], 'LingGan' ), + new Categorys( + 'qiutu', + 'pants/囚徒.png', + [ + { type: 'def', valCoefficient: 1.8 }, + { type: 'hp', valCoefficient: 2.3 }, + ], + 'WanKang' + ), + new Categorys( + 'wuwei', + 'pants/五味.png', + [ + { type: 'def', valCoefficient: 1.2 }, + { type: 'bloc', valCoefficient: 1.4 }, + { type: 'hp', valCoefficient: 1.5 }, + ], + 'WuWei' + ), ]; export const pantsUniqueCategorys: Categorys[] = [ @@ -48,24 +67,24 @@ export const pantsUniqueCategorys: Categorys[] = [ { type: 'critDmg', valCoefficient: 1.7 }, { type: 'atk', valCoefficient: 1.7 }, ]), - new Categorys('qiutu', 'pants/囚徒.png', [ - { type: 'hp', valCoefficient: 2 }, - { type: 'atk', valCoefficient: 2 }, + new Categorys('cangjing', 'pants/藏经甲.png', [ + { type: 'def', valCoefficient: 1.5 }, { type: 'bloc', valCoefficient: 1.2 }, + { type: 'hp', valCoefficient: 1.4 }, ]), - new Categorys('wuwei', 'pants/五味.png', [ + new Categorys('egui', 'pants/饿鬼.png', [ { type: 'def', valCoefficient: 1.2 }, { type: 'hp', valCoefficient: 1.7 }, { type: 'atk', valCoefficient: 1.0 }, ]), - new Categorys('cangjing', 'pants/藏经甲.png', [ - { type: 'def', valCoefficient: 1.5 }, + new Categorys('qijia', 'pants/泣甲.png', [ + { type: 'hp', valCoefficient: 2 }, + { type: 'atk', valCoefficient: 2 }, { type: 'bloc', valCoefficient: 1.2 }, - { type: 'hp', valCoefficient: 1.4 }, ]), ]; export const pantsCategorys: Categorys[] = [ - new Categorys('qijia', 'pants/泣甲.png', [ + new Categorys('kaishulin', 'pants/铠鼠鳞.png', [ { type: 'def', valCoefficient: 2 }, { type: 'hp', valCoefficient: 0.6 }, ]), @@ -73,7 +92,7 @@ export const pantsCategorys: Categorys[] = [ { type: 'def', valCoefficient: 0.8 }, { type: 'hp', valCoefficient: 1.8 }, ]), - new Categorys('egui', 'pants/饿鬼.png', [ + new Categorys('shengxian', 'pants/升仙.png', [ { type: 'def', valCoefficient: 0.8 }, { type: 'hp', valCoefficient: 0.8 }, { type: 'atk', valCoefficient: 0.8 }, diff --git a/src/config/equips/shoes.ts b/src/config/equips/shoes.ts index 87d6524..af72c8c 100644 --- a/src/config/equips/shoes.ts +++ b/src/config/equips/shoes.ts @@ -8,26 +8,26 @@ export const shoesColorfulCategorys: Categorys[] = [ new Categorys('lingyun', 'shoes/灵韵集能器.png', [ { type: 'moveSpeed', valCoefficient: 1.2 }, { type: 'atk', valCoefficient: 1.8 }, - { type: 'hp', valCoefficient: 1 }, + { type: 'hp', valCoefficient: 2.2 }, ]), new Categorys('siben', 'shoes/私奔.png', [ { type: 'moveSpeed', valCoefficient: 2 }, - { type: 'def', valCoefficient: 1 }, - { type: 'hp', valCoefficient: 1.4 }, + { type: 'def', valCoefficient: 1.6 }, + { type: 'hp', valCoefficient: 2.4 }, ]), new Categorys('qxzl', 'shoes/浅夏紫灵.png', [ { type: 'moveSpeed', valCoefficient: 1.5 }, { type: 'atk', valCoefficient: 1.2 }, - { type: 'hp', valCoefficient: 1.4 }, + { type: 'hp', valCoefficient: 2.8 }, ]), new Categorys('xuedun', 'shoes/血遁靴.png', [ { type: 'moveSpeed', valCoefficient: 2.8 }, - { type: 'hp', valCoefficient: 2 }, + { type: 'hp', valCoefficient: 4 }, ]), new Categorys('wajiang', 'shoes/蛙将足.png', [ { type: 'moveSpeed', valCoefficient: 1.4 }, { type: 'atk', valCoefficient: 1.5 }, - { type: 'def', valCoefficient: 1 }, + { type: 'def', valCoefficient: 2.5 }, ]), ]; diff --git a/src/config/i18n/zh/euips.ts b/src/config/i18n/zh/euips.ts index fe041b6..e9cb69d 100644 --- a/src/config/i18n/zh/euips.ts +++ b/src/config/i18n/zh/euips.ts @@ -187,14 +187,16 @@ export const pants = { guijia: ['鬼甲', '据说是由鬼魂的怨念凝聚而成。'], baizhequn: ['荃英的百褶裙', '每一个褶子里,都是荃英的心血。'], yulan: ['鱼篮', '观世音菩萨在紫竹林以六十二亿根竹篾编织而成。'], - mhlg: ['梦回龙宫', '沧海离歌一阕悲,梦里龙宫几度回。'], - longlin: ['龙鳞胫甲', '每一片鳞片都来之不同的龙,包括四海龙王'], qiutu: ['囚徒', '躯体,是思想的最大囚笼。'], wuwei: ['五味', '酸多伤脾,苦多伤肺,辛多伤肝,甘多伤肾,咸多伤心。'], + mhlg: ['梦回龙宫', '沧海离歌一阕悲,梦里龙宫几度回。'], + longlin: ['龙鳞胫甲', '每一片鳞片都来之不同的龙,包括四海龙王'], cangjing: ['藏经甲', '内刻小乘佛法精意。'], + egui: ['饿鬼', '饿鬼诞下的孩子,任是饿鬼。'], qijia: ['泣甲', '这山一般高大的白骨里禁锢着一个弱小不堪的魂魄。'], + kaishulin: ['铠鼠鳞', '十万粒黄沙打磨,光鲜可鉴。'], guanjia: ['管家服', '有些异味,最好先洗一洗。'], - egui: ['饿鬼', '饿鬼诞下的孩子,任是饿鬼。'], + shengxian: ['升仙', '你只需要明白,真正得赐仙籍的,都不会走升仙台。'], initial: ['新手裤子', '新手菜鸡使用的破旧裤子。'], }; export const shoes = { diff --git a/src/config/i18n/zh/skills.ts b/src/config/i18n/zh/skills.ts index e5ce2d3..6476213 100644 --- a/src/config/i18n/zh/skills.ts +++ b/src/config/i18n/zh/skills.ts @@ -45,9 +45,9 @@ export const tongjuefanji = [ export const fate = ['化缘', '副本掉落金币奖励提高${0}%。']; export const vampire = ['汲血', '生命偷取${0}%。', '触发汲血,偷取${0}点生命']; export const prototype = ['现原形', '将目标变为猴子,持续${0}回合,冷却${1}回合,对boss只有${2}%成功率。']; -export const critFear = ['暴击恐惧', '暴击时附加${0}%攻击力的额外伤害。', '触发暴击恐惧,附加${0}点伤害']; +export const critFear = ['暴击恐惧', '暴击时附加${0}%攻击力的额外伤害。', '触发暴击恐惧,附加${0}点伤害。']; export const liulipan = ['琉璃盘', '使用后产生黑红内丹,临时提高${0}点基础攻击力进行攻击,冷却${1}回合。']; -export const JHSY = ['镜花水月', '被攻击时有${0}%概率反弹${1}%所受伤害。', '${0}触发了镜花水月,反弹${1}点伤害']; +export const JHSY = ['镜花水月', '被攻击时有${0}%概率反弹${1}%所受伤害。', '${0}触发了镜花水月,反弹${1}点伤害。']; export const lizhao = ['利爪', '被攻击时有${0}%概率增加${1}%技能伤害倍率。', '触发利爪,增加${0}%技能伤害倍率。']; export const judu = ['剧毒', '被攻击时有${0}%概率喷出毒液,使目标进入溃烂状态${1}回合。', '触发剧毒,${0}进度溃烂状态${1}回合。']; @@ -61,6 +61,8 @@ export const furenbihu = [ '血量低于${0}%,触发白骨夫人的庇护,获得${1}%伤害减免', ]; export const linggan = ['灵感', '每回合回复${0}%生命。']; +export const wankang = ['顽抗', '被攻击时反弹${0}%所受伤害,最大反弹值等于${1}%生命上限。', '${0}触发顽抗,反弹${1}点伤害']; +export const wuwei = ['五味', '获得${0}%伤害减免。']; export const atkbuff = ['提升${0}点基础攻击力。', '提升${0}%基础攻击力。', '提升${0}%攻击加成。']; export const critbuff = ['提升${0}%暴击率。', '提升${0}%暴击伤害。', '提升${0}%暴击减免。', '提升${0}%暴击伤害减免。']; diff --git a/src/config/skill/pants.ts b/src/config/skill/pants.ts index 6090017..4d71f82 100644 --- a/src/config/skill/pants.ts +++ b/src/config/skill/pants.ts @@ -1,7 +1,7 @@ import { SufPassiveSkill, PrePassiveSkill, CounterSkill, StartPassiveSkill } from './base'; import i18n from '../i18n'; import { BattleRole, replace } from '@/tool'; -import { KBLYDebuff, LingGanBuff } from './buff'; +import { DmgReducBuff, KBLYDebuff, LingGanBuff } from './buff'; const { t } = i18n; //恐怖领域 @@ -37,7 +37,7 @@ export class FuRenBiHu extends PrePassiveSkill { //灵感 export class LingGan extends StartPassiveSkill { name: string = 'linggan'; - percent: number = 1.5; + percent: number = 1; desc(): string { return replace(t('skill.linggan.1'), [this.percent]); } @@ -46,3 +46,34 @@ export class LingGan extends StartPassiveSkill { owner.putBuff(linggan); } } +//顽抗 +export class WanKang extends CounterSkill { + name: string = 'wankang'; + percent: number = 30; + hpPercnet: number = 100; + desc(): string { + return replace(t('skill.wankang.1'), [this.percent, this.hpPercnet]); + } + trigger(owner: BattleRole, target: BattleRole): boolean { + return target.dmg > 0; + } + takeEffect(owner: BattleRole, target: BattleRole): void { + 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); + owner.battleLog(replace(t('skill.wankang.2'), [t(owner.type), reflected])); + } +} +//五味 +export class WuWei extends StartPassiveSkill { + name: string = 'wuwei'; + dmgReduc: number = 20; + desc(): string { + return replace(t('skill.wuwei.1'), [this.dmgReduc]); + } + takeEffect(owner: BattleRole, target: BattleRole): void { + const wuwei = new DmgReducBuff(this.name, this.dmgReduc, 9999); + owner.putBuff(wuwei); + } +}