添加物品

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

View File

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

View File

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

View File

@@ -24,10 +24,7 @@ export class Test{
} }
init_local_data(){ init_local_data(){
let init_data = { let init_data = {
data : { data : { score: 0, mission: 1, gold: 100, diamond: 100, meat: 0, exp: 0,},
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,},
fight_heros: { 0: 0, 1: 0, 2: 0, 3: 0, 4: 0 }, fight_heros: { 0: 0, 1: 0, 2: 0, 3: 0, 4: 0 },
heros: { heros: {
5001: { uuid: 5001, lv: 1 }, 5001: { uuid: 5001, lv: 1 },

View File

@@ -21,17 +21,6 @@ const DEFAULT_GAME_DATA = {
meat: 0, // 肉类资源 meat: 0, // 肉类资源
exp: 0, // 升级经验 exp: 0, // 升级经验
// 英雄升星石头资源
ghstone: 0, // 绿色英雄石 - 普通英雄升星
bhstone: 0, // 蓝色英雄石 - 稀有英雄升星
phlestone: 0, // 紫色英雄石 - 史诗英雄升星
rhstone: 0, // 红色英雄石 - 传说英雄升星
// 抽卡和解锁资源
herocard: 0, // 英雄卡 - 抽卡凭证
ckey: 0, // 铜钥匙 - 解锁稀有英雄/兑换金币
skey: 0, // 银钥匙 - 解锁史诗英雄/兑换金币
gkey: 0 // 金钥匙 - 解锁传说英雄/兑换金币
}; };
/** /**
@@ -80,13 +69,7 @@ const DEFAULT_HEROS = {
* ID 1001-1007 对应不同类型的道具 * ID 1001-1007 对应不同类型的道具
*/ */
const DEFAULT_ITEMS = { const DEFAULT_ITEMS = {
1001: 0, // 生命药水
1002: 0, // 魔法药水
1003: 0, // 力量药水
1004: 0, // 敏捷药水
1005: 0, // 智力药水
1006: 0, // 复活卷轴
1007: 0 // 传送卷轴
}; };
/** /**
@@ -94,13 +77,7 @@ const DEFAULT_ITEMS = {
* ID 1001-1007 对应不同的天赋技能 * ID 1001-1007 对应不同的天赋技能
*/ */
const DEFAULT_TALS = { const DEFAULT_TALS = {
1001: 0, // 攻击强化
1002: 0, // 防御强化
1003: 0, // 生命强化
1004: 0, // 速度强化
1005: 0, // 暴击强化
1006: 0, // 经验强化
1007: 0 // 金币强化
}; };
/** /**
@@ -108,11 +85,7 @@ const DEFAULT_TALS = {
* ID 1001-1005 对应不同部位的装备 * ID 1001-1005 对应不同部位的装备
*/ */
const DEFAULT_EQUIPS = { const DEFAULT_EQUIPS = {
1001: 0, // 武器
1002: 0, // 头盔
1003: 0, // 胸甲
1004: 0, // 护腿
1005: 0 // 靴子
}; };
/** /**