1
This commit is contained in:
parent
24fce377af
commit
9e697629a2
@ -333,9 +333,6 @@ std::string Hero::GetName()
|
|||||||
void Hero::DropItems(Obstacle* obstacle)
|
void Hero::DropItems(Obstacle* obstacle)
|
||||||
{
|
{
|
||||||
bool is_treasure_box = false;
|
bool is_treasure_box = false;
|
||||||
if (obstacle->IsEntitySubType(EST_RoomObstacle)) {
|
|
||||||
is_treasure_box = ((RoomObstacle*)obstacle)->is_treasure_box;
|
|
||||||
}
|
|
||||||
int drop_id = obstacle->meta->RandDrop();
|
int drop_id = obstacle->meta->RandDrop();
|
||||||
if (drop_id == 0) {
|
if (drop_id == 0) {
|
||||||
return;
|
return;
|
||||||
|
@ -1870,9 +1870,6 @@ void Human::DecItem(int item_id, int item_num)
|
|||||||
void Human::DropItems(Obstacle* obstacle)
|
void Human::DropItems(Obstacle* obstacle)
|
||||||
{
|
{
|
||||||
bool is_treasure_box = false;
|
bool is_treasure_box = false;
|
||||||
if (obstacle->IsEntitySubType(EST_RoomObstacle)) {
|
|
||||||
is_treasure_box = ((RoomObstacle*)obstacle)->is_treasure_box;
|
|
||||||
}
|
|
||||||
int drop_id = obstacle->meta->RandDrop();
|
int drop_id = obstacle->meta->RandDrop();
|
||||||
if (drop_id == 0) {
|
if (drop_id == 0) {
|
||||||
return;
|
return;
|
||||||
|
@ -11,7 +11,6 @@ class RoomObstacle : public Obstacle
|
|||||||
public:
|
public:
|
||||||
Room* room = nullptr;
|
Room* room = nullptr;
|
||||||
a8::Attacher xtimer_attacher;
|
a8::Attacher xtimer_attacher;
|
||||||
bool is_treasure_box = false;
|
|
||||||
CreatureWeakPtr master;
|
CreatureWeakPtr master;
|
||||||
int real_object_uniid = 0;
|
int real_object_uniid = 0;
|
||||||
std::shared_ptr<Ability> context_ability;
|
std::shared_ptr<Ability> context_ability;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user