Add skill text for other types
This commit is contained in:
parent
a8cf47ff51
commit
f0fad93966
@ -178,15 +178,21 @@ function getCombatText(cryp, resolution) {
|
|||||||
|
|
||||||
if (type === 'Disable') {
|
if (type === 'Disable') {
|
||||||
const { skill, disable } = event;
|
const { skill, disable } = event;
|
||||||
|
if (startSkill && source) return `${skill}`;
|
||||||
|
if (endSkill && target) return `${skill}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type === 'Immunity') {
|
if (type === 'Immunity') {
|
||||||
const { skill, immunity } = event;
|
const { skill, immunity } = event;
|
||||||
|
if (startSkill && source) return `${skill}`;
|
||||||
|
if (endSkill && target) return `${skill}`;
|
||||||
if (postSkill && target) return 'IMMUNE';
|
if (postSkill && target) return 'IMMUNE';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type === 'TargetKo') {
|
if (type === 'TargetKo') {
|
||||||
const { skill } = event;
|
const { skill } = event;
|
||||||
|
if (startSkill && source) return `${skill}`;
|
||||||
|
if (endSkill && target) return `${skill}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type === 'Damage') {
|
if (type === 'Damage') {
|
||||||
@ -201,21 +207,29 @@ function getCombatText(cryp, resolution) {
|
|||||||
|
|
||||||
if (type === 'Healing') {
|
if (type === 'Healing') {
|
||||||
const { skill, amount, overhealing } = event;
|
const { skill, amount, overhealing } = event;
|
||||||
|
if (startSkill && source) return `${skill}`;
|
||||||
|
if (endSkill && target) return `${skill}`;
|
||||||
if (postSkill && target) return `${amount} (${overhealing}OH)`;
|
if (postSkill && target) return `${amount} (${overhealing}OH)`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type === 'Inversion') {
|
if (type === 'Inversion') {
|
||||||
const { skill } = event;
|
const { skill } = event;
|
||||||
|
if (startSkill && source) return `${skill}`;
|
||||||
|
if (endSkill && target) return `${skill}`;
|
||||||
if (postSkill && target) return 'INVERT';
|
if (postSkill && target) return 'INVERT';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type === 'Reflection') {
|
if (type === 'Reflection') {
|
||||||
const { skill } = event;
|
const { skill } = event;
|
||||||
|
if (startSkill && source) return `${skill}`;
|
||||||
|
if (endSkill && target) return `${skill}`;
|
||||||
if (postSkill && target) return 'REFLECT';
|
if (postSkill && target) return 'REFLECT';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type === 'Effect') {
|
if (type === 'Effect') {
|
||||||
const { skill, effect, duration } = event;
|
const { skill, effect, duration } = event;
|
||||||
|
if (startSkill && source) return `${skill}`;
|
||||||
|
if (endSkill && target) return `${skill}`;
|
||||||
if (postSkill && target) return `+ ${effect} ${duration}T`;
|
if (postSkill && target) return `+ ${effect} ${duration}T`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user