Merge branch 'dev' of git.juzugame.com:b6-client/b6-lua into dev
This commit is contained in:
commit
7ae76d3438
@ -266,6 +266,7 @@ local buff = {
|
|||||||
["buff_type"]=8,
|
["buff_type"]=8,
|
||||||
["decr"]=2,
|
["decr"]=2,
|
||||||
["icon"]="stun",
|
["icon"]="stun",
|
||||||
|
["show_name"]=true,
|
||||||
["control_priority"]=2,
|
["control_priority"]=2,
|
||||||
["fx_continued"]={
|
["fx_continued"]={
|
||||||
13
|
13
|
||||||
@ -297,6 +298,7 @@ local buff = {
|
|||||||
["buff_type"]=1,
|
["buff_type"]=1,
|
||||||
["decr"]=2,
|
["decr"]=2,
|
||||||
["icon"]="normal_attack_dec",
|
["icon"]="normal_attack_dec",
|
||||||
|
["show_name"]=true,
|
||||||
["fx_get"]={
|
["fx_get"]={
|
||||||
32
|
32
|
||||||
}
|
}
|
||||||
@ -308,6 +310,7 @@ local buff = {
|
|||||||
["stack"]=2,
|
["stack"]=2,
|
||||||
["decr"]=1,
|
["decr"]=1,
|
||||||
["icon"]="high",
|
["icon"]="high",
|
||||||
|
["show_name"]=true,
|
||||||
["fx_get"]={
|
["fx_get"]={
|
||||||
30
|
30
|
||||||
}
|
}
|
||||||
@ -396,6 +399,7 @@ local buff = {
|
|||||||
["decr"]=2,
|
["decr"]=2,
|
||||||
["formula"]=4,
|
["formula"]=4,
|
||||||
["icon"]="burn",
|
["icon"]="burn",
|
||||||
|
["show_name"]=true,
|
||||||
["fx_take"]={
|
["fx_take"]={
|
||||||
36
|
36
|
||||||
}
|
}
|
||||||
@ -416,6 +420,7 @@ local buff = {
|
|||||||
["buff_type"]=7,
|
["buff_type"]=7,
|
||||||
["decr"]=2,
|
["decr"]=2,
|
||||||
["icon"]="frozen",
|
["icon"]="frozen",
|
||||||
|
["show_name"]=true,
|
||||||
["control_priority"]=1,
|
["control_priority"]=1,
|
||||||
["fx_continued"]={
|
["fx_continued"]={
|
||||||
16
|
16
|
||||||
@ -432,6 +437,7 @@ local buff = {
|
|||||||
["decr"]=2,
|
["decr"]=2,
|
||||||
["formula"]=4,
|
["formula"]=4,
|
||||||
["icon"]="poison",
|
["icon"]="poison",
|
||||||
|
["show_name"]=true,
|
||||||
["fx_take"]={
|
["fx_take"]={
|
||||||
35
|
35
|
||||||
}
|
}
|
||||||
@ -442,6 +448,7 @@ local buff = {
|
|||||||
["buff_type"]=7,
|
["buff_type"]=7,
|
||||||
["decr"]=2,
|
["decr"]=2,
|
||||||
["icon"]="imprison",
|
["icon"]="imprison",
|
||||||
|
["show_name"]=true,
|
||||||
["control_priority"]=4,
|
["control_priority"]=4,
|
||||||
["fx_get"]={
|
["fx_get"]={
|
||||||
29
|
29
|
||||||
@ -453,6 +460,7 @@ local buff = {
|
|||||||
["buff_type"]=1,
|
["buff_type"]=1,
|
||||||
["decr"]=2,
|
["decr"]=2,
|
||||||
["icon"]="corrupt",
|
["icon"]="corrupt",
|
||||||
|
["show_name"]=true,
|
||||||
["fx_get"]={
|
["fx_get"]={
|
||||||
19
|
19
|
||||||
}
|
}
|
||||||
@ -464,6 +472,7 @@ local buff = {
|
|||||||
["decr"]=2,
|
["decr"]=2,
|
||||||
["formula"]=4,
|
["formula"]=4,
|
||||||
["icon"]="bleed",
|
["icon"]="bleed",
|
||||||
|
["show_name"]=true,
|
||||||
["fx_take"]={
|
["fx_take"]={
|
||||||
31
|
31
|
||||||
}
|
}
|
||||||
@ -474,6 +483,7 @@ local buff = {
|
|||||||
["buff_type"]=1,
|
["buff_type"]=1,
|
||||||
["decr"]=2,
|
["decr"]=2,
|
||||||
["icon"]="weaken",
|
["icon"]="weaken",
|
||||||
|
["show_name"]=true,
|
||||||
["fx_continued"]={
|
["fx_continued"]={
|
||||||
33
|
33
|
||||||
}
|
}
|
||||||
@ -485,6 +495,7 @@ local buff = {
|
|||||||
["stack"]=1,
|
["stack"]=1,
|
||||||
["decr"]=2,
|
["decr"]=2,
|
||||||
["icon"]="lethargy",
|
["icon"]="lethargy",
|
||||||
|
["show_name"]=true,
|
||||||
["control_priority"]=3,
|
["control_priority"]=3,
|
||||||
["fx_continued"]={
|
["fx_continued"]={
|
||||||
28
|
28
|
||||||
@ -496,6 +507,7 @@ local buff = {
|
|||||||
["buff_type"]=1,
|
["buff_type"]=1,
|
||||||
["decr"]=2,
|
["decr"]=2,
|
||||||
["icon"]="curse",
|
["icon"]="curse",
|
||||||
|
["show_name"]=true,
|
||||||
["fx_get"]={
|
["fx_get"]={
|
||||||
37
|
37
|
||||||
}
|
}
|
||||||
@ -505,7 +517,8 @@ local buff = {
|
|||||||
["name"]="lock",
|
["name"]="lock",
|
||||||
["buff_type"]=7,
|
["buff_type"]=7,
|
||||||
["decr"]=2,
|
["decr"]=2,
|
||||||
["icon"]="lock"
|
["icon"]="lock",
|
||||||
|
["show_name"]=true
|
||||||
},
|
},
|
||||||
[59]={
|
[59]={
|
||||||
["id"]=59,
|
["id"]=59,
|
||||||
@ -527,6 +540,7 @@ local buff = {
|
|||||||
["buff_type"]=7,
|
["buff_type"]=7,
|
||||||
["decr"]=1,
|
["decr"]=1,
|
||||||
["icon"]="undead",
|
["icon"]="undead",
|
||||||
|
["show_name"]=true,
|
||||||
["fx_continued"]={
|
["fx_continued"]={
|
||||||
15
|
15
|
||||||
}
|
}
|
||||||
@ -537,7 +551,8 @@ local buff = {
|
|||||||
["buff_type"]=1,
|
["buff_type"]=1,
|
||||||
["stack"]=1,
|
["stack"]=1,
|
||||||
["decr"]=1,
|
["decr"]=1,
|
||||||
["icon"]="counterattack"
|
["icon"]="counterattack",
|
||||||
|
["show_name"]=true
|
||||||
},
|
},
|
||||||
[63]={
|
[63]={
|
||||||
["id"]=63,
|
["id"]=63,
|
||||||
@ -545,6 +560,7 @@ local buff = {
|
|||||||
["buff_type"]=1,
|
["buff_type"]=1,
|
||||||
["decr"]=1,
|
["decr"]=1,
|
||||||
["icon"]="thorns",
|
["icon"]="thorns",
|
||||||
|
["show_name"]=true,
|
||||||
["fx_continued"]={
|
["fx_continued"]={
|
||||||
18
|
18
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1387,7 +1387,7 @@ local skill = {
|
|||||||
["trigger"]=7,
|
["trigger"]=7,
|
||||||
["effect"]={
|
["effect"]={
|
||||||
{
|
{
|
||||||
["type"]="dmg_addition_yellow_add",
|
["type"]="dmg_addition_red_add",
|
||||||
["num"]=5000,
|
["num"]=5000,
|
||||||
["ratio"]=10000,
|
["ratio"]=10000,
|
||||||
["round"]=1
|
["round"]=1
|
||||||
|
|||||||
@ -1306,7 +1306,7 @@ local skill_rogue = {
|
|||||||
["limit_times"]=1,
|
["limit_times"]=1,
|
||||||
["weight"]=3000,
|
["weight"]=3000,
|
||||||
["qlt"]=4,
|
["qlt"]=4,
|
||||||
["type"]=15,
|
["type"]=14,
|
||||||
["parameter"]={
|
["parameter"]={
|
||||||
6
|
6
|
||||||
},
|
},
|
||||||
@ -1917,14 +1917,14 @@ local skill_rogue = {
|
|||||||
["limit_times"]=1,
|
["limit_times"]=1,
|
||||||
["weight"]=3000,
|
["weight"]=3000,
|
||||||
["qlt"]=4,
|
["qlt"]=4,
|
||||||
["type"]=12,
|
["type"]=9,
|
||||||
["skill_position"]=2,
|
["skill_position"]=2,
|
||||||
["effect"]={
|
["effect"]={
|
||||||
{
|
{
|
||||||
["type"]="add_skill",
|
["type"]="add_skill",
|
||||||
["num"]=2400222,
|
["num"]=2400222,
|
||||||
["ratio"]=10000,
|
["ratio"]=10000,
|
||||||
["round"]=1
|
["round"]=999
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
["obj"]=4,
|
["obj"]=4,
|
||||||
@ -1953,14 +1953,14 @@ local skill_rogue = {
|
|||||||
["limit_times"]=1,
|
["limit_times"]=1,
|
||||||
["weight"]=3000,
|
["weight"]=3000,
|
||||||
["qlt"]=3,
|
["qlt"]=3,
|
||||||
["type"]=12,
|
["type"]=9,
|
||||||
["skill_position"]=2,
|
["skill_position"]=2,
|
||||||
["effect"]={
|
["effect"]={
|
||||||
{
|
{
|
||||||
["type"]="add_skill",
|
["type"]="add_skill",
|
||||||
["num"]=2400224,
|
["num"]=2400224,
|
||||||
["ratio"]=10000,
|
["ratio"]=10000,
|
||||||
["round"]=1
|
["round"]=999
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
["obj"]=4,
|
["obj"]=4,
|
||||||
|
|||||||
@ -6,7 +6,7 @@ local buff = {
|
|||||||
},
|
},
|
||||||
[8]={
|
[8]={
|
||||||
["id"]=8,
|
["id"]=8,
|
||||||
["desc"]="黄色抗性:受到黄色元素英雄的伤害降低{0}。",
|
["desc"]="金色抗性:受到金色元素英雄的伤害降低{0}。",
|
||||||
["name"]="dec_dmg_yellow_add"
|
["name"]="dec_dmg_yellow_add"
|
||||||
},
|
},
|
||||||
[9]={
|
[9]={
|
||||||
@ -36,6 +36,7 @@ local buff = {
|
|||||||
},
|
},
|
||||||
[33]={
|
[33]={
|
||||||
["id"]=33,
|
["id"]=33,
|
||||||
|
["show_name"]="眩晕",
|
||||||
["desc"]="眩晕:本回合无法行动。",
|
["desc"]="眩晕:本回合无法行动。",
|
||||||
["name"]="stun"
|
["name"]="stun"
|
||||||
},
|
},
|
||||||
@ -46,11 +47,13 @@ local buff = {
|
|||||||
},
|
},
|
||||||
[36]={
|
[36]={
|
||||||
["id"]=36,
|
["id"]=36,
|
||||||
|
["show_name"]="冰霜",
|
||||||
["desc"]="冰霜:普攻次数-{0}。",
|
["desc"]="冰霜:普攻次数-{0}。",
|
||||||
["name"]="normal_attack_dec"
|
["name"]="normal_attack_dec"
|
||||||
},
|
},
|
||||||
[37]={
|
[37]={
|
||||||
["id"]=37,
|
["id"]=37,
|
||||||
|
["show_name"]="亢奋",
|
||||||
["desc"]="亢奋:普攻次数+{0}。",
|
["desc"]="亢奋:普攻次数+{0}。",
|
||||||
["name"]="normal_attack_add"
|
["name"]="normal_attack_add"
|
||||||
},
|
},
|
||||||
@ -61,76 +64,91 @@ local buff = {
|
|||||||
},
|
},
|
||||||
[48]={
|
[48]={
|
||||||
["id"]=48,
|
["id"]=48,
|
||||||
|
["show_name"]="灼烧",
|
||||||
["desc"]="灼烧:回合结束时造成释放者攻击力{0}的伤害。",
|
["desc"]="灼烧:回合结束时造成释放者攻击力{0}的伤害。",
|
||||||
["name"]="burn"
|
["name"]="burn"
|
||||||
},
|
},
|
||||||
[49]={
|
[49]={
|
||||||
["id"]=49,
|
["id"]=49,
|
||||||
|
["show_name"]="易伤",
|
||||||
["desc"]="易伤:受到所有伤害提升{0}。",
|
["desc"]="易伤:受到所有伤害提升{0}。",
|
||||||
["name"]="vulnerable"
|
["name"]="vulnerable"
|
||||||
},
|
},
|
||||||
[50]={
|
[50]={
|
||||||
["id"]=50,
|
["id"]=50,
|
||||||
|
["show_name"]="冻结",
|
||||||
["desc"]="冻结:本回合无法行动,且增益效果不生效。",
|
["desc"]="冻结:本回合无法行动,且增益效果不生效。",
|
||||||
["name"]="frozen"
|
["name"]="frozen"
|
||||||
},
|
},
|
||||||
[51]={
|
[51]={
|
||||||
["id"]=51,
|
["id"]=51,
|
||||||
|
["show_name"]="中毒",
|
||||||
["desc"]="中毒:回合结束时造成释放者攻击力{0}的伤害。",
|
["desc"]="中毒:回合结束时造成释放者攻击力{0}的伤害。",
|
||||||
["name"]="poison"
|
["name"]="poison"
|
||||||
},
|
},
|
||||||
[52]={
|
[52]={
|
||||||
["id"]=52,
|
["id"]=52,
|
||||||
|
["show_name"]="禁锢",
|
||||||
["desc"]="禁锢:本回合只可使用普攻,且技能进度不会增长。",
|
["desc"]="禁锢:本回合只可使用普攻,且技能进度不会增长。",
|
||||||
["name"]="imprison"
|
["name"]="imprison"
|
||||||
},
|
},
|
||||||
[53]={
|
[53]={
|
||||||
["id"]=53,
|
["id"]=53,
|
||||||
|
["show_name"]="腐败",
|
||||||
["desc"]="腐败:生命恢复效果降低{0}。",
|
["desc"]="腐败:生命恢复效果降低{0}。",
|
||||||
["name"]="corrupt"
|
["name"]="corrupt"
|
||||||
},
|
},
|
||||||
[54]={
|
[54]={
|
||||||
["id"]=54,
|
["id"]=54,
|
||||||
|
["show_name"]="流血",
|
||||||
["desc"]="流血:受击时恢复攻击者生命,回合结束时造成释放者攻击力{0}的伤害。",
|
["desc"]="流血:受击时恢复攻击者生命,回合结束时造成释放者攻击力{0}的伤害。",
|
||||||
["name"]="bleed"
|
["name"]="bleed"
|
||||||
},
|
},
|
||||||
[55]={
|
[55]={
|
||||||
["id"]=55,
|
["id"]=55,
|
||||||
|
["show_name"]="虚弱",
|
||||||
["desc"]="虚弱:造成的伤害降低{0}。",
|
["desc"]="虚弱:造成的伤害降低{0}。",
|
||||||
["name"]="weaken"
|
["name"]="weaken"
|
||||||
},
|
},
|
||||||
[56]={
|
[56]={
|
||||||
["id"]=56,
|
["id"]=56,
|
||||||
|
["show_name"]="昏睡",
|
||||||
["desc"]="昏睡:本回合无法行动,受击会移除效果。",
|
["desc"]="昏睡:本回合无法行动,受击会移除效果。",
|
||||||
["name"]="lethargy"
|
["name"]="lethargy"
|
||||||
},
|
},
|
||||||
[57]={
|
[57]={
|
||||||
["id"]=57,
|
["id"]=57,
|
||||||
|
["show_name"]="诅咒",
|
||||||
["desc"]="诅咒:攻击不会造成伤害,而是治疗对方。",
|
["desc"]="诅咒:攻击不会造成伤害,而是治疗对方。",
|
||||||
["name"]="curse"
|
["name"]="curse"
|
||||||
},
|
},
|
||||||
[58]={
|
[58]={
|
||||||
["id"]=58,
|
["id"]=58,
|
||||||
|
["show_name"]="锁定",
|
||||||
["desc"]="锁定:随机锁定棋盘上的一种颜色,无法选中。",
|
["desc"]="锁定:随机锁定棋盘上的一种颜色,无法选中。",
|
||||||
["name"]="lock"
|
["name"]="lock"
|
||||||
},
|
},
|
||||||
[59]={
|
[59]={
|
||||||
["id"]=59,
|
["id"]=59,
|
||||||
|
["show_name"]="先手",
|
||||||
["desc"]="先手:每回合都率先出手。",
|
["desc"]="先手:每回合都率先出手。",
|
||||||
["name"]="first_hand"
|
["name"]="first_hand"
|
||||||
},
|
},
|
||||||
[61]={
|
[61]={
|
||||||
["id"]=61,
|
["id"]=61,
|
||||||
|
["show_name"]="不死",
|
||||||
["desc"]="不死:受到致命伤害不会死亡。",
|
["desc"]="不死:受到致命伤害不会死亡。",
|
||||||
["name"]="undead"
|
["name"]="undead"
|
||||||
},
|
},
|
||||||
[62]={
|
[62]={
|
||||||
["id"]=62,
|
["id"]=62,
|
||||||
|
["show_name"]="反击",
|
||||||
["desc"]="反击:受到直接伤害时有{0}的概率进行反击。",
|
["desc"]="反击:受到直接伤害时有{0}的概率进行反击。",
|
||||||
["name"]="counterattack"
|
["name"]="counterattack"
|
||||||
},
|
},
|
||||||
[63]={
|
[63]={
|
||||||
["id"]=63,
|
["id"]=63,
|
||||||
|
["show_name"]="反伤",
|
||||||
["desc"]="反伤:反弹{0}对方伤害。",
|
["desc"]="反伤:反弹{0}对方伤害。",
|
||||||
["name"]="thorns"
|
["name"]="thorns"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -6,7 +6,7 @@ local buff = {
|
|||||||
},
|
},
|
||||||
[8]={
|
[8]={
|
||||||
["id"]=8,
|
["id"]=8,
|
||||||
["desc"]="黃色抗性:受到黃色元素英雄的傷害降低<color=#3cff28>{0}</color>。",
|
["desc"]="金色抗性:受到金色元素英雄的傷害降低<color=#3cff28>{0}</color>。",
|
||||||
["name"]="dec_dmg_yellow_add"
|
["name"]="dec_dmg_yellow_add"
|
||||||
},
|
},
|
||||||
[9]={
|
[9]={
|
||||||
|
|||||||
@ -1302,6 +1302,18 @@ function BattleUnitComp:addMaxHp(percent)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function BattleUnitComp:addBuff(buffEffect)
|
function BattleUnitComp:addBuff(buffEffect)
|
||||||
|
if buffEffect.buff:needShowName() and buffEffect.buff:getShowName(true) then
|
||||||
|
local direction = BattleConst.EFFECT_TYPE_MOVE_R
|
||||||
|
local x, y = self.team:getMainUnitLocalPosition(self)
|
||||||
|
x = x + 80
|
||||||
|
if self.side == BattleConst.SIDE_ATK then
|
||||||
|
direction = BattleConst.EFFECT_TYPE_MOVE_L
|
||||||
|
x = x - 80
|
||||||
|
end
|
||||||
|
y = y - 120
|
||||||
|
self:showEffectNumber(BattleConst.EFFECT_COLOR_SPECIAL, direction, buffEffect.buff:getShowName(true), x - 20, y - 20, 0)
|
||||||
|
end
|
||||||
|
|
||||||
return self.team:addBuff(buffEffect)
|
return self.team:addBuff(buffEffect)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -18,6 +18,8 @@ function BattleBuffEntity:init(effectParams, owner, hostSkill)
|
|||||||
self.buffType = self.buffInfo.buff_type
|
self.buffType = self.buffInfo.buff_type
|
||||||
self.cantRemove = false
|
self.cantRemove = false
|
||||||
self.notShowIcon = false
|
self.notShowIcon = false
|
||||||
|
self.showNameStr = nil
|
||||||
|
self.showNameRedColor = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
function BattleBuffEntity:setOwner(owner)
|
function BattleBuffEntity:setOwner(owner)
|
||||||
@ -108,6 +110,23 @@ function BattleBuffEntity:getFxDisappear()
|
|||||||
return self.buffInfo.fx_disappear
|
return self.buffInfo.fx_disappear
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function BattleBuffEntity:getShowName(needRedColor)
|
||||||
|
if not self.showNameStr then
|
||||||
|
self.showNameStr = I18N:getTextWithOtherKey("buff", "name", self:getName(), "show_name")
|
||||||
|
end
|
||||||
|
if not self.showNameRedColor and self.showNameStr then
|
||||||
|
self.showNameRedColor = "<color=#E35F6A>" .. self.showNameStr .. "</color>"
|
||||||
|
end
|
||||||
|
if needRedColor then
|
||||||
|
return self.showNameRedColor
|
||||||
|
end
|
||||||
|
return self.showNameStr
|
||||||
|
end
|
||||||
|
|
||||||
|
function BattleBuffEntity:needShowName()
|
||||||
|
return self.buffInfo.show_name
|
||||||
|
end
|
||||||
|
|
||||||
function BattleBuffEntity:isCantRemove()
|
function BattleBuffEntity:isCantRemove()
|
||||||
return self.cantRemove
|
return self.cantRemove
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user