mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
rebase: 优化
This commit is contained in:
parent
62952f33b1
commit
5a3d7502f9
2 changed files with 194 additions and 150 deletions
|
|
@ -10,28 +10,31 @@ import { ZZZAvatarInfo } from '../avatar.js';
|
|||
* @returns {ZZZAvatarInfo['damage_basic_properties']['bonus_detail']} 套装加成
|
||||
*/
|
||||
export const relice_ability = (set_id, set_num, base_detail, bonus_detail) => {
|
||||
if (set_id == '31100') {
|
||||
if (set_num >= 4) {
|
||||
let R_DmgAdd = _.get(bonus_detail, 'R_DmgAdd', 0);
|
||||
bonus_detail['R_DmgAdd'] = R_DmgAdd + 0.2;
|
||||
let AttackAddedRatio = _.get(bonus_detail, 'AttackAddedRatio', 0);
|
||||
bonus_detail['AttackAddedRatio'] = AttackAddedRatio + 0.15;
|
||||
logger.debug('relicGetter,4,R_DmgAdd');
|
||||
}
|
||||
} else if (set_id == '32500') {
|
||||
if (set_num >= 2) {
|
||||
let IceDmgAdd = _.get(bonus_detail, 'Ice_DmgAdd', 0);
|
||||
bonus_detail['Ice_DmgAdd'] = IceDmgAdd + 0.1;
|
||||
logger.debug('32500,2,Ice_DmgAdd');
|
||||
}
|
||||
if (set_num >= 4) {
|
||||
let A_DmgAdd = _.get(bonus_detail, 'A_DmgAdd', 0);
|
||||
bonus_detail['A_DmgAdd'] = A_DmgAdd + 0.4;
|
||||
let C_DmgAdd = _.get(bonus_detail, 'C_DmgAdd', 0);
|
||||
bonus_detail['C_DmgAdd'] = C_DmgAdd + 0.4;
|
||||
logger.debug('32500,4,A_DmgAdd');
|
||||
logger.debug('32500,4,C_DmgAdd');
|
||||
}
|
||||
switch (set_id) {
|
||||
case '31100':
|
||||
if (set_num >= 4) {
|
||||
let R_DmgAdd = _.get(bonus_detail, 'R_DmgAdd', 0);
|
||||
bonus_detail['R_DmgAdd'] = R_DmgAdd + 0.2;
|
||||
let AttackAddedRatio = _.get(bonus_detail, 'AttackAddedRatio', 0);
|
||||
bonus_detail['AttackAddedRatio'] = AttackAddedRatio + 0.15;
|
||||
logger.debug('relicGetter,4,R_DmgAdd');
|
||||
}
|
||||
break;
|
||||
case '32500':
|
||||
if (set_num >= 2) {
|
||||
let IceDmgAdd = _.get(bonus_detail, 'Ice_DmgAdd', 0);
|
||||
bonus_detail['Ice_DmgAdd'] = IceDmgAdd + 0.1;
|
||||
logger.debug('32500,2,Ice_DmgAdd');
|
||||
}
|
||||
if (set_num >= 4) {
|
||||
let A_DmgAdd = _.get(bonus_detail, 'A_DmgAdd', 0);
|
||||
bonus_detail['A_DmgAdd'] = A_DmgAdd + 0.4;
|
||||
let C_DmgAdd = _.get(bonus_detail, 'C_DmgAdd', 0);
|
||||
bonus_detail['C_DmgAdd'] = C_DmgAdd + 0.4;
|
||||
logger.debug('32500,4,A_DmgAdd');
|
||||
logger.debug('32500,4,C_DmgAdd');
|
||||
}
|
||||
break;
|
||||
}
|
||||
return bonus_detail;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue