1
This commit is contained in:
parent
fc6d7cb6a0
commit
f1072cc7d1
@ -110,7 +110,8 @@ enum BuffTriggerType_e
|
|||||||
kBTT_Kill = 2, //击杀敌方后触发
|
kBTT_Kill = 2, //击杀敌方后触发
|
||||||
kBTT_SkillHit = 3, //技能命中触发
|
kBTT_SkillHit = 3, //技能命中触发
|
||||||
kBTT_OtherBuff = 4,//其他buff触发
|
kBTT_OtherBuff = 4,//其他buff触发
|
||||||
kBTT_UseItem = 6 //使用道具触发
|
kBTT_UseItem = 6, //使用道具触发
|
||||||
|
kBTT_SeriesShot = 7 //连射时触发
|
||||||
};
|
};
|
||||||
|
|
||||||
enum BuffTargetType_e
|
enum BuffTargetType_e
|
||||||
|
@ -1654,7 +1654,7 @@ void Creature::RemoveSurplusHero(int buff_id, int id, int num)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
while (matched_heros.size() >= num) {
|
while (matched_heros.size() >= num) {
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1670,7 +1670,7 @@ void Creature::RemoveSurplusObstacle(int buff_id, int id, int num)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
while (matched_things.size() >= num) {
|
while (matched_things.size() >= num) {
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -196,6 +196,14 @@ namespace MetaData
|
|||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
if (i->buffid() != 0) {
|
||||||
|
buff_meta = MetaMgr::Instance()->GetBuff(i->buffid());
|
||||||
|
if (!buff_meta) {
|
||||||
|
abort();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int Equip::GetWeaponIdx()
|
int Equip::GetWeaponIdx()
|
||||||
|
@ -57,6 +57,7 @@ namespace MetaData
|
|||||||
const metatable::Item* i = nullptr;
|
const metatable::Item* i = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct Buff;
|
||||||
struct Equip
|
struct Equip
|
||||||
{
|
{
|
||||||
const metatable::Equip* i = nullptr;
|
const metatable::Equip* i = nullptr;
|
||||||
@ -69,6 +70,7 @@ namespace MetaData
|
|||||||
int int_param2 = 0;
|
int int_param2 = 0;
|
||||||
float float_param2 = 0;
|
float float_param2 = 0;
|
||||||
std::vector<std::tuple<int, int, int>> power_charge;
|
std::vector<std::tuple<int, int, int>> power_charge;
|
||||||
|
MetaData::Buff* buff_meta = nullptr;
|
||||||
|
|
||||||
void Init();
|
void Init();
|
||||||
int GetWeaponIdx();
|
int GetWeaponIdx();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user