Simplified bullet handling.

This commit is contained in:
genxium
2023-02-11 12:08:01 +08:00
parent 365177a3af
commit de16e8e8de
7 changed files with 98 additions and 112 deletions

View File

@@ -48,13 +48,13 @@
}
},
{
"frame": 0.45,
"frame": 0.4,
"value": {
"__uuid__": "487b65c3-44e3-4b0e-9350-e0d1c952785b"
}
},
{
"frame": 0.5,
"frame": 0.4166666666666667,
"value": {
"__uuid__": "9a5357ae-a160-4198-a6d5-cc9631fde754"
}

View File

@@ -547,7 +547,7 @@
"array": [
0,
0,
216.50635094610968,
216.05530045313827,
0,
0,
0,

View File

@@ -1306,7 +1306,7 @@ othersForcedDownsyncRenderFrame=${JSON.stringify(othersForcedDownsyncRenderFrame
}
for (let k in rdf.MeleeBullets) {
const meleeBullet = rdf.MeleeBullets[k];
const isExploding = (window.BULLET_STATE.Exploding == meleeBullet.BlState);
const isExploding = (window.BULLET_STATE.Exploding == meleeBullet.BlState && meleeBullet.FramesInBlState < meleeBullet.Bullet.ExplosionFrames);
if (isExploding) {
let pqNode = self.cachedFireballs.popAny(meleeBullet.BattleAttr.BulletLocalId);
let speciesName = `MeleeExplosion`;

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,6 @@
{
"ver": "1.0.5",
"uuid": "171e2c96-28b4-4225-bdcc-5e464f07d91a",
"uuid": "eeaa56f4-bd6c-4208-bec4-6ab1aa39ca93",
"isPlugin": true,
"loadPluginInWeb": true,
"loadPluginInNative": true,