1
This commit is contained in:
parent
d3812d7ed7
commit
1d3d9d49b7
@ -718,6 +718,39 @@ void Player::ProcInteraction()
|
|||||||
auto pair = notify_msg.add_old_items();
|
auto pair = notify_msg.add_old_items();
|
||||||
pair->set_key(loot->item_id);
|
pair->set_key(loot->item_id);
|
||||||
pair->set_value(real_get_count);
|
pair->set_value(real_get_count);
|
||||||
|
{
|
||||||
|
auto tuple = notify_msg.add_items();
|
||||||
|
tuple->add_values(loot->item_id);
|
||||||
|
tuple->add_values(pair->value());
|
||||||
|
int curr_num = 0;
|
||||||
|
if (loot->meta->equip_type() == EQUIP_TYPE_WEAPON) {
|
||||||
|
if (GetCurrWeapon()->weapon_id == loot->meta->id()) {
|
||||||
|
curr_num = GetCompose()->GetNum();
|
||||||
|
}
|
||||||
|
} else if (loot->meta->equip_type() == EQUIP_TYPE_GEMSTONE) {
|
||||||
|
switch (loot->meta->equip_subtype()) {
|
||||||
|
case GEMSTONE_SUB_EQUIP_ENERGY:
|
||||||
|
{
|
||||||
|
curr_num = gemstone;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case GEMSTONE_SUB_EQUIP_SKILL:
|
||||||
|
{
|
||||||
|
curr_num = GetInventory(IS_BLUE_STONE);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case GEMSTONE_SUB_EQUIP_SHIELD:
|
||||||
|
{
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
tuple->add_values(curr_num);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user