2 Commits

Author SHA1 Message Date
pan
acec8f6941 refactor(game/config): 替换硬编码费用为集中配置项
新增GameSet.ts中FightSet枚举的REFRESH_COST和BASE_COST常量,替换CardSet.ts和MissionCardComp.ts内的硬编码费用值。
2026-06-12 14:43:27 +08:00
pan
8c056f2e74 修复(mskillbox): 调整MSkillBox预制体布局参数修正UI错位
本次提交修改了MSkillBox预制体中多个UI元素的位置、对齐方式、内容尺寸和锚点等布局属性,解决原有布局错位的显示问题。
2026-06-12 14:42:54 +08:00
5 changed files with 1876 additions and 1811 deletions

View File

@@ -293,7 +293,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 4.377999999999986,
"y": 0,
"z": 0
},
"_lrot": {
@@ -347,7 +347,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -0.025,
"y": 0,
"z": 0
},
"_lrot": {
@@ -400,7 +400,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -111.83499999999998,
"y": 0,
"z": 0
},
"_lrot": {
@@ -518,8 +518,8 @@
"_target": null,
"_left": 0,
"_right": 0,
"_top": 61.83499999999992,
"_bottom": -161.83499999999998,
"_top": -50.00000000000004,
"_bottom": -50,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
@@ -598,7 +598,7 @@
"_top": 590,
"_bottom": 300,
"_horizontalCenter": 0,
"_verticalCenter": -61.11,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
@@ -776,14 +776,14 @@
"__prefab": {
"__id__": 31
},
"_alignFlags": 8,
"_alignFlags": 9,
"_target": null,
"_left": 20.000000000000284,
"_left": 20,
"_right": 0,
"_top": 0,
"_top": 58.063,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_verticalCenter": 143.665,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
@@ -3075,7 +3075,7 @@
"value": {
"__type__": "cc.Vec3",
"x": -235,
"y": 27.025,
"y": 131.937,
"z": 0
}
},
@@ -3652,14 +3652,14 @@
"__prefab": {
"__id__": 183
},
"_alignFlags": 16,
"_alignFlags": 17,
"_target": null,
"_left": 20,
"_right": 0,
"_top": 0,
"_top": 58.063,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_verticalCenter": 143.665,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
@@ -5951,7 +5951,7 @@
"value": {
"__type__": "cc.Vec3",
"x": 0,
"y": 27.025,
"y": 131.937,
"z": 0
}
},
@@ -6528,14 +6528,14 @@
"__prefab": {
"__id__": 335
},
"_alignFlags": 32,
"_alignFlags": 33,
"_target": null,
"_left": 20,
"_right": 20.000000000000284,
"_top": 0,
"_right": 20,
"_top": 58.063,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_verticalCenter": 143.665,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
@@ -8827,7 +8827,7 @@
"value": {
"__type__": "cc.Vec3",
"x": 235,
"y": 27.025,
"y": 131.937,
"z": 0
}
},
@@ -9290,7 +9290,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -349.073,
"y": -237.659,
"z": 0
},
"_lrot": {
@@ -10306,12 +10306,12 @@
"__prefab": {
"__id__": 523
},
"_alignFlags": 2,
"_alignFlags": 4,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 183.25900000000001,
"_bottom": -49.07299999999998,
"_horizontalCenter": 0,
"_verticalCenter": -387.69,
"_isAbsLeft": true,
@@ -10357,13 +10357,13 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720.0000000000006,
"height": 330
"width": 720,
"height": 700
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0
"y": 0.5
},
"_id": ""
},
@@ -10390,7 +10390,7 @@
"_top": 600,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 169.378,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
@@ -10490,7 +10490,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720.0000000000006,
"width": 720,
"height": 1280
},
"_anchorPoint": {
@@ -10518,8 +10518,8 @@
},
"_alignFlags": 45,
"_target": null,
"_left": -3.6514001698782925e-16,
"_right": -2.8421709430404007e-13,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,

File diff suppressed because it is too large Load Diff

View File

@@ -97,7 +97,7 @@ HeroList.forEach(uuid => {
const basePoolLv = hero.pool_lv || 1;
const baseHeroLv = hero.lv || 1;
const baseCost = 5;
const baseCost = FightSet.BASE_COST;
const baseWeight = 25;
// 生成从 basePoolLv 到 CARD_POOL_MAX_LEVEL 的卡牌

View File

@@ -38,6 +38,9 @@ export enum FightSet {
SHIELD_MAX = 5,
WAVE_HEAL_RATE = 0.5, // 回合结束时所有英雄恢复最大生命值的比例
PUNCTURE_DOWN = 50,
REFRESH_COST = 1,
BASE_COST=3
// 刷新成本
}
export const laneIdx = {

View File

@@ -74,7 +74,7 @@ export class MissionCardComp extends CCComp {
/** 按钮弹起缩放(峰值) */
private readonly buttonClickScale: number = 1.06;
/** 抽卡(刷新)费用 */
refreshCost: number = 2;
refreshCost: number = FightSet.REFRESH_COST;
/** 卡牌面板展开/收起动画时长(秒) */
cardsPanelMoveDuration: number = 0.2;