添加物品

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

@@ -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 },