remove GetBaseAtk() GetDefAtk()

This commit is contained in:
aozhiwei 2022-09-08 20:50:49 +08:00
parent 42a28a190e
commit b2c6932689
8 changed files with 0 additions and 48 deletions

View File

@ -542,13 +542,3 @@ void Car::OnKillTarget(Creature* target)
}
}
}
float Car::GetBaseAtk()
{
return hero_meta_->i->damage();
}
float Car::GetBaseDef()
{
return hero_meta_->i->defence();
}

View File

@ -30,8 +30,6 @@ class Car : public Creature
virtual void GetAabbBox(AabbCollider& aabb_box) override;
virtual void GetHitAabbBox(AabbCollider& aabb_box) override;
virtual std::string GetName() override;
virtual float GetBaseAtk() override;
virtual float GetBaseDef() override;
bool IsDriver(Human* hum) { return driver_ == hum && driver_; }
Human* GetPassengerBySeat(int seat);

View File

@ -250,13 +250,3 @@ EntityWeakPtr& Entity::GetEntityWeakPtrRef()
}
return entity_weak_ptr_;
}
float Entity::GetBaseAtk()
{
return 0;
}
float Entity::GetBaseDef()
{
return 0;
}

View File

@ -80,8 +80,6 @@ class Entity
EntityWeakPtr& GetEntityWeakPtrRef();
bool IsClientCached(Human* hum);
bool CanClientCache(Human* hum);
virtual float GetBaseAtk();
virtual float GetBaseDef();
protected:
void AddClientCache(Human* hum);

View File

@ -414,13 +414,3 @@ void Hero::DropItems(Obstacle* obstacle)
}
room->ScatterDrop(obstacle->GetPos(), drop_id);
}
float Hero::GetBaseAtk()
{
return meta->i->damage();
}
float Hero::GetBaseDef()
{
return meta->i->defence();
}

View File

@ -32,8 +32,6 @@ public:
virtual void DecHP(float dec_hp, int killer_id, const std::string& killer_name, int weapon_id) override;
virtual std::string GetName() override;
virtual void DropItems(Obstacle* obstacle) override;
virtual float GetBaseAtk() override;
virtual float GetBaseDef() override;
virtual float GetSpeed() override;
virtual float GetRadius() override;

View File

@ -4233,16 +4233,6 @@ void Human::DecOxygen(int val)
oxygen_ = std::max(0, oxygen_);
}
float Human::GetBaseAtk()
{
return meta->i->damage();
}
float Human::GetBaseDef()
{
return meta->i->defence();
}
void Human::WinPveScore(int score)
{
stats.pve_score += score;

View File

@ -347,8 +347,6 @@ class Human : public Creature
void SetOxygen(int oxygen) { oxygen_ = oxygen; };
void AddOxygen(int val);
void DecOxygen(int val);
virtual float GetBaseAtk() override;
virtual float GetBaseDef() override;
void WinPveScore(int score);
protected: