1
This commit is contained in:
parent
d0e6c6478d
commit
d0a462c1d6
@ -815,6 +815,7 @@ namespace MetaData
|
|||||||
}
|
}
|
||||||
for (auto& str : strings) {
|
for (auto& str : strings) {
|
||||||
param2_int_list.push_back(a8::XValue(str).GetInt());
|
param2_int_list.push_back(a8::XValue(str).GetInt());
|
||||||
|
param2_int_set.insert(a8::XValue(str).GetInt());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
@ -211,6 +211,7 @@ namespace MetaData
|
|||||||
int int_param5 = 0;
|
int int_param5 = 0;
|
||||||
std::vector<int> param1_int_list;
|
std::vector<int> param1_int_list;
|
||||||
std::vector<int> param2_int_list;
|
std::vector<int> param2_int_list;
|
||||||
|
std::set<int> param2_int_set;
|
||||||
std::vector<int> param3_int_list;
|
std::vector<int> param3_int_list;
|
||||||
std::vector<int> param4_int_list;
|
std::vector<int> param4_int_list;
|
||||||
std::vector<std::tuple<int, std::vector<std::tuple<int, int>>>> batch_add_list;
|
std::vector<std::tuple<int, std::vector<std::tuple<int, int>>>> batch_add_list;
|
||||||
|
@ -116,7 +116,7 @@ void Trigger::UseItemAction(int slot_id)
|
|||||||
(kCondBuffEatDrug,
|
(kCondBuffEatDrug,
|
||||||
[this, slot_id] (Buff* buff, bool& stop)
|
[this, slot_id] (Buff* buff, bool& stop)
|
||||||
{
|
{
|
||||||
if (buff->meta->int_param2 == slot_id) {
|
if (buff->meta->param2_int_set.find(slot_id) != buff->meta->param2_int_set.end()) {
|
||||||
AddBuffs(buff->meta->int_param1, buff->meta->param4_int_list);
|
AddBuffs(buff->meta->int_param1, buff->meta->param4_int_list);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user