feat: 完善七日活动交互、奖励动画与猫形象支持

This commit is contained in:
keke
2026-09-08 20:25:28 +08:00
parent f2f12d480c
commit 79e4a25039
67 changed files with 2461 additions and 287 deletions
+13
View File
@@ -0,0 +1,13 @@
/** 普通抽猫池;签到等活动猫不参与费用、进度和集齐判断。 */
export const DRAWABLE_CAT_IDS: ReadonlyArray<number> = [4, 5, 6, 7, 8, 9, 10, 11];
const FILM_COSTS = [5, 10, 25, 35, 55, 70, 100, 120];
export function getOwnedDrawableCats(catArr: any): number[] {
const owned = Array.isArray(catArr) ? catArr.map(id => Number(id)) : [];
return DRAWABLE_CAT_IDS.filter(id => owned.indexOf(id) !== -1);
}
/** 集齐时保留最后一档展示费用;是否可抽由拥有数量单独判断。 */
export function getCatDrawCost(ownedCount: number): number {
return FILM_COSTS[Math.min(Math.max(0, ownedCount), FILM_COSTS.length - 1)];
}
@@ -0,0 +1,10 @@
{
"ver": "1.1.0",
"uuid": "4d23795e-6b93-46f0-8ef0-1e0cb8e4f1a6",
"importer": "typescript",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}