Compare commits
2 Commits
340060c2d2
...
c6601529b9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c6601529b9 | ||
|
|
b1264418dc |
File diff suppressed because it is too large
Load Diff
@@ -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,
|
||||
|
||||
@@ -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 },
|
||||
|
||||
@@ -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 || ""}`;
|
||||
|
||||
Reference in New Issue
Block a user