| | |
| | | Def_ItemType_ResetAttrPoint = 59 #洗点卷轴 使用后将某个属性一定值变为未分配属性
|
| | |
|
| | | Def_ItemType_DogzEquipExp = 70 # 神兽装备经验
|
| | | Def_ItemType_DogzEquipHorn = 71 # 神兽装备兽角
|
| | | Def_ItemType_DogzEquipEye = 72 # 神兽装备魔眼
|
| | | Def_ItemType_DogzEquipTooth = 73 # 神兽装备獠牙
|
| | | Def_ItemType_DogzEquipClaw = 74 # 神兽装备兽爪
|
| | | Def_ItemType_DogzEquipSquama = 75 # 神兽装备鳞甲
|
| | |
|
| | | Def_ItemType_TreasureBox = 81 #不限制开启条件宝箱
|
| | | Def_ItemType_TreasureBox2 = 82 #限制开启条件宝箱
|
| | |
| | | Def_ItemType_retBaldric5 = 117 #17 佩饰
|
| | | Def_ItemType_retBaldric6 = 118 #18 佩饰
|
| | |
|
| | | Def_ItemType_DogzEquipHorn = 119 # 神兽兽角
|
| | | Def_ItemType_DogzEquipEye = 120 # 神兽魔眼
|
| | | Def_ItemType_DogzEquipTooth = 121 # 神兽獠牙
|
| | | Def_ItemType_DogzEquipClaw = 122 # 神兽兽爪
|
| | | Def_ItemType_DogzEquipScute = 123 # 神兽鳞甲
|
| | |
|
| | | #以下定义物品类型下次删除
|
| | | Def_Item_Type_Horse = 1000036 #坐骑
|
| | |
|
| | |
| | | }
|
| | |
|
| | | #虚拟背包可以放入的物品字典
|
| | | Def_VPackItem_Dict = {
|
| | | Def_PackItemTypeList_Dict = {
|
| | | ShareDefine.rptRune:[Def_ItemType_Rune, Def_ItemType_RuneExp],
|
| | | ShareDefine.rptDogzItem:[Def_ItemType_DogzEquipExp, Def_ItemType_DogzEquipHorn, Def_ItemType_DogzEquipEye, |
| | | Def_ItemType_DogzEquipTooth, Def_ItemType_DogzEquipClaw, Def_ItemType_DogzEquipScute],
|
| | | }
|
| | |
|
| | | def GetItemPackType(itemType):
|
| | | def GetItemPackType(itemType, defaultPack=IPY_GameWorld.rptItem):
|
| | | ## 获取物品类型对应存放的默认背包类型
|
| | | for pack, itemTypeList in Def_VPackItem_Dict.items():
|
| | | for pack, itemTypeList in Def_PackItemTypeList_Dict.items():
|
| | | if itemType in itemTypeList:
|
| | | return pack
|
| | | return IPY_GameWorld.rptItem
|
| | | return defaultPack
|
| | |
|
| | | # 部位对应装备类型列表
|
| | | Def_PlaceEquipType = {
|
| | |
| | | Def_Effect_ResetAttrPoint = 231 # 洗点
|
| | | Def_Effect_AddFBCnt = 233 # 增加副本可进入次数
|
| | | Def_Effect_AddKillBossCnt = 234 # 增加BOSS可击杀次数
|
| | | Def_Effect_DogzEquipPlusExp = 235 # 神兽强化材料经验效果,A值基础经验,B值双倍强化消耗仙玉
|
| | |
|
| | | #----以下未使用或代码依然存在的---
|
| | | Def_Effect_ItemGiveGongXun = 1920 #使用道具给予功勋
|
| | |
| | |
|
| | | Def_EquipItemType_TJGAutoEat = xrange(Def_ItemType_retWeapon, Def_ItemType_retShoes + 1)
|
| | | #装备类型
|
| | | Def_EquipItemType = xrange(Def_ItemType_retWeapon, Def_ItemType_retBaldric6 + 1)
|
| | | Def_EquipItemType = xrange(Def_ItemType_retWeapon, Def_ItemType_DogzEquipScute + 1)
|
| | |
|
| | | #武器类型
|
| | | Def_WeaponItemType = [Def_ItemType_retWeapon, Def_ItemType_retWeapon2]
|
| | |
|
| | | #神兽装备类型
|
| | | Def_DogzEquiipType = xrange(Def_ItemType_DogzEquipHorn, Def_ItemType_DogzEquipScute + 1)
|
| | |
|
| | | # 技能造成实质性伤害的类型
|
| | | Def_RealAttack_Type = [Def_HurtType_Normal, # 普通伤害 1
|
| | |
| | | Def_PackCnt_OfficerSkill = 0
|
| | | #寻宝背包格子数
|
| | | Def_PackCnt_Treasure = 100
|
| | | #初始化神兽背包格子数
|
| | | Def_PackCnt_DogzItem = 100
|
| | | #初始化神兽装备格子数
|
| | | Def_PackCnt_DogzEquip = 100
|
| | | #初始化装备栏2
|
| | | Def_PackCnt_Equip2 = 0
|
| | | #初始化回收站
|
| | |
| | | ShareDefine.rptTempItem,
|
| | | ShareDefine.rptTreasure,
|
| | | ShareDefine.rptPet,
|
| | | ShareDefine.rptDogzItem,
|
| | | ShareDefine.rptDogzEquip,
|
| | | ]
|
| | |
|
| | | #装备可强化背包列表
|
| | |
| | | #套装
|
| | | Def_PDict_EquipPartSuiteLV = "EQPartSuiteLV_%s_%s" #部位套装等级 参数 部位、套装类型
|
| | | Def_PDict_EquipPartSuiteNotify = "EQPartSuiteNotify_%s_%s_%s" #部位套装提示记录 参数 组合类型、套装类型、X件
|
| | |
|
| | | #神兽
|
| | | Def_PDict_DogzFightState = "DogzFightState_%s" # 神兽助战状态,参数为key编号,按神兽ID二进制位存储
|
| | | Def_PDict_DogzBuyHelpbattleCount = "DogzBuyHelpbattleCount" # 额外购买的神兽助战位
|
| | |
|
| | | #-------------------------------------------------------------------------------
|
| | | #可以从07 41封包购买的背包类型,和对应字典{背包类型:[字典key, 默认格子数]}
|
| | |
|
| | |
| | | Def_CalcAttrFunc_StoveYao, # 炼丹炉丹药 32
|
| | | Def_CalcAttrFunc_PetSign, # 宠物签到 33
|
| | | Def_CalcAttrFunc_MagicWeaponSoul, # 法宝之魂属性34
|
| | | ) = range(35)
|
| | | Def_CalcAttrFunc_Dogz, # 神兽35
|
| | | ) = range(36)
|
| | |
|
| | |
|
| | | # 在此列表中的功能属性,不享受百分比加成,--属性参与战力计算
|
| | |
| | | ShareDefine.Def_MFPType_MagicWeapon3:[Def_CalcAttrFunc_MagicWeapon3, Def_CalcAttrFunc_Stove, Def_CalcAttrFunc_VIP],
|
| | | ShareDefine.Def_MFPType_StoveYao:[Def_CalcAttrFunc_StoveYao],
|
| | | ShareDefine.Def_MFPType_MagicWeaponSoul:[Def_CalcAttrFunc_MagicWeaponSoul],
|
| | | ShareDefine.Def_MFPType_Dogz:[Def_CalcAttrFunc_Dogz],
|
| | | ShareDefine.Def_MFPType_Other:[Def_CalcAttrFunc_Success, Def_CalcAttrFunc_FamilyTech, Def_CalcAttrFunc_EquipDecompose],
|
| | | }
|
| | |
|
| | |
| | | Def_Cost_EnterFB, # 进入副本
|
| | | Def_Cost_GameServer, # GameServer 30
|
| | | Def_Cost_FreeGoods, # 极品白拿
|
| | | Def_Cost_DogzEquipPlus, # 神兽装备强化
|
| | | #-----------以下为暂时没用的,先不删除,如有新增消费点则放在这些之前------------
|
| | | Def_Cost_RefreshArrestTask, # 刷新悬赏任务
|
| | | Def_Cost_OffLineExp, # 兑换离线经验
|
| | |
| | | Def_Cost_Trade, # 交易
|
| | | Def_Cost_Rename, # 改名
|
| | | Def_Cost_SkillLvUp, # 技能升级
|
| | | ) = range(2000, 2000 + 52)
|
| | | ) = range(2000, 2000 + 53)
|
| | |
|
| | | Def_Cost_Reason_SonKey = "reason_name_son" # 消费点原因子类说明key
|
| | |
|
| | |
| | | Def_Cost_FamilyBroadcast:"FamilyBroadcast",
|
| | | Def_Cost_FamilyRedPacket:"FamilyRedPacket",
|
| | | Def_Cost_FreeGoods:"FreeGoods",
|
| | | Def_Cost_DogzEquipPlus:"DogzEquipPlus",
|
| | | }
|
| | | ## -----------------------------------------------------
|
| | |
|
| | |
| | | ItemDel_EquipSuit, # 套装 30
|
| | | ItemDel_AddFBCnt, # 增加副本可进入次数 31
|
| | | ItemDel_AddKillBossCnt, # 增加BOSS可击杀次数 32
|
| | | ) = range(2000, 2000 + 33)
|
| | | ItemDel_DogzEquipPlus, # 神兽装备强化
|
| | | ) = range(2000, 2000 + 34)
|
| | |
|
| | | # 物品扣除类型对应信息 {类型:eventName, ...}
|
| | | ItemDelTypeDict = {
|
| | |
| | | ItemDel_EquipSuit:"EquipSuit",
|
| | | ItemDel_AddFBCnt:"AddFBCnt",
|
| | | ItemDel_AddKillBossCnt:"AddKillBossCnt",
|
| | | ItemDel_DogzEquipPlus:"DogzEquipPlus",
|
| | | }
|
| | |
|
| | | ##==================================================================================================
|