This commit is contained in:
puxuan 2025-10-18 10:50:42 +08:00
parent 2a39d43518
commit a5f597c2cc
9 changed files with 69 additions and 32 deletions

View File

@ -1,27 +1,27 @@
local battle_exp = { local battle_exp = {
[1]={ [1]={
["exp"]=1 ["exp"]=10000
}, },
[2]={ [2]={
["exp"]=1 ["exp"]=10000
}, },
[3]={ [3]={
["exp"]=1 ["exp"]=10000
}, },
[4]={ [4]={
["exp"]=1 ["exp"]=10000
}, },
[5]={ [5]={
["exp"]=1 ["exp"]=10000
}, },
[6]={ [6]={
["exp"]=1 ["exp"]=10000
}, },
[7]={ [7]={
["exp"]=1 ["exp"]=10000
}, },
[8]={ [8]={
["exp"]=1 ["exp"]=10000
}, },
[9]={ [9]={
["exp"]=10000 ["exp"]=10000

View File

@ -1081,6 +1081,22 @@ local buff = {
["buff_type"]=7, ["buff_type"]=7,
["stack"]=0, ["stack"]=0,
["decr"]=3 ["decr"]=3
},
[113]={
["id"]=113,
["name"]="attr_monster_dmg_add",
["buff_type"]=1,
["stack"]=2,
["decr"]=3,
["is_percent"]=1
},
[114]={
["id"]=114,
["name"]="attr_boss_dmg_add",
["buff_type"]=1,
["stack"]=2,
["decr"]=3,
["is_percent"]=1
} }
} }
local keys = { local keys = {
@ -1196,12 +1212,14 @@ local keys = {
["blue_refresh_weight"]=buff[109], ["blue_refresh_weight"]=buff[109],
["purple_refresh_weight"]=buff[110], ["purple_refresh_weight"]=buff[110],
["random_universal"]=buff[111], ["random_universal"]=buff[111],
["main_hero_energyadd"]=buff[112] ["main_hero_energyadd"]=buff[112],
["attr_monster_dmg_add"]=buff[113],
["attr_boss_dmg_add"]=buff[114]
} }
} }
local config = { local config = {
data=buff, data=buff,
keys=keys, keys=keys,
count=112 count=114
} }
return config return config

View File

