Remove KO delay and filter blur

This commit is contained in:
Mashy 2019-04-16 10:09:46 +10:00
parent 1af39ea368
commit 0974a24eb8
2 changed files with 7 additions and 4 deletions

View File

@ -588,12 +588,12 @@ header {
.cryp-box.ko { .cryp-box.ko {
animation: none; animation: none;
opacity: 0.5; opacity: 0.35;
filter: grayscale(100%); filter: grayscale(100%);
} }
.cryp-box.unfocus { .cryp-box.unfocus {
filter: blur(5px); opacity: 0.65;
} }
text.combat-text { text.combat-text {

View File

@ -24,8 +24,11 @@ function registerEvents(store) {
const newRes = game.resolved.slice(currentGame.resolved.length); const newRes = game.resolved.slice(currentGame.resolved.length);
return eachSeries(newRes, (r, cb) => { return eachSeries(newRes, (r, cb) => {
if (['Disable', 'TargetKo'].includes(r.event[0])) return cb(); if (['Disable', 'TargetKo'].includes(r.event[0])) return cb();
// Create 3 new events for combat animations // Create sub events for combat animations
const sequence = ['START_SKILL', 'END_SKILL', 'POST_SKILL']; // Some types only need to animate final effect
const sequence = ['Ko'].includes(r.event[0])
? ['POST_SKILL']
: ['START_SKILL', 'END_SKILL', 'POST_SKILL'];
return eachSeries(sequence, (stage, sCb) => { return eachSeries(sequence, (stage, sCb) => {
const stagedR = Object.create(r); const stagedR = Object.create(r);
stagedR.stage = stage; stagedR.stage = stage;