掉落下的组合块 frame和数据不符的bug
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m12s

This commit is contained in:
TJH 2025-12-24 14:51:59 +08:00
parent 128b4e89a0
commit 4e8f5bd9a9

View File

@ -786,7 +786,7 @@ export class Roller extends BaseRoller {
let iconFramType = 0
if (CroSymbols) {
for (let key in CroSymbols) {
if (CroSymbols[key].PosFirst / 5 == this._rollerId) {
if (Math.floor(CroSymbols[key].PosFirst / 5) == this._rollerId) {
if (CroSymbols[key].PosFirst % 5 == i) {
iconFramType = CroSymbols[key].Type
}
@ -794,6 +794,7 @@ export class Roller extends BaseRoller {
}
}
icon.getComponent(Icon).initIcon(iconIndex, iconHeight, iconKey, iconFramType, this._rollerId);
let y = topY.y + (((fallDownNum - nowDownNum) - 0.5 * (iconHeight - iconHeight > 1 ? 1 : 0)) * this.iconHeight);