Remove KO delay and filter blur
This commit is contained in:
parent
1af39ea368
commit
0974a24eb8
@ -588,12 +588,12 @@ header {
|
||||
|
||||
.cryp-box.ko {
|
||||
animation: none;
|
||||
opacity: 0.5;
|
||||
opacity: 0.35;
|
||||
filter: grayscale(100%);
|
||||
}
|
||||
|
||||
.cryp-box.unfocus {
|
||||
filter: blur(5px);
|
||||
opacity: 0.65;
|
||||
}
|
||||
|
||||
text.combat-text {
|
||||
|
||||
@ -24,8 +24,11 @@ function registerEvents(store) {
|
||||
const newRes = game.resolved.slice(currentGame.resolved.length);
|
||||
return eachSeries(newRes, (r, cb) => {
|
||||
if (['Disable', 'TargetKo'].includes(r.event[0])) return cb();
|
||||
// Create 3 new events for combat animations
|
||||
const sequence = ['START_SKILL', 'END_SKILL', 'POST_SKILL'];
|
||||
// Create sub events for combat animations
|
||||
// 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) => {
|
||||
const stagedR = Object.create(r);
|
||||
stagedR.stage = stage;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user