武器强化以及返还材料功能

This commit is contained in:
UnKownOwO
2023-02-04 23:52:40 +08:00
parent 67821ba780
commit cfb001c18a
13 changed files with 614 additions and 33 deletions

View File

@@ -3,6 +3,7 @@ package constant
var ItemConstantConst *ItemConstant
type ItemConstant struct {
// 虚拟物品
HCOIN uint32 // 原石 201
SCOIN uint32 // 摩拉 202
MCOIN uint32 // 创世结晶 203
@@ -11,6 +12,11 @@ type ItemConstant struct {
HOME_COIN uint32 // 洞天宝钱 204
PLAYER_EXP uint32 // 冒险阅历 102
VIRTUAL_ITEM_PROP map[uint32]uint16 // 虚拟物品对应玩家的属性
// 武器强化物品
WEAPON_UPGRADE_MAGIC uint32 // 精锻用魔矿 104013
WEAPON_UPGRADE_GOOD uint32 // 精锻用良矿 104012
WEAPON_UPGRADE_MOTLEY uint32 // 精锻用杂矿 104011
WEAPON_UPGRADE_MATERIAL []uint32 // 武器强化返还材料列表
}
func InitItemConstantConst() {
@@ -32,4 +38,12 @@ func InitItemConstantConst() {
ItemConstantConst.HOME_COIN: PlayerPropertyConst.PROP_PLAYER_HOME_COIN,
ItemConstantConst.PLAYER_EXP: PlayerPropertyConst.PROP_PLAYER_EXP,
}
ItemConstantConst.WEAPON_UPGRADE_MAGIC = 104013
ItemConstantConst.WEAPON_UPGRADE_GOOD = 104012
ItemConstantConst.WEAPON_UPGRADE_MOTLEY = 104011
ItemConstantConst.WEAPON_UPGRADE_MATERIAL = []uint32{
ItemConstantConst.WEAPON_UPGRADE_MAGIC,
ItemConstantConst.WEAPON_UPGRADE_GOOD,
ItemConstantConst.WEAPON_UPGRADE_MOTLEY,
}
}