添加伪装拾取逻辑
This commit is contained in:
parent
3514c58477
commit
aa4bf42b16
@ -2400,6 +2400,11 @@ void Human::ProcLootCar(Loot* entity, MetaData::Equip* item_meta)
|
|||||||
room->NotifyUiUpdate();
|
room->NotifyUiUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Human::ProcCamoutflage(Loot* entity, MetaData::Equip* item_meta)
|
||||||
|
{
|
||||||
|
AddItem(item_meta->i->id(), 1);
|
||||||
|
}
|
||||||
|
|
||||||
void Human::FindLocationWithTarget(Entity* target)
|
void Human::FindLocationWithTarget(Entity* target)
|
||||||
{
|
{
|
||||||
a8::Vec2 old_pos = GetPos();
|
a8::Vec2 old_pos = GetPos();
|
||||||
|
@ -249,6 +249,7 @@ protected:
|
|||||||
void ProcLootOldSkin(Loot* entity, MetaData::Equip* item_meta);
|
void ProcLootOldSkin(Loot* entity, MetaData::Equip* item_meta);
|
||||||
void ProcLootSkin(Loot* entity, MetaData::Equip* item_meta);
|
void ProcLootSkin(Loot* entity, MetaData::Equip* item_meta);
|
||||||
void ProcLootCar(Loot* entity, MetaData::Equip* item_meta);
|
void ProcLootCar(Loot* entity, MetaData::Equip* item_meta);
|
||||||
|
void ProcCamoutflage(Loot* entity, MetaData::Equip* item_meta);
|
||||||
void ResetTankSkin();
|
void ResetTankSkin();
|
||||||
void SelectSkillTargets(const a8::Vec2& target_pos, std::set<Entity*>& target_list);
|
void SelectSkillTargets(const a8::Vec2& target_pos, std::set<Entity*>& target_list);
|
||||||
Buff* GetBuffById(int buff_id);
|
Buff* GetBuffById(int buff_id);
|
||||||
|
@ -626,6 +626,11 @@ void Player::LootInteraction(Loot* entity)
|
|||||||
ProcLootCar(entity, item_meta);
|
ProcLootCar(entity, item_meta);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case EQUIP_TYPE_CAMOUFLAGE:
|
||||||
|
{
|
||||||
|
ProcCamoutflage(entity, item_meta);
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
if (item_meta->i->_inventory_slot() >= 0 &&
|
if (item_meta->i->_inventory_slot() >= 0 &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user