From 35c596a6ed34680d9af09788274051c1c212d4eb Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期一, 07 七月 2025 15:05:03 +0800 Subject: [PATCH] 129 【战斗】战斗系统-服务端(优化战斗武将跟NPC独立处理;去除程序无技能普攻,增加反击普攻;新增回合主动普攻技能功能类型23;) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py | 284 +++++++++++++++++--------------------------------------- 1 files changed, 88 insertions(+), 196 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py index 18818c9..27b0449 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py @@ -463,6 +463,8 @@ Def_ItemType_CanUseByCDTime = 145 # 创建后根据CDTime到后可开启 +Def_ItemType_Hero = 150 # 武将英雄 + #以下定义物品类型下次删除 Def_Item_Type_Horse = 1000036 #坐骑 @@ -555,6 +557,7 @@ Def_Effect_EmojiPack = 276 #表情包物品;A值-表情包ID Def_Effect_RecycleItemMoney = 277 #回收物品转化为货币; A值-直接给货币物品ID;B值-货币数量 Def_Effect_FamilyEmblem = 278 #激活仙盟徽章; A值-徽章ID; +Def_Effect_HeroSkin = 279 #激活武将皮肤; A值-武将ID;B值-皮肤索引 #----以下未使用或代码依然存在的--- Def_Effect_ItemGiveGongXun = 1920 #使用道具给予功勋 Def_Effect_ItemGiveRuneJH = 1925 #使用道具给予符印精华 @@ -568,8 +571,6 @@ #Def_Effect_PetSoul = 5504 #宠物满魂 #Def_Effect_PetItemAddExp = 2006 #给宠物经验道具 #Def_Effect_EnergyItem = 2600 #精力药剂 -#Def_Effect_BuyBackpack = 1144 #开启背包(n行)的物品效果ID -#Def_Effect_BuyWarehouse = 1145 #开启仓库(n行)的物品效果ID #Def_Effect_PetRewashSkill = 5506 #重洗技能 #Def_Effect_AddStarItemNormal = 1157 #普通升星物品效果ID #Def_Effect_AddStarItemHighLevel = 1158 #高级升星物品效果ID @@ -642,8 +643,6 @@ Def_Effect_Add_FreePoint_2 = 1169 #添加玩家属性分配点 Def_Effect_Add_FreePoint_3 = 1185 -#任务传送令 -Def_Item_Effect_MissionMove = 2001 #鱼竿 Def_Item_Effect_FishTool = 2000 #坐骑进阶 @@ -660,7 +659,6 @@ #写死的任务ID #新手任务 Def_MissionID_FirstLogin = 1 -Def_ConvoyTruckMissionID = 2401 # 护送镖车任务ID Def_ArrestMissionID = 8000 # 悬赏任务ID #--------------------------------------------------------------------- #写死的XMLID @@ -806,10 +804,8 @@ Def_SkillID_DoubleExp = -1 # 双倍经验系统中的双倍经验ID Def_SkillID_Justice = 11504 # 正义阵营 Def_SkillID_Evil = 11505 # 黑道阵营 -Def_SkillID_JoinExam = -1 # 答题Buff Def_SkillID_ActionWuDi = -1 # 活动无敌Buff Def_SkillID_ZhenQiRestore = -1 # 真气恢复加成BUFF -Def_SkillID_TruckAiMode = 20100 # 镖车AI模式BUFF Def_SkillTypeID_EfficientBattle = -1 #高效战斗类型ID,高效战斗buffID:49001~49008 Def_SkillTypeID_EfficientSit = -1 #高效练功类型ID Def_SkillID_XuanTianZhenYan = -1 # 玄天真言 @@ -920,8 +916,6 @@ #流向记录变更最小金币值(小于该值的暂不记录, 仅限金币) Def_DRRecord_Min_Silver = 500000 Def_LargeTrade_Silver = 1000 * 1000 -#主角交易栏最大格数 -Def_PlayerTradeMaxItemCount = 20 #登陆初始储物柜格子数 Def_PackCnt_Fashion = 1 #登陆初始武器时装格子数 @@ -1162,6 +1156,7 @@ ShareDefine.rptDogzItem, ShareDefine.rptDogzEquip, ShareDefine.rptGarbage, + ShareDefine.rptHero, ] #装备可强化背包列表 @@ -1196,9 +1191,6 @@ Type_Relation_Enemy = 1 #朋友 Type_Relation_Friend = 2 - -Def_NpcDictKey_CampType = 'CampType' -#阵营 三种 中立 正义 邪恶 CampType_Neutral = ShareDefine.CampType_Neutral # 中立 CampType_Justice = ShareDefine.CampType_Justice # 正义 @@ -1243,7 +1235,7 @@ ) = range(Def_UseSkillAim_Type) #技能施法目标类型, 修改此处应在Def_Dict_UseSkillTag_ObjType 相应更改 -Def_UseSkillTag_Type = 16 +Def_UseSkillTag_Type = 17 ( Def_UseSkillTag_None , #无需选择对象 0 Def_UseSkillTag_Self , #自己 1 @@ -1261,6 +1253,7 @@ Def_UseSkillTag_CanAttackBaseNPC, #可攻击的野外小怪(含精英)怪物 13 Def_UseSkillTag_FriendNPC, #友好NPC 14 Def_UseSkillTag_AppointNPC, #指定NPC 15 必须和效果值配合 Def_Skill_Effect_AppointNPC + Def_UseSkillTag_FriendDeath, #友方死亡目标16 ) = range( 0, Def_UseSkillTag_Type ) @@ -1299,6 +1292,13 @@ Def_ST_CanNPCUseSkill = [ Def_UseSkillTag_None, Def_UseSkillTag_Self, + ] + +#NPC技能:可以对友好目标释放的技能 +Def_ST_CanNPCUseSkillFriend = [ + Def_UseSkillTag_Friend, + Def_UseSkillTag_SelfAndFriend, + Def_UseSkillTag_FriendNPC, ] #自动攻击技能类型 @@ -1348,7 +1348,7 @@ Def_SkillType_PlsBuff : IPY_GameWorld.bfBuff , #增益BUFF 5 Def_SkillType_DepBuff : IPY_GameWorld.bfDeBuff , #减益BUFF 6 Def_SkillType_PassiveBuff : IPY_GameWorld.btPassiveBuf, # 被动技能 7 (废弃,无此定义分散为其他buff) - Def_SkillType_Revive : IPY_GameWorld.bfIncBuff, #复活 8 + #Def_SkillType_Revive : IPY_GameWorld.bfIncBuff, #复活 8 Def_SkillType_Increment : IPY_GameWorld.bfIncBuff, #增值技能(不可清除)9 Def_SkillType_Aura : IPY_GameWorld.bfAura , #光环技能 10 Def_SkillType_Equip : IPY_GameWorld.bfEquipBuff,#装备技能 11 @@ -1519,7 +1519,7 @@ #自动恢复计算间隔 Def_HPRestoreInterval = 5000 #允许重置的背包索引 -Def_CanItemResetPack = [IPY_GameWorld.rptItem, IPY_GameWorld.rptWarehouse, ShareDefine.rptTreasure, ShareDefine.rptGarbage] +Def_CanItemResetPack = [IPY_GameWorld.rptItem, IPY_GameWorld.rptWarehouse, ShareDefine.rptTreasure, ShareDefine.rptGarbage, ShareDefine.rptHero] #仓库分页个数 Def_ItemReset_WarehousePageCnt = 56 #玩家捡起物品的距离 8 @@ -1567,14 +1567,6 @@ ShareDefine.Def_Transport_Mission : Def_Transport_Type_Mission, # 任务传送 } -Def_MoveToTruck_Cost = 1000 #传送至镖车的花费 -#---------------------购买仓库空间费用------------------------ -Def_BuyWarehouse_Type = 1 # 购买仓库费用类型(金子) -Def_BuyWarehouse_Cost = 99 # 购买仓库每等级的费用 -#---------------------购买背包空间费用------------------------ -Def_BuyItemPack_Type = 1 # 购买背包费用类型(金子) -Def_BuyItemPack_Cost = 149 # 购买背包每等级的费用 -#--------------------------------------------------------------------- #---------------------进度条------------------------ #挖宝进度条时间为5秒 Def_DigMaxTime = 5000 @@ -1654,9 +1646,6 @@ #GM操作字符 Def_GM_Oper_ForbidAcc = 'GMOperForbidAcc' #GM操作符:踢出玩家 #--------------------------------------------------------------------- -#GM活动ID(10倍) -Def_GY_GM_GameID_MapGiveExp_Ten = 3000005 -Def_GY_GM_GameID_MapGiveExp_Fifty = 3000006 #------------ # 非c++定义的账号状态,py用的账号锁定,禁言,按位判断 @@ -1745,35 +1734,12 @@ #0:发呆状态, 1:移动, 2:死亡, 3:攻击 Def_NstNull, Def_NstMoving, Def_NstDead, Def_NstAttack = range(4) -#任务系统杀怪掉落任务道具公式 -Def_Event_Drop_Formula = "max(rate,(maxItem-curItemCount)/(maxMonsterCount+1-curMonsterCount),(baseDropCount-curItemCount)/max(1,(dropMonsterCount+1-curMonsterCount)))" -#每日任务的奖励公式 -Def_Day_Event_Exp_Reward_Formula = "baseExp" -#墓地医生扣费公式 -Def_Helth_Money_Formula = "(2 - curHP/float(maxHP) - curMP/float(maxMP))*3*pow(lv, 1.2)" -#任务镖车系统 -#骠车受到攻击的时候, 通知玩家的间隔 -Def_TruckNotifyToOwnerTick = 5000 -#镖车毁坏金钱奖励百分数 -Def_Day_Event_Truck_Destroy_Money = 0.2 -#镖车毁坏经验奖励百分数 -Def_Day_Event_Truck_Destroy_Exp = 0.8 -#镖车损坏,返回百分比押金 -Def_Day_Event_Truck_Destroy_Deposit = 0.2 -#镖车和人物的距离,移动 -Def_PlayerTurckBeginMoveDist = 1 -#判定镖车在事件范围内的距离 -Def_PlayerTruckEventDist = 10 -#镖车跟随 -Def_PlayerTruckMoveDist = Def_Screen_Area -#人镖合一的距离 -Def_PlayerTruckCarryerDist = Def_Screen_Area - -#---------------------------家族定义---------------------------- - -Def_Player_RequestAddFamilyMaxCnt = 200 #玩家申请加入家族的最大数量 (目前无限制 配个大的数值) - #-------------------------------#副本相关#------------------------ +# 主线小怪 +Def_FBMapID_Main = 1 +# 主线Boss +Def_FBMapID_MainBoss = 2 + #创角新手村地图ID列表 Def_CreatRoleMapIDList = [10000] #PK周赛 @@ -1891,9 +1857,6 @@ TurnFightMapIDList = ( Def_TFMapID_MineArea, # 福地 1 ) = range(1, 1 + 1) - -#回合战斗自定义地图需要发送GameServer的列表 -Def_TFMapID_SendToGameServer = [Def_TFMapID_MineArea] #前端自定义场景地图 ClientCustomSceneList = [Def_FBMapID_PersonalBoss, Def_FBMapID_ArenaBattle, Def_FBMapID_MirrorBattle] @@ -2248,9 +2211,6 @@ 180000, #获得地图经验3分钟一次 10000 , #家族战排期查询时间间隔 1分一次 - 2000 , #镖车查询和传送同CD10秒一次 - 2000 , #传送至镖车CD10秒一次 - 2000 , #设置镖车模式2秒一次 500 , #查看商城信息0.5秒一次 30000 , #自动查询玩家点券数目CD30秒 5000 , #副本帮助界面 5秒 @@ -2331,9 +2291,6 @@ TYPE_Player_Tick_GiveMapExp, #获得活动地图经验 TYPE_Player_Tick_QueryFamilyWar, #家族战排期查询 -TYPE_Player_Tick_QueryTruckPos, #镖车查询CD时间 -TYPE_Player_Tick_MoveToTruckPos, #传送至镖车时间 -TYPE_Player_Tick_SetTruckMode, #设置镖车模式 TYPE_Player_Tick_WatchStoreInfo, #查看商城的时间间隔 TYPE_Player_Tick_QueryCoinCount, #查询玩家点券数目 TYPE_Player_Tick_FBHelp, #副本帮助界面 @@ -2439,8 +2396,6 @@ TYPE_Map_Tick_Count = len( TYPE_Map_Tick_Time ) #--------------------------------------------------------------------- -#玩家Buff字典 -Def_Player_ProBuff_TruckSpeedUp = 'TruckSpeedUp' #镖车速度加速 #对象(玩家,NPC)的行为字典 Def_Obj_ActState_ClientAct = "Oper_ClientActState" # 客户端动作限制 @@ -2448,8 +2403,6 @@ Def_Obj_ActState_ClientSkill = "Oper_ClientSkillActState" # 客户端技能限制 Def_Obj_ActState_ServerSkill = "Oper_ServerSkillActState" # 服务端技能限制 -#玩家使用回城,包裹索引字典 -Def_Use_Item_303_Index = "use_item_303_index" #--------------------------------------------------------------------- #玩家视野(09/05/06 修改为静态) Def_PlayerSight_Default = 18 #玩家视野默认 @@ -2477,21 +2430,6 @@ TYPE_NPC_Tick_Count = len(TYPE_NPC_Tick_Time) -#--------------------------------------------------------------------- -#特殊任务状态定义: -#0 : 未接 -#-1: 已完成 -#-2: 骠车丢失 -#-3: 骠车被打烂 -#-4: 任务未达到可接状态 -#-5: 任务可提交 -#任务状态定义 -Def_Mission_State_NoAccept = 0 #未接 -Def_Mission_State_Over = -1 -Def_Mission_State_LoseTruck = -2 -Def_Mission_State_BreakTruck = -3 -Def_Mission_State_UnMission = -4 -Def_Mission_State_CanComplete = -5 #------------------------------------------------------------ #物品栏定义 #数据中的装备位置和程序中的装备位置对照表 @@ -2564,61 +2502,6 @@ TYPE_Time_Format_YmdHMS = "%Y%m%d%H%M%S" #--------------------------------------------------------------------- -#无限封存时间(10年) -Def_GMPower_MaxTime = 60*24*365*10 -#GM权限表 - -# GM命令 超级GM(1级) A级GM(2级) B级GM(3级) C级GM(4级) D级GM(5级) -Def_GMPower_Disc = { - 'GY_GM_PlayerDetailByID' : { 1 : True , 2 : True , 3 : True , 4 : True , 5 : True } , #角色查询 - 'GY_GM_MoveToPlayerByID' : { 1 : True , 2 : True , 3 : True , 4 : True , 5 : True } , #传送到玩家身边 - 'GY_GM_PullPlayerByID' : { 1 : True , 2 : True , 3 : True , 4 : True , 5 : True } , #把玩家拉到身边 - 'GY_GM_ViewBroadcast' : { 1 : True , 2 : True , 3 : True , 4 : False, 5 : False} , #查询公告 - 'GY_GM_ForbidFight' : { 1 : True , 2 : True , 3 : True , 4 : True , 5 : False} , #禁止战斗 - 'GY_GM_KickPlayer' : { 1 : True , 2 : True , 3 : True , 4 : True , 5 : True } , #踢玩家下线 - 'GY_GM_CloseAccID' : { 1 : True , 2 : True , 3 : True , 4 : True , 5 : False} , #帐号封存 - 'GY_GM_SetNoSight' : { 1 : True , 2 : True , 3 : True , 4 : True , 5 : True } , #设置隐身 - 'GY_GM_CancelNoSight' : { 1 : True , 2 : True , 3 : True , 4 : True , 5 : True } , #取消隐身 - 'GY_GM_ForbidTalk' : { 1 : True , 2 : True , 3 : True , 4 : False, 5 : False} , #禁止说话 - 'GY_GM_ChangeGMLV' : { 1 : True , 2 : False, 3 : False, 4 : False, 5 : False} , #更改权限 - 'GY_GM_SetExpRate' : { 1 : True , 2 : True , 3 : True , 4 : False, 5 : False} , #经验倍率 - 'GY_GM_StartGame' : { 1 : True , 2 : True , 3 : True , 4 : False, 5 : False} , #开启活动 - 'GY_GM_ViewGame' : { 1 : True , 2 : True , 3 : True , 4 : False, 5 : False} , #查询活动 - 'GY_GM_FindPlayerByID' : { 1 : True , 2 : True , 3 : True , 4 : True , 5 : True } , #查询玩家 - 'GY_GM_FindPlayerByName' : { 1 : True , 2 : True , 3 : True , 4 : True , 5 : True } , #查询玩家 - 'GY_GM_GivePlayerExp' : { 1 : True , 2 : True , 3 : True , 4 : True , 5 : True } , #给经验 - 'GY_GM_Broadcast' : { 1 : True , 2 : True , 3 : True , 4 : False, 5 : False} , #发布公告 - 'GY_GM_ViewWordExpRate' : { 1 : True , 2 : True , 3 : True , 4 : False, 5 : False} , #查看服务器经验倍率 - 'GY_GM_MapGiveExp' : { 1 : True , 2 : True , 3 : True , 4 : True , 5 : True } , #设置指定地图经验倍率 - 'GY_GM_Offline_FindPlayer': { 1 : True , 2 : True , 3 : True , 4 : True , 5 : True } , #脱机工具-查找玩家 - 'GY_GM_Offline_ViewItem' : { 1 : True , 2 : True , 3 : True , 4 : False, 5 : False} , #脱机工具-查看物品 - 'GY_GM_Offline_ViewAttribute' : { 1 : True , 2 : True , 3 : True , 4 : True , 5 : True } , #脱机工具-查看玩家属性 - 'GY_GM_Offline_ViewSkill': { 1 : True , 2 : True , 3 : True , 4 : True , 5 : True } , #脱机工具-查看玩家技能 - 'GY_GM_Offline_ViewTitle': { 1 : True , 2 : True , 3 : True , 4 : True , 5 : True } , #脱机工具-查看玩家称号 - 'GY_GM_Offline_ViewMoney': { 1 : True , 2 : True , 3 : True , 4 : True , 5 : True } , #脱机工具-查看玩家货币 - 'GY_GM_Offline_ViewGMOper': { 1 : True , 2 : True , 3 : True , 4 : True , 5 : True } , #脱机工具-查看玩家GM操作 - 'GY_GM_CloseBroadcast' : { 1 : True , 2 : True , 3 : True , 4 : False, 5 : False} , #脱机工具-消除公告 - 'GY_GM_Offline_UnBind' : { 1 : True , 2 : True , 3 : True , 4 : True , 5 : True } , #脱机工具-解封玩家 - 'GY_GM_Offline_ViewUnBind' : { 1 : True , 2 : True , 3 : True , 4 : True , 5 : True } , #脱机工具-查询玩家 - } - -#脱机GM工具索引表 -GMTool_Offline_IndexCount = 11 -( -GMTool_Offline_None , #无意义 -GMTool_Offline_Compose , #合成 -GMTool_Offline_StarLV , #升星 -GMTool_Offline_AutoBuyStarLV , #自动购买精致升星石 -GMTool_Offline_HealthReborn , #原地健康复活 (目前有用) -GMTool_Offline_IdentifyAgain , #鉴定再来一次 -GMTool_Offline_Mission , #任务消耗 (目前有用) -GMTool_Offline_FarRepair , #远程修理 (目前有用) -GMTool_Offline_ForgeFaBao , #法宝提炼 -GMTool_Offline_WorldTransfer, #世界传送 (目前有用,包括任务、小地图) -GMTool_Offline_AutoBuyGoldSpeaker, #自动购买金喇叭 (目前有用) -) = range( 0 , GMTool_Offline_IndexCount ) - -#--------------------------------------------------------------------- #请求类型(需要和GameServer中的一致) Def_QueryType_Count = 56 ( @@ -3019,36 +2902,6 @@ Def_KillValue_Notoriety = 1 # 杀人恶名值增1 Def_BeKilledValue_Notoriety = 2 # 被杀恶名值减2 -#---获取威望类型记录--- -( - Def_AddPrestige_DayMission, #每日任务 - Def_AddPrestige_Mission, #任务接口 - Def_AddPrestige_FamilyBattle, #家族争霸战 - Def_AddPrestige_Family, #家族战 - Def_AddPrestige_Kill, #中立杀人 - Def_AddPrestige_GM, #GM - Def_AddPrestige_Sacrifice, #帮会上香 - Def_AddPrestige_Cards, #卡牌 - Def_AddPrestige_JXD, #将星殿排行 - Def_AddPrestige_Item, #物品 - Def_AddPrestige_Arrest, #家族悬赏 - Def_AddPrestige_Truck, #镖车 - Def_AddPrestige_GloryWar, #荣耀之战 - Def_AddPrestige_JLD, #九龙殿 - Def_AddPrestige_Familys, #战盟战 - Def_AddPrestige_MYDHZ, #命运夺魂战/地精夺宝 - Def_AddPrestige_GiveFlower, #赠送鲜花 - Def_AddPrestige_NPC, #NPC给予 -) = range(1, 18+1) - -#---减少威望类型记录--- -( - Def_SubPrestige_BeKilled, #被杀 - Def_SubPrestige_DayUse, #每日消耗 - Def_SubPrestige_GM, #GM - -) = range(1, 3+1) - #---双倍经验记录--- ( Def_DoubleExpNote_Stop, #手动停止 @@ -3078,7 +2931,7 @@ # 回合攻击战斗类型 ( -TurnBattleType_Normal, # 普通 +TurnBattleType_Normal, # 常规攻击 TurnBattleType_Combo, # 连击 TurnBattleType_AtkBack, # 反击 ) = range(3) @@ -3086,9 +2939,22 @@ Def_PerTurnTick = 1000 # 每回合等同于常规tick时长 # 回合战斗目标类型 -TurnBattle_TagType_NPC = 0 +TurnBattle_TagType_NPCLineup = 0 # NPC阵容 TurnBattle_TagType_Player = 1 TurnBattle_TagType_Team = 2 + +#---Obj字典------- +Def_Obj_Dict_Faction = 'Faction' # 所属阵营 +Def_Obj_Dict_LineupPlayerID = 'LineupPlayerID' # 阵容所属玩家ID,可用于判断是否玩家阵容,PVP或PVE +Def_Obj_Dict_HeroID = 'HeroID' # 该战斗NPC所绑定的武将ID,一般仅玩家阵容有 +Def_Obj_Dict_SkinID = 'SkinID' # 该战斗NPC所绑定的武将皮肤ID,一般仅玩家阵容有 +Def_Obj_Dict_TurnFightPosInfo = 'TurnFightPosInfo' # 回合制站位: 阵营编号*100+阵型站位,阵型站位为0时代表非主战单位 +Def_Obj_Dict_TurnFightTimeline = 'TurnFightTimeline' # 回合制战斗时间线: 回合数*100+行动编号节点 +Def_Obj_Dict_TurnComboNum = 'TurnComboNum' # 单次累计连击次数 +Def_Obj_Dict_TurnAtkBackNum = 'TurnAtkBackNum' # 单次累计反击次数 +Def_Obj_Dict_TurnParryNum = 'TurnParryNum' # 单次累计格挡次数 +Def_Obj_Dict_TurnMissNum = 'TurnMissNum' # 单次累计闪避次数 +Def_Obj_Dict_TurnBattleType = 'TurnBattleType' # 本次攻击战斗类型:TurnBattleType_xxx #---NPC字典------- #每道龙卷风最终坐标 @@ -3315,6 +3181,7 @@ Def_PlayerKey_AttrPerLVAtk = "PerLVAtk" #每1级+%s攻击, 数值取万分率,支持小数算法 Def_PlayerKey_AttrPerLVMaxHP = "PerLVMaxHP" #每1级+%s生命, 数值为固定值 Def_PlayerKey_AttrShieldMPCostRate = "AttrShieldMPCostRate" #魔法盾伤害吸收蓝耗比率 +Def_PlayerKey_AttrXP = "AttrXP" #当前XP Def_PlayerKey_AttrXPRestorePer = "AttrXPRestorePer" #自动恢复XP值比率 Def_PlayerKey_MarkLoadMapTick = "LoadMapTickVIP" #记录切换地图后的tick,VIP Def_PlayerKey_MTFreeOnlineRefreshTick = "MTFreeOnlineRTick" # 寻宝在线计算时间 @@ -3518,7 +3385,6 @@ Def_Player_Dict_PlayerFromPID = "PlayerFromPID" # pid Def_Player_Dict_Account_Type = "account_type" # account_type Def_Player_Dict_FirstLogin = "FirstLogin" # 首登标记 0-未首登; 1-首登过 -Def_Player_Dict_RealLoginOK = "RealLoginOK" # 真正登录成功标记 Def_GuideStateKeyCount = 8 # 引导状态key最大个数 Def_Player_Dict_GuideState = "GuideState_%s" # 引导状态记录,参数为key个数编号 Def_Player_Dict_VersionFix = "VersionFix_%s" # 版本修正标记,参数为key个数编号, 支持n个版本修正标记,每个key支持31个 @@ -3561,6 +3427,7 @@ Def_Player_Dict_CabinetCount_Horse = "CabinetCount_Horse_42" #马匹收纳柜 Def_Player_Dict_PackCount_Item = "PackCount_Item_72" #玩家物品背包格子数 Def_Player_Dict_PackCount_Warehouse = "PackCount_Warehouse_73" #仓库背包格子数 +Def_Player_Dict_PackCount_Hero = "PackCount_Hero" #武将背包格子数 Def_Player_Dict_PlayerMapSignCnt = "PlayerMapSignCnt_75" # 大地图标记数量 Def_Player_Dict_PlayerBuyZhenQiCnt = "PlayerBuyZhenQiCnt_76" # 购买真气次数 Def_Player_Dict_PlayChangeLineID = "PlayChangeLineID" # 玩家主动切换线路记录 @@ -3598,8 +3465,6 @@ Def_Player_Dict_GameFuncAwardState = "GameFuncAwardState_%s" # 服务端功能开启领奖状态; 参数, key编号 Def_Player_Dict_MissionFinish = "MissionFinish_%s" # 任务是否完成; 参数, 任务ID, 只会记录部分需要记录的任务ID Def_Player_Dict_FamilyArrestAwardState = "ArrestAwardState_103" # 家族悬赏奖励领取情况 -Def_Player_Dict_OtherDayLogin = "OtherDayLogin_105" # 非同一天二次登陆 -Def_Player_Dict_LoginValid = "LoginValid_106" # 新增有效登陆标记 Def_Player_Dict_RequestAddFamilyCnt = "RequestAddFamilyCnt_107" # 已申请加入家族的个数 Def_Player_Dict_RequestAddFamilyID = "AddFamilyID%s_108" # 申请加入的家族ID, %s为第几个 Def_Player_Dict_LastFamilyID = "LastFamilyID" # 记录玩家上一个家族ID @@ -3608,18 +3473,11 @@ Def_Player_Dict_ActivityValueDay = "ActivityValueDay_117" #每日活跃值 Def_Player_Dict_GiveActivityAward = "GiveActivityAward_118" #每日活跃值奖励领取 Def_Player_CrazyBilling_VIP_Coin = "CrazyBillingVIPCoin_119" # 扶持账号真实充值 -Def_Player_Dict_LoginType = "LoginType_122" # 玩家登入方式 -Def_Player_Dict_TruckRefreshTotalCnt = "TruckRTCnt" # 玩家总刷新镖车等级次数 -Def_Player_Dict_FreeRefurbishTruckCnt = "FreeRefurbishTruckCnt" # 当日已免费刷新镖车等级次数 -Def_Player_Dict_TruckLV = "TruckLV_137" # 可召唤镖车等级 -Def_Player_Dict_DestroyTruckCnt = "DestroyTruckCnt_138" # 劫镖次数 -Def_Player_Dict_AutoTruck = "AutoTruck_139" # 是否自动运镖中 Def_Player_Dict_CommonNewGuyCardState = "CommonNGCard_%s" # 通用新手卡使用记录, 参数为key编号, 二进制位存储 Def_Player_Dict_IDNewGuyCardState = "IDNGCard_%s" # 绑定账号新手卡使用记录, 参数为key编号, 二进制位存储 Def_Player_Dict_UseNewGuyCardState = "NGCardState_%s" # 是否使用过某类型的新手卡,参数为key编号, 二进制位存储 Def_Player_Dict_UseMediaCardState = "MediaCardState_%s" # 按位存储是否使用过某类型的媒体卡,参数为key编号, 二进制位存储 Def_Player_Dict_UseNewGuyCardNum = "NGCardNum_%s" # 使用过某类型的新手卡的次数, 卡类型, 十进制位存储 -Def_Player_Dict_PawnTruckLV = "PawnTruckLV_144" # 当前押镖的镖车等级 Def_Player_Dict_KillPlayerAddPrestige = "KillPlayerAddPrestige_147" # 杀人每日获得威望 Def_Player_Dict_RandCoinAward = "RandCoinAward_148" # 每日任意充值奖励给予 Def_Player_Dict_DeadTime = "PlayerDeadTime_149" #玩家死亡时间 @@ -3994,10 +3852,6 @@ Def_PDict_NewFCPartyCurPoint = "NewFCPartyCurPoint" #全民来嗨活动当前总点数 Def_PDict_NewFCPartyAwardRecord = "NewFCPartyAwardRecord" #全民来嗨活动领奖记录 Def_PDict_NewFCCostGold = "NewFCCostGold" # 绝版降临总累计消费仙玉 - -#绑玉转盘 -Def_PDict_BindJadeWheelCurCnt = "BindJadeWheelCurCnt" # 今日已转次数 -Def_PDict_BindJadeWheelHistoryCnt = "BindJadeWheelHistoryCnt" # 历史已转次数 #限时抢购活动 Def_PDict_FlashSaleID = "FlashSaleID_%s" # 玩家身上的限时抢购活动ID,唯一标识,取活动开始日期time,参数(活动编号) @@ -4433,10 +4287,6 @@ Def_PDict_GFPassiveIndex = "GFP_%s_%s" # 被动功法 页数-索引 Def_PDict_GFPassivePage = "GFPPage" # 被动功法选中页数 -# 我要太极 -Def_PDict_Dice_Result = "DiceResult" # 我要太极结果 -Def_PDict_Dice_FreeChangeCnt = "DiceFreeChangeCnt" # 我要太极免费改投次数 - # 挂机收益 Def_PDict_GuajiCalcTime = "GuajiCalcTime" # 上次统计收益时间戳 Def_PDict_GuajiAwardSeconds = "GuajiAwardSeconds" # 已累计收益时长,秒 @@ -4548,6 +4398,13 @@ Def_PDict_TiandaoQiyun = "TiandaoQiyun" # 天道树当前气运 Def_PDict_TiandaoAward = "TiandaoAward_%s" # 天道树领奖记录,按奖励索引记录是否已领取,参数(key编号) +#武将 +Def_PDict_HeroSkin = "HeroSkin_%s" # 武将皮肤解锁状态,按皮肤索引二进制存储,参数(武将ID) +Def_PDict_HeroBook = "HeroBook_%s" # 武将图鉴激活等级,参数(武将ID) cccbbba a-初始激活状态1-英雄激活,2-初始图鉴激活; bbb-存星级图鉴激活等级;ccc-存突破图鉴激活等级 + +#主线 +Def_PDict_UnXiantaoCnt = "UnXiantaoCnt" # 累计未结算的战锤数 + #------------------------------------------------------------------------------- #可以从07 41封包购买的背包类型,和对应字典{背包类型:[字典key, 默认格子数]} @@ -4579,6 +4436,10 @@ IPY_GameWorld.rptWarehouse:[ Def_Player_Dict_PackCount_Warehouse, + 0], + + ShareDefine.rptHero:[ + Def_Player_Dict_PackCount_Hero, 0], #IPY_GameWorld.rptFineSoulSlot:[ @@ -4637,6 +4498,7 @@ AttrName_FightExpRate = "FightExpRate" # 杀怪经验倍率 AttrName_GameExpRate = "GameExpRate" # 游戏事件经验倍率 AttrName_SkillAtkRate = "SkillAtkRate" # 技能伤害加成 (用作伤害加成) +AttrName_AtkBackHP = "AtkBackHP" # 攻击回复血量固定值 AttrName_AtkBackHPPer = "AtkBackHPPer" # 攻击回复血量比率 AttrName_SuperHit = "SuperHit" # 暴击伤害固定值 AttrName_SuperHitRate = "SuperHitRate" # 暴击概率 @@ -4667,6 +4529,17 @@ AttrName_PetAtk = "PetAtk" # 灵宠攻击 AttrName_PetSkillAtkRate = "PetSkillAtkRate" # 灵宠技能 AttrName_PetDamPer = "PetDamPer" # 灵宠伤害增加 +AttrName_ComboDefRate = "ComboDefRate" # 抗连击概率 +AttrName_AtkBackRate = "AtkBackRate" # 反击概率 +AttrName_AtkBackDefRate = "AtkBackDefRate" # 抗反击概率 +AttrName_SuckHPPer = "SuckHPPer" # 吸血比率 +AttrName_SuckHPDefPer = "SuckHPDefPer" # 抗吸血比率 +AttrName_CurePer = "CurePer" # 强化治疗 +AttrName_CureDefPer = "CureDefPer" # 弱化治疗 +AttrName_PetStrengthenPer = "PetStrengthenPer" # 强化灵兽 +AttrName_PetWeakenPer = "PetWeakenPer" # 弱化灵兽 +AttrName_SuperHitHurtPer = "SuperHitHurtPer" # 强化暴伤 +AttrName_SuperHitHurtDefPer = "SuperHitHurtDefPer" # 弱化暴伤 #物品效果(ID或指定类型)对应的属性计算信息 {效果(ID/指定类型):[[属性索引, ...], 是否基础属性,(非)线性]} #对应 Def_Calc_AllAttrType_MAX @@ -4857,6 +4730,22 @@ ShareDefine.Def_Effect_FamilyWarHPPer:[[TYPE_Calc_FamilyWarHPPer], False, TYPE_Linear], ShareDefine.Def_Effect_FamilyWarAtkPer:[[TYPE_Calc_FamilyWarAtkPer], False, TYPE_Linear], ShareDefine.Def_Effect_FamilySitExpPer:[[TYPE_Calc_FamilySitExpPer], False, TYPE_Linear], + ShareDefine.Def_Effect_ComboDefRate:[[TYPE_Calc_ComboDefRate], False, TYPE_Linear], + AttrName_ComboDefRate:[[TYPE_Calc_ComboDefRate], False, TYPE_Linear], + ShareDefine.Def_Effect_AtkBackRate:[[TYPE_Calc_AtkBackRate], False, TYPE_Linear], + AttrName_AtkBackRate:[[TYPE_Calc_AtkBackRate], False, TYPE_Linear], + ShareDefine.Def_Effect_AtkBackDefRate:[[TYPE_Calc_AtkBackDefRate], False, TYPE_Linear], + AttrName_AtkBackDefRate:[[TYPE_Calc_AtkBackDefRate], False, TYPE_Linear], + ShareDefine.Def_Effect_SuckHPPer:[[TYPE_Calc_SuckHPPer], False, TYPE_Linear], + AttrName_SuckHPPer:[[TYPE_Calc_SuckHPPer], False, TYPE_Linear], + ShareDefine.Def_Effect_SuckHPDefPer:[[TYPE_Calc_SuckHPDefPer], False, TYPE_Linear], + AttrName_SuckHPDefPer:[[TYPE_Calc_SuckHPDefPer], False, TYPE_Linear], + ShareDefine.Def_Effect_CurePer:[[TYPE_Calc_CurePer], False, TYPE_Linear], + ShareDefine.Def_Effect_CureDefPer:[[TYPE_Calc_CureDefPer], False, TYPE_Linear], + ShareDefine.Def_Effect_PetStrengthenPer:[[TYPE_Calc_PetStrengthenPer], False, TYPE_Linear], + ShareDefine.Def_Effect_PetWeakenPer:[[TYPE_Calc_PetWeakenPer], False, TYPE_Linear], + ShareDefine.Def_Effect_SuperHitHurtPer:[[TYPE_Calc_SuperHitHurtPer], False, TYPE_Linear], + ShareDefine.Def_Effect_SuperHitHurtDefPer:[[TYPE_Calc_SuperHitHurtDefPer], False, TYPE_Linear], #战斗非线性 ShareDefine.Def_Effect_SuperHitPer:[[TYPE_Calc_SuperHit], False, TYPE_NoLinear], @@ -5385,8 +5274,6 @@ #-----------以下为暂时没用的,先不删除,如有新增消费点则放在这些之前------------ Def_Cost_RefreshArrestTask, # 刷新悬赏任务 Def_Cost_OffLineExp, # 兑换离线经验 -Def_Cost_RefreshTruck, # 刷新镖车 -Def_Cost_FinishTruck, # 完成镖车 Def_Cost_RefreshTimeShop, # 刷新神秘商店 Def_Cost_OpenNoble, # 开通贵族 Def_Cost_Warehouse, # 仓库 @@ -5394,7 +5281,7 @@ Def_Cost_Trade, # 交易 Def_Cost_Rename, # 改名 Def_Cost_SkillLvUp, # 技能升级 -) = range(2000, 2000 + 69) +) = range(2000, 2000 + 67) Def_Cost_Reason_SonKey = "reason_name_son" # 消费点原因子类说明key @@ -5429,8 +5316,6 @@ Def_Cost_UseSpeaker:"UseSpeaker", Def_Cost_Revive:"Revive", Def_Cost_FBEncourage:"FBEncourage", -Def_Cost_RefreshTruck:"RefreshTruck", -Def_Cost_FinishTruck:"FinishTruck", Def_Cost_RefreshArrestTask:"RefreshArrestTask", Def_Cost_RefreshTimeShop:"RefreshTimeShop", Def_Cost_ResetGreatMasterSkill:"ResetTalentSkill", @@ -5513,7 +5398,7 @@ Def_GiveMoney_BossFirstKill, # Boss首杀 Def_GiveMoney_21, Def_GiveMoney_Trade, # 交易 -Def_GiveMoney_Truck, # 运镖 +Def_GiveMoney_23, Def_GiveMoney_FreeGoods, # 极品白拿 Def_GiveMoney_BindJadeWheel, # 绑玉转盘 25 Def_GiveMoney_GatherSoulDecompose, #聚魂分解 26 @@ -5550,7 +5435,6 @@ Def_GiveMoney_CollectNPC:"CollectNPC", Def_GiveMoney_BossFirstKill:"BossFirstKill", Def_GiveMoney_Trade:"Trade", -Def_GiveMoney_Truck:"Truck", Def_GiveMoney_FreeGoods:"FreeGoods", Def_GiveMoney_BindJadeWheel:"BindJadeWheel", Def_GiveMoney_GatherSoulDecompose:"GatherSoulDecompose", @@ -5872,8 +5756,9 @@ ntMonsterTime, #按时间掉血的怪物 22 废弃,以是否有配置在时间掉血怪物表为准 ntPriWoodPilePVE, #专属私有木桩 - PVE 23 ntPriWoodPilePVP, #专属私有木桩 - PVP 24 +ntHero, #武将英雄 25 ntMax -) = range(26) +) = range(27) (Def_SkillFuncType_Common, #0为通用技能 @@ -5899,7 +5784,8 @@ Def_SkillFuncType_ShentongSkill, #20 神通技能 Def_SkillFuncType_ElfSkill, #21 精怪技能 Def_SkillFuncType_GatherTheSoul, #22 聚魂技能 -) = range(23) +Def_SkillFuncType_TurnNormaAttack, #23 回合普攻技能 +) = range(24) # 受技能效果完全影响的怪, 对应 Def_BattleRelationType_CommNoBoss Def_SkillAttack_NPCIsBoss = [ Def_NPCType_Ogre_Normal , #平凡小怪 0 # c++ 定义为普通NPC视野刷新 @@ -5915,6 +5801,12 @@ Def_BattleRelationType_CommNoBoss, # 除了(指定)BOSS,可对其释放技能,但是无实际效果 ) = range(0, 4) +# 近战远程 +AtkDistTypeList = ( +AtkDistType_Short, # 近战 +AtkDistType_Long, # 远程 +) = range(1, 1 + 2) + # 经验倍率限制类型 ( ExpRateLimitType_Recover, # 资源找回 -- Gitblit v1.8.0