This commit is contained in:
aozhiwei 2022-12-31 19:04:01 +08:00
parent 24fce377af
commit 9e697629a2
3 changed files with 0 additions and 7 deletions

View File

@ -333,9 +333,6 @@ std::string Hero::GetName()
void Hero::DropItems(Obstacle* obstacle)
{
bool is_treasure_box = false;
if (obstacle->IsEntitySubType(EST_RoomObstacle)) {
is_treasure_box = ((RoomObstacle*)obstacle)->is_treasure_box;
}
int drop_id = obstacle->meta->RandDrop();
if (drop_id == 0) {
return;

View File

@ -1870,9 +1870,6 @@ void Human::DecItem(int item_id, int item_num)
void Human::DropItems(Obstacle* obstacle)
{
bool is_treasure_box = false;
if (obstacle->IsEntitySubType(EST_RoomObstacle)) {
is_treasure_box = ((RoomObstacle*)obstacle)->is_treasure_box;
}
int drop_id = obstacle->meta->RandDrop();
if (drop_id == 0) {
return;

View File

@ -11,7 +11,6 @@ class RoomObstacle : public Obstacle
public:
Room* room = nullptr;
a8::Attacher xtimer_attacher;
bool is_treasure_box = false;
CreatureWeakPtr master;
int real_object_uniid = 0;
std::shared_ptr<Ability> context_ability;