boss技能

This commit is contained in:
puxuan 2025-09-05 15:04:14 +08:00
parent 77d01818ed
commit 160cc58d78
19 changed files with 89 additions and 113 deletions

View File

@ -2411,7 +2411,7 @@ local chapter = {
25 25
}, },
["monster"]={ ["monster"]={
4020101, 4021501,
4020201, 4020201,
4020301, 4020301,
4020401, 4020401,

View File

@ -7625,7 +7625,7 @@ local hero = {
1100, 1100,
1200 1200
}, },
["model_id"]="p35001", ["model_id"]="p35002",
["icon"]="35002", ["icon"]="35002",
["item_id"]=35002, ["item_id"]=35002,
["level_id"]=11, ["level_id"]=11,

View File

@ -2,7 +2,7 @@ local recovery = {
[3]={ [3]={
["type"]=1, ["type"]=1,
["time"]=600, ["time"]=600,
["limit"]=30 ["limit"]=60
}, },
[8]={ [8]={
["type"]=2, ["type"]=2,

View File

@ -3720,7 +3720,7 @@ local skill = {
}, },
["name_act"]="attack03", ["name_act"]="attack03",
["name_hit"]={ ["name_hit"]={
"suffer03" "suffer01"
}, },
["fx_self"]=300057, ["fx_self"]=300057,
["fx_self_mirror"]=400057 ["fx_self_mirror"]=400057
@ -4235,8 +4235,8 @@ local skill = {
}, },
["obj"]=2, ["obj"]=2,
["skill_position"]={ ["skill_position"]={
1, 2,
140 0
}, },
["shake_time"]=100, ["shake_time"]=100,
["shake_type"]=1, ["shake_type"]=1,
@ -4245,10 +4245,9 @@ local skill = {
}, },
["name_act"]="attack01", ["name_act"]="attack01",
["name_hit"]={ ["name_hit"]={
"suffer01" "suffer02"
}, },
["fx_self"]=300018, ["fx_self_mirror"]=100000
["fx_self_mirror"]=400018
}, },
[3500211]={ [3500211]={
["position"]=3, ["position"]=3,
@ -4264,8 +4263,8 @@ local skill = {
}, },
["obj"]=2, ["obj"]=2,
["skill_position"]={ ["skill_position"]={
1, 2,
140 0
}, },
["shake_time"]=100, ["shake_time"]=100,
["shake_type"]=1, ["shake_type"]=1,
@ -4274,10 +4273,9 @@ local skill = {
}, },
["name_act"]="attack02", ["name_act"]="attack02",
["name_hit"]={ ["name_hit"]={
"suffer02" "suffer01"
}, },
["fx_self"]=300019, ["fx_self_mirror"]=100000
["fx_self_mirror"]=400019
}, },
[3500212]={ [3500212]={
["position"]=3, ["position"]=3,
@ -4293,8 +4291,8 @@ local skill = {
}, },
["obj"]=2, ["obj"]=2,
["skill_position"]={ ["skill_position"]={
1, 2,
140 0
}, },
["shake_time"]=100, ["shake_time"]=100,
["shake_type"]=1, ["shake_type"]=1,
@ -4303,10 +4301,9 @@ local skill = {
}, },
["name_act"]="attack03", ["name_act"]="attack03",
["name_hit"]={ ["name_hit"]={
"suffer02" "suffer01"
}, },
["fx_self"]=300020, ["fx_self_mirror"]=100000
["fx_self_mirror"]=400020
}, },
[3500213]={ [3500213]={
["position"]=3, ["position"]=3,
@ -4322,8 +4319,8 @@ local skill = {
}, },
["obj"]=2, ["obj"]=2,
["skill_position"]={ ["skill_position"]={
1, 2,
140 0
}, },
["shake_time"]=100, ["shake_time"]=100,
["shake_type"]=1, ["shake_type"]=1,
@ -4332,10 +4329,9 @@ local skill = {
}, },
["name_act"]="attack04", ["name_act"]="attack04",
["name_hit"]={ ["name_hit"]={
"suffer02" "suffer01"
}, },
["fx_self"]=300021, ["fx_self_mirror"]=100000
["fx_self_mirror"]=400021
}, },
[3500220]={ [3500220]={
["energy"]=10, ["energy"]=10,
@ -4383,8 +4379,8 @@ local skill = {
4 4
}, },
["skill_position"]={ ["skill_position"]={
1, 2,
140 0
}, },
["shake_time"]=200, ["shake_time"]=200,
["shake_type"]=5, ["shake_type"]=5,
@ -4392,18 +4388,17 @@ local skill = {
["sound_delay"]=0.0, ["sound_delay"]=0.0,
["name_act"]="skill01", ["name_act"]="skill01",
["name_hit"]={ ["name_hit"]={
"suffer01",
"suffer02", "suffer02",
"suffer03", "suffer02",
"suffer02",
"suffer03" "suffer03"
}, },
["fx_self"]=300022,
["bullet_time"]={ ["bullet_time"]={
1167, 3630,
3000, 3000,
300 600
}, },
["fx_self_mirror"]=400022 ["fx_self_mirror"]=100000
}, },
[3500221]={ [3500221]={
["position"]=3, ["position"]=3,
@ -8725,8 +8720,8 @@ local skill = {
}, },
["obj"]=2, ["obj"]=2,
["skill_position"]={ ["skill_position"]={
1, 2,
140 0
}, },
["name_act"]="attack01", ["name_act"]="attack01",
["name_hit"]={ ["name_hit"]={
@ -8747,8 +8742,8 @@ local skill = {
}, },
["obj"]=2, ["obj"]=2,
["skill_position"]={ ["skill_position"]={
1, 2,
140 0
}, },
["name_act"]="attack02", ["name_act"]="attack02",
["name_hit"]={ ["name_hit"]={
@ -8769,8 +8764,8 @@ local skill = {
}, },
["obj"]=2, ["obj"]=2,
["skill_position"]={ ["skill_position"]={
1, 2,
140 0
}, },
["name_act"]="attack03", ["name_act"]="attack03",
["name_hit"]={ ["name_hit"]={
@ -8792,8 +8787,8 @@ local skill = {
}, },
["obj"]=2, ["obj"]=2,
["skill_position"]={ ["skill_position"]={
1, 2,
140 0
}, },
["cd"]=2, ["cd"]=2,
["cd_start"]=0, ["cd_start"]=0,
@ -8823,8 +8818,8 @@ local skill = {
}, },
["obj"]=2, ["obj"]=2,
["skill_position"]={ ["skill_position"]={
1, 2,
140 0
}, },
["name_act"]="attack01", ["name_act"]="attack01",
["name_hit"]={ ["name_hit"]={
@ -8845,8 +8840,8 @@ local skill = {
}, },
["obj"]=2, ["obj"]=2,
["skill_position"]={ ["skill_position"]={
1, 2,
140 0
}, },
["name_act"]="attack02", ["name_act"]="attack02",
["name_hit"]={ ["name_hit"]={
@ -8867,8 +8862,8 @@ local skill = {
}, },
["obj"]=2, ["obj"]=2,
["skill_position"]={ ["skill_position"]={
1, 2,
140 0
}, },
["name_act"]="attack03", ["name_act"]="attack03",
["name_hit"]={ ["name_hit"]={
@ -8912,8 +8907,8 @@ local skill = {
3 3
}, },
["skill_position"]={ ["skill_position"]={
1, 2,
140 0
}, },
["cd"]=2, ["cd"]=2,
["cd_start"]=0, ["cd_start"]=0,
@ -9114,7 +9109,7 @@ local skill = {
5, 5,
2 2
}, },
["battle_icon"]="45002", ["battle_icon"]="m20001_1",
["effect_type"]=1, ["effect_type"]=1,
["trigger"]=1, ["trigger"]=1,
["effect"]={ ["effect"]={

View File

@ -120,7 +120,7 @@ local localization_global =
["COUNTER_ATTACK_DESC"] = "反击", ["COUNTER_ATTACK_DESC"] = "反击",
["EXPIRES_IN_HOURS"] = "{0}小时到期", ["EXPIRES_IN_HOURS"] = "{0}小时到期",
["EXTRA_REWARDS"] = "额外奖励", ["EXTRA_REWARDS"] = "额外奖励",
["PLAYER_LEVEL_UP_DESC"] = "恭喜等级达到{0}级", ["PLAYER_LEVEL_UP_DESC"] = "等级提升",
["LEVEL_UP_REWARD"] = "升级奖励", ["LEVEL_UP_REWARD"] = "升级奖励",
["CLICK_TO_CONTINUE"] = "点击继续", ["CLICK_TO_CONTINUE"] = "点击继续",
["BOUNTY_DESC_4"] = "购买此通行证会超过通行证等级上限,会造成损失,是否购买?", ["BOUNTY_DESC_4"] = "购买此通行证会超过通行证等级上限,会造成损失,是否购买?",

View File

@ -17,15 +17,15 @@ local item = {
}, },
[5]={ [5]={
["name"]="普通信件", ["name"]="普通信件",
["desc"]="用于商城开启普通宝箱" ["desc"]="可以在普通招募中进行招募"
}, },
[6]={ [6]={
["name"]="高级信件", ["name"]="高级信件",
["desc"]="用于商城开启精致宝箱" ["desc"]="可以在高级招募中进行招募"
}, },
[7]={ [7]={
["name"]="神秘信件", ["name"]="神秘信件",
["desc"]="用于商城开启珍贵宝箱" ["desc"]="可以在限时招募中进行招募"
}, },
[8]={ [8]={
["name"]="竞技券", ["name"]="竞技券",

View File

@ -16,16 +16,13 @@ local item = {
["desc"]="Accumulate to a certain quantity for an upgrade." ["desc"]="Accumulate to a certain quantity for an upgrade."
}, },
[5]={ [5]={
["name"]="Common Key", ["name"]="Common Key"
["desc"]="Used to open Normal Chest in the shop."
}, },
[6]={ [6]={
["name"]="Exquisite Key", ["name"]="Exquisite Key"
["desc"]="Used to open Exquisite Chest in the shop."
}, },
[7]={ [7]={
["name"]="Precious Key", ["name"]="Precious Key"
["desc"]="Used to open Precious Chest in the shop."
}, },
[8]={ [8]={
["name"]="Entry Ticket", ["name"]="Entry Ticket",

View File

@ -16,16 +16,13 @@ local item = {
["desc"]="Acumular a cierta cantidad para subir de nivel." ["desc"]="Acumular a cierta cantidad para subir de nivel."
}, },
[5]={ [5]={
["name"]="Llave Normal", ["name"]="Llave Normal"
["desc"]="Se usa para abrir cofres comunes en la Tienda."
}, },
[6]={ [6]={
["name"]="Llave Refinada", ["name"]="Llave Refinada"
["desc"]="Se usa para abrir cofres refinados en la Tienda."
}, },
[7]={ [7]={
["name"]="Llave Preciosa", ["name"]="Llave Preciosa"
["desc"]="Se usa para abrir cofres preciosos en la Tienda."
}, },
[8]={ [8]={
["name"]="Boleto", ["name"]="Boleto",

View File

@ -16,16 +16,13 @@ local item = {
["desc"]="Kumpulkan hingga jumlah tertentu untuk upgrade." ["desc"]="Kumpulkan hingga jumlah tertentu untuk upgrade."
}, },
[5]={ [5]={
["name"]="Kunci Umum", ["name"]="Kunci Umum"
["desc"]="Gunakan untuk membuka Peti Umum di Mall."
}, },
[6]={ [6]={
["name"]="Kunci Indah", ["name"]="Kunci Indah"
["desc"]="Gunakan untuk membuka Peti Indah di Mall."
}, },
[7]={ [7]={
["name"]="Kunci Berharga", ["name"]="Kunci Berharga"
["desc"]="Gunakan untuk membuka Peti Premium di Mall."
}, },
[8]={ [8]={
["name"]="Tiket Masuk", ["name"]="Tiket Masuk",

View File

@ -16,16 +16,13 @@ local item = {
["desc"]="一定数まで貯めると、レベルアップができる。" ["desc"]="一定数まで貯めると、レベルアップができる。"
}, },
[5]={ [5]={
["name"]="普通の鍵", ["name"]="普通の鍵"
["desc"]="ショップで普通の宝箱を開ける際に使用する。"
}, },
[6]={ [6]={
["name"]="精巧の鍵", ["name"]="精巧の鍵"
["desc"]="ショップで精巧の宝箱を開ける際に使用する。"
}, },
[7]={ [7]={
["name"]="貴重の鍵", ["name"]="貴重の鍵"
["desc"]="ショップで貴重の宝箱を開ける際に使用する。"
}, },
[8]={ [8]={
["name"]="チケット", ["name"]="チケット",

View File

@ -16,16 +16,13 @@ local item = {
["desc"]="일정 횟수 누적되면 업그레이드할 수 있습니다." ["desc"]="일정 횟수 누적되면 업그레이드할 수 있습니다."
}, },
[5]={ [5]={
["name"]="일반 열쇠", ["name"]="일반 열쇠"
["desc"]="상점에서 일반 보물상자를 여는 데 사용됩니다."
}, },
[6]={ [6]={
["name"]="정교한 열쇠", ["name"]="정교한 열쇠"
["desc"]="상점에서 정교한 보물상자를 여는 데 사용됩니다."
}, },
[7]={ [7]={
["name"]="귀중한 열쇠", ["name"]="귀중한 열쇠"
["desc"]="상점에서 귀중한 보물상자를 여는 데 사용됩니다."
}, },
[8]={ [8]={
["name"]="입장권", ["name"]="입장권",

View File

@ -16,16 +16,13 @@ local item = {
["desc"]="Acumule uma certa quantidade para subir de nível." ["desc"]="Acumule uma certa quantidade para subir de nível."
}, },
[5]={ [5]={
["name"]="Chave Comum", ["name"]="Chave Comum"
["desc"]="Usada para abrir baús comuns na Loja."
}, },
[6]={ [6]={
["name"]="Chave Requintada", ["name"]="Chave Requintada"
["desc"]="Usada para abrir baús requintados na Loja."
}, },
[7]={ [7]={
["name"]="Chave Preciosa", ["name"]="Chave Preciosa"
["desc"]="Usada para abrir baús preciosos na Loja."
}, },
[8]={ [8]={
["name"]="Ingresso", ["name"]="Ingresso",

View File

@ -16,16 +16,13 @@ local item = {
["desc"]="สะสมถึงจำนวนที่กำหนดสามารถอัปเลเวลได้" ["desc"]="สะสมถึงจำนวนที่กำหนดสามารถอัปเลเวลได้"
}, },
[5]={ [5]={
["name"]="กุญแจทั่วไป", ["name"]="กุญแจทั่วไป"
["desc"]="ใช้ในห้างเพื่อเปิดหีบทั่วไป"
}, },
[6]={ [6]={
["name"]="กุญแจสวยงาม", ["name"]="กุญแจสวยงาม"
["desc"]="ใช้ในห้างเพื่อเปิดหีบสวยงาม"
}, },
[7]={ [7]={
["name"]="กุญแจล้ำค่า", ["name"]="กุญแจล้ำค่า"
["desc"]="ใช้ในห้างเพื่อเปิดหีบล้ำค่า"
}, },
[8]={ [8]={
["name"]="ตั๋วเข้าร่วม", ["name"]="ตั๋วเข้าร่วม",

View File

@ -16,16 +16,13 @@ local item = {
["desc"]="Tích lũy đạt số lượng nhất định được tăng cấp." ["desc"]="Tích lũy đạt số lượng nhất định được tăng cấp."
}, },
[5]={ [5]={
["name"]="Chìa Khóa Thường", ["name"]="Chìa Khóa Thường"
["desc"]="Dùng tại SHOP để mở Rương Thường."
}, },
[6]={ [6]={
["name"]="Chìa Khóa Tinh Xảo", ["name"]="Chìa Khóa Tinh Xảo"
["desc"]="Dùng tại SHOP để mở Rương Tinh Xảo."
}, },
[7]={ [7]={
["name"]="Chìa Khóa Quý", ["name"]="Chìa Khóa Quý"
["desc"]="Dùng tại SHOP để mở Rương Quý."
}, },
[8]={ [8]={
["name"]="", ["name"]="",

View File

@ -16,16 +16,13 @@ local item = {
["desc"]="累積達到特定數量可升級。" ["desc"]="累積達到特定數量可升級。"
}, },
[5]={ [5]={
["name"]="普通鑰匙", ["name"]="普通鑰匙"
["desc"]="可以在商城開啟普通寶箱。"
}, },
[6]={ [6]={
["name"]="精緻鑰匙", ["name"]="精緻鑰匙"
["desc"]="可以在商城開啟精緻寶箱。"
}, },
[7]={ [7]={
["name"]="珍貴鑰匙", ["name"]="珍貴鑰匙"
["desc"]="可以在商城開啟珍貴寶箱。"
}, },
[8]={ [8]={
["name"]="入場券", ["name"]="入場券",

View File

@ -1,6 +1,6 @@
local task_daily = { local task_daily = {
[101]={ [101]={
["task_type"]=21, ["task_type"]=22,
["number"]=1, ["number"]=1,
["value"]=20 ["value"]=20
}, },

View File

@ -1,6 +1,6 @@
local task_daily_stage = { local task_daily_stage = {
[101]={ [101]={
["point"]=40, ["point"]=30,
["reward"]={ ["reward"]={
{ {
["type"]=1, ["type"]=1,
@ -21,7 +21,7 @@ local task_daily_stage = {
} }
}, },
[102]={ [102]={
["point"]=80, ["point"]=50,
["reward"]={ ["reward"]={
{ {
["type"]=1, ["type"]=1,
@ -42,7 +42,7 @@ local task_daily_stage = {
} }
}, },
[103]={ [103]={
["point"]=120, ["point"]=80,
["reward"]={ ["reward"]={
{ {
["type"]=1, ["type"]=1,
@ -63,7 +63,7 @@ local task_daily_stage = {
} }
}, },
[104]={ [104]={
["point"]=160, ["point"]=100,
["reward"]={ ["reward"]={
{ {
["type"]=1, ["type"]=1,
@ -84,7 +84,7 @@ local task_daily_stage = {
} }
}, },
[105]={ [105]={
["point"]=200, ["point"]=120,
["reward"]={ ["reward"]={
{ {
["type"]=1, ["type"]=1,

View File

@ -7,15 +7,19 @@ function BossSkillCell:init()
local uiMap = self:getUIMap() local uiMap = self:getUIMap()
self.icon = uiMap["boss_skill_cell.icon"] self.icon = uiMap["boss_skill_cell.icon"]
self.roundTx = uiMap["boss_skill_cell.round_text"] self.roundTx = uiMap["boss_skill_cell.round_text"]
self.mask = uiMap["boss_skill_cell.mask"]
end end
function BossSkillCell:refresh(skillEntity) function BossSkillCell:refresh(skillEntity)
local skillId = skillEntity:getSkillId() local skillId = skillEntity:getSkillId()
local cd = skillEntity:getShowCd() local cd = skillEntity:getShowCd()
local coolCd = skillEntity:getShowCoolingRounds()
self.skillId = skillId self.skillId = skillId
local icon = ModuleManager.HeroManager:getSkillIcon(skillId) local icon = ModuleManager.HeroManager:getSkillIcon(skillId)
self.icon:setSprite(GConst.ATLAS_PATH.ICON_SKILL, icon) self.icon:setSprite(GConst.ATLAS_PATH.ICON_SKILL, icon)
self.roundTx:setText(cd + 1) self.roundTx:setText(cd + 1)
self.mask:getComponent(GConst.TYPEOF_UNITY_CLASS.UI_IMAGE).fillAmount = (cd + 1) / coolCd
end end
function BossSkillCell:setActive(active) function BossSkillCell:setActive(active)

View File

@ -132,6 +132,10 @@ function BattleSkillEntity:getShowCd()
return self.cd return self.cd
end end
function BattleSkillEntity:getShowCoolingRounds()
return self.coolingRounds
end
-- 技能释放完毕 -- 技能释放完毕
function BattleSkillEntity:endUse() function BattleSkillEntity:endUse()
self.cd = self.coolingRounds self.cd = self.coolingRounds