添加物品

This commit is contained in:
2025-08-18 21:13:10 +08:00
parent 9e1459973c
commit f5a13de4b5
5 changed files with 12 additions and 51 deletions

View File

@@ -23429,7 +23429,7 @@
"__id__": 1028
},
"templateMode": true,
"watchPath": "data.data.exp",
"watchPath": "",
"labelType": "cc.Label",
"watchPathArr": [
"data.data.exp"
@@ -23438,7 +23438,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "72vaj8M3lF/7do+oUrRwU/"
"fileId": "d7kRqkXtZIRZv6hDkhqBSk"
},
{
"__type__": "cc.PrefabInfo",

View File

@@ -1151,11 +1151,11 @@
"height": 40
},
"_startAxis": 1,
"_paddingLeft": 15,
"_paddingRight": 15,
"_paddingLeft": 10,
"_paddingRight": 10,
"_paddingTop": 15,
"_paddingBottom": 15,
"_spacingX": 15,
"_spacingX": 10,
"_spacingY": 15,
"_verticalDirection": 1,
"_horizontalDirection": 0,

View File

@@ -34,8 +34,7 @@ export class SingletonModuleComp extends ecs.Comp {
gold:100, //升级主要资源
diamond:100, //商店购买 及 双倍奖励资源
meat:0,
exp:0, //升级经验
exp:0,
}
fight_heros:any={ 0:5001, 1:5005, 2:0, 3:0, 4:0, }
heros:any = {
@@ -63,15 +62,7 @@ export class SingletonModuleComp extends ecs.Comp {
gold:100, //升级主要资源
diamond:100, //商店购买 及 双倍奖励资源
meat:0,
exp:0, //升级经验
ghstone:0, //英雄石 绿色 普通英雄升星
bhstone:0, //英雄石 蓝色 稀有英雄升星
phlestone:0, //英雄石 紫色 史诗英雄升星
rhstone:0, //英雄石 红色 传说英雄升星
herocard:0, //英雄卡,抽卡凭证
ckey:0, //铜钥匙 解锁稀有英雄 也可以直接兑换金币
skey:0, //银钥匙 解锁史诗英雄 也可以直接兑换金币
gkey:0, //金钥匙 解锁传说英雄 也可以直接兑换金币
exp:0,
},
mission_data:{
mon_num:0,//怪物数量

View File

@@ -24,10 +24,7 @@ export class Test{
}
init_local_data(){
let init_data = {
data : {
score: 0, mission: 1, gold: 100, diamond: 100, meat: 0, exp: 0,
ghstone: 0, bhstone: 0, phlestone: 0, rhstone: 0, herocard: 0,
ckey: 0, skey: 0, gkey: 0,},
data : { score: 0, mission: 1, gold: 100, diamond: 100, meat: 0, exp: 0,},
fight_heros: { 0: 0, 1: 0, 2: 0, 3: 0, 4: 0 },
heros: {
5001: { uuid: 5001, lv: 1 },