2 Commits

Author SHA1 Message Date
panw
c6601529b9 fix: 修正特殊卡牌名称显示和等级标识问题
修复特殊升级/刷新卡牌名称显示逻辑,将等级后缀改为前缀,并使用★符号表示等级。
同时修复高等级卡牌边框节点激活逻辑,确保HB节点正确显示。
2026-04-03 10:59:43 +08:00
panw
b1264418dc fix: 调整英雄升级概率和UI边框值
- 降低英雄升2级的基础概率和每级增长概率,以平衡游戏难度
- 修正两个UI元素的边框值,确保显示效果正确
2026-04-03 10:59:36 +08:00
4 changed files with 915 additions and 598 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1818,10 +1818,10 @@
"height": 63,
"rawWidth": 56,
"rawHeight": 63,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"borderTop": 31,
"borderBottom": 31,
"borderLeft": 27,
"borderRight": 29,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
@@ -1866,8 +1866,8 @@
"rawHeight": 189,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"borderLeft": 24,
"borderRight": 23,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,

View File

@@ -55,8 +55,8 @@ export const CARD_POOL_MAX_LEVEL = CardLV.LV5
/** 英雄最高等级限制 */
export const CARD_HERO_MAX_LEVEL = 3
/** 基础卡池(英雄、技能、功能) */
export const HERO_LV2_INIT_PROB = 0.1
export const HERO_LV2_PROB_INC_PER_LV = 0.05
export const HERO_LV2_INIT_PROB = 0.05
export const HERO_LV2_PROB_INC_PER_LV = 0.01
export const CardPoolList: CardConfig[] = [
{ uuid: 5001, type: CardType.Hero, cost: 3, weight: 25, pool_lv: 1, kind: CKind.Hero, hero_lv: 1 },

View File

@@ -394,7 +394,7 @@ export class CardComp extends CCComp {
const isHighLevel = (this.cardData.hero_lv ?? 0) > 1 || card_lv_val > 1;
if (this.HF_node) this.HF_node.active = isHighLevel;
if (this.NF_node) this.NF_node.active = !isHighLevel;
this.node.getChildByName("HB").active = isHighLevel;
const activeFrameNode = isHighLevel ? this.HF_node : this.NF_node;
if (activeFrameNode) {
activeFrameNode.children.forEach(child => {
@@ -415,9 +415,9 @@ export class CardComp extends CCComp {
const specialCard = this.card_type === CardType.SpecialUpgrade
? SpecialUpgradeCardList[this.card_uuid]
: SpecialRefreshCardList[this.card_uuid];
const poolLv = Math.max(1, Math.floor(this.cardData.pool_lv ?? 1));
const spSuffix = poolLv >= 2 ? "+".repeat(poolLv - 1) : "";
this.setLabel(this.name_node, `${specialCard?.name || ""}${spSuffix}`);
const card_lv = Math.max(1, Math.floor(this.cardData.card_lv ?? 1));
const spSuffix = card_lv >= 2 ? "".repeat(card_lv - 1) : "";
this.setLabel(this.name_node, `${spSuffix}${specialCard?.name || ""}${spSuffix}`);
this.info_node.active = false;
this.oinfo_node.active = true;
this.oinfo_node.getChildByName("info").getComponent(Label).string = `${specialCard?.info || ""}`;