@ -281,12 +281,14 @@ local chapter = {
5 5
}, },
["not_involved_skill"]={ ["not_involved_skill"]={
16, 1,
17, 2,
18, 3,
42, 20,
43, 21,
44 22,
27,
32
}, },
["monster"]={ ["monster"]={
1020101, 1020101,

View File

@ -125,7 +125,7 @@ local skill_rogue = {
["qlt"]=5, ["qlt"]=5,
["type"]=5, ["type"]=5,
["attr"]={ ["attr"]={
["type"]="attr_monster_dmg", ["type"]="attr_monster_dmg_add",
["minnum"]=1500, ["minnum"]=1500,
["maxnum"]=1500 ["maxnum"]=1500
}, },
@ -141,7 +141,7 @@ local skill_rogue = {
["qlt"]=4, ["qlt"]=4,
["type"]=5, ["type"]=5,
["attr"]={ ["attr"]={
["type"]="attr_monster_dmg", ["type"]="attr_monster_dmg_add",
["minnum"]=1000, ["minnum"]=1000,
["maxnum"]=1000 ["maxnum"]=1000
}, },
@ -156,7 +156,7 @@ local skill_rogue = {
["qlt"]=3, ["qlt"]=3,
["type"]=5, ["type"]=5,
["attr"]={ ["attr"]={
["type"]="attr_monster_dmg", ["type"]="attr_monster_dmg_add",
["minnum"]=500, ["minnum"]=500,
["maxnum"]=500 ["maxnum"]=500
}, },
@ -171,7 +171,7 @@ local skill_rogue = {
["qlt"]=5, ["qlt"]=5,
["type"]=5, ["type"]=5,
["attr"]={ ["attr"]={
["type"]="attr_boss_dmg", ["type"]="attr_boss_dmg_add",
["minnum"]=1500, ["minnum"]=1500,
["maxnum"]=1500 ["maxnum"]=1500
}, },
@ -187,7 +187,7 @@ local skill_rogue = {
["qlt"]=4, ["qlt"]=4,
["type"]=5, ["type"]=5,
["attr"]={ ["attr"]={
["type"]="attr_boss_dmg", ["type"]="attr_boss_dmg_add",
["minnum"]=1000, ["minnum"]=1000,
["maxnum"]=1000 ["maxnum"]=1000
}, },
@ -202,7 +202,7 @@ local skill_rogue = {
["qlt"]=3, ["qlt"]=3,
["type"]=5, ["type"]=5,
["attr"]={ ["attr"]={
["type"]="attr_boss_dmg", ["type"]="attr_boss_dmg_add",
["minnum"]=500, ["minnum"]=500,
["maxnum"]=500 ["maxnum"]=500
}, },
@ -213,7 +213,7 @@ local skill_rogue = {
["universal"]=1, ["universal"]=1,
["toast_mark"]=13, ["toast_mark"]=13,
["limit_times"]=3, ["limit_times"]=3,
["weight"]=100000000000, ["weight"]=2000,
["qlt"]=4, ["qlt"]=4,
["type"]=5, ["type"]=5,
["attr"]={ ["attr"]={

View File

@ -382,6 +382,8 @@ local BUFF_NAME = {
GREEN_REFRESH_WEIGHT = "green_refresh_weight", GREEN_REFRESH_WEIGHT = "green_refresh_weight",
BLUE_REFRESH_WEIGHT = "blue_refresh_weight", BLUE_REFRESH_WEIGHT = "blue_refresh_weight",
PURPLE_REFRESH_WEIGHT = "purple_refresh_weight", PURPLE_REFRESH_WEIGHT = "purple_refresh_weight",
ATTR_MONSTER_DMG_ADD = "attr_monster_dmg_add",
ATTR_BOSS_DMG_ADD = "attr_boss_dmg_add",
} }
BattleConst.BUFF_NAME = BUFF_NAME BattleConst.BUFF_NAME = BUFF_NAME
@ -505,6 +507,11 @@ local ATTR_NAME = {
ATTR_ATKP_BLUE_ALL = "attr_atkp_blue_all", ATTR_ATKP_BLUE_ALL = "attr_atkp_blue_all",
ATTR_ATKP_PURPLE_ALL = "attr_atkp_purple_all", ATTR_ATKP_PURPLE_ALL = "attr_atkp_purple_all",
DMGDEC = "dmgdec", DMGDEC = "dmgdec",
ATTR_HPP_ALL = "attr_hpp_all",
ATTR_MONSTER_DMG = "attr_monster_dmg",
ATTR_BOSS_DMG = "attr_boss_dmg",
ATTR_NORMAL_HURTP = "attr_normal_hurtp",
ATTR_SKILL_HURTP = "attr_skill_hurtp",
INVINCIBLE_SHIELD = "invincible_shield", INVINCIBLE_SHIELD = "invincible_shield",
REBIRTH = "rebirth", REBIRTH = "rebirth",

View File

@ -87,7 +87,15 @@ BattleBuffHandle.addAttribute = {
end end
target.unitEntity:setAttr(ATTR_NAME.DEATH_SUMMON, num) target.unitEntity:setAttr(ATTR_NAME.DEATH_SUMMON, num)
return num return num
end end,
[BUFF_NAME.ATTR_MONSTER_DMG_ADD] = function(target, num)
target.unitEntity:addAttr(ATTR_NAME.ATTR_MONSTER_DMG, num, false)
return num
end,
[BUFF_NAME.ATTR_BOSS_DMG_ADD] = function(target, num)
target.unitEntity:addAttr(ATTR_NAME.ATTR_BOSS_DMG, num, false)
return num
end,
} }
local function _takeEffectDirectHurt(unitComp, buff, target, buffEffect) local function _takeEffectDirectHurt(unitComp, buff, target, buffEffect)

View File

@ -117,7 +117,7 @@ function BattlePauseUI:_refreshScrollRect()
-- valueStr = ModuleManager.HeroManager:getSkillRogueDesc(skillId, value) -- valueStr = ModuleManager.HeroManager:getSkillRogueDesc(skillId, value)
-- end -- end
if EDITOR_MODE then if EDITOR_MODE then
valueStr = valueStr .. "\n技能ID" .. skillId valueStr = valueStr .. "\n<color=#FF5050>技能ID" .. skillId .. "</color>"
end end
ModuleManager.TipsManager:showDescTips(valueStr, cell:getBaseObject()) ModuleManager.TipsManager:showDescTips(valueStr, cell:getBaseObject())
end) end)

View File

@ -889,6 +889,8 @@ function BattleBaseData:initHeroData(formation)
for matchType, attrName in pairs(GConst.MATCH_ALL_HURTP_NAME) do for matchType, attrName in pairs(GConst.MATCH_ALL_HURTP_NAME) do
unitData.attr[attrName] = heroEntity:getTotalAttrValue(attrName) unitData.attr[attrName] = heroEntity:getTotalAttrValue(attrName)
end end
unitData.attr[BattleConst.ATTR_NAME.ATTR_MONSTER_DMG] = heroEntity:getTotalAttrValue(BattleConst.ATTR_NAME.ATTR_MONSTER_DMG)
unitData.attr[BattleConst.ATTR_NAME.ATTR_BOSS_DMG] = heroEntity:getTotalAttrValue(BattleConst.ATTR_NAME.ATTR_BOSS_DMG)
local skillInfo = skillCfg[skillId] local skillInfo = skillCfg[skillId]
if skillInfo then if skillInfo then

View File

@ -246,9 +246,9 @@ function HeroEntity:_updateTotalAttr()
for k, v in pairs(self.starAttr) do for k, v in pairs(self.starAttr) do
self.allBaseAttr[k] = (self.allBaseAttr[k] or 0) + v self.allBaseAttr[k] = (self.allBaseAttr[k] or 0) + v
end end
for k, v in pairs(self.skinAttr) do -- for k, v in pairs(self.skinAttr) do
self.allBaseAttr[k] = (self.allBaseAttr[k] or 0) + v -- self.allBaseAttr[k] = (self.allBaseAttr[k] or 0) + v
end -- end
end end
function HeroEntity:getTotalAttrValue(name) function HeroEntity:getTotalAttrValue(name)
@ -624,15 +624,15 @@ function HeroEntity:getRogueSkillList()
end end
function HeroEntity:getRogueSkillListBattle() function HeroEntity:getRogueSkillListBattle()
if not self.rogueSkillList then if not self.rogueSkillListBattle then
self.rogueSkillList = {} self.rogueSkillListBattle = {}
local count = 1 local count = 1
while true do while true do
local ids = self.config["rouge_skill_" .. count] local ids = self.config["rouge_skill_" .. count]
if ids then if ids then
for i = #ids, 1, -1 do for i = #ids, 1, -1 do
if self.data.star >= ids[i][1] then if self.data.star >= ids[i][1] then
table.insert(self.rogueSkillList, ids[i][2]) table.insert(self.rogueSkillListBattle, ids[i][2])
break break
end end
end end
@ -643,7 +643,7 @@ function HeroEntity:getRogueSkillListBattle()
end end
end end
return self.rogueSkillList return self.rogueSkillListBattle
end end
function HeroEntity:getRogueSkillListByIdx(idx) function HeroEntity:getRogueSkillListByIdx(idx)