remove GetBaseAtk() GetDefAtk()
This commit is contained in:
parent
42a28a190e
commit
b2c6932689
@ -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();
|
|
||||||
}
|
|
||||||
|
@ -30,8 +30,6 @@ class Car : public Creature
|
|||||||
virtual void GetAabbBox(AabbCollider& aabb_box) override;
|
virtual void GetAabbBox(AabbCollider& aabb_box) override;
|
||||||
virtual void GetHitAabbBox(AabbCollider& aabb_box) override;
|
virtual void GetHitAabbBox(AabbCollider& aabb_box) override;
|
||||||
virtual std::string GetName() override;
|
virtual std::string GetName() override;
|
||||||
virtual float GetBaseAtk() override;
|
|
||||||
virtual float GetBaseDef() override;
|
|
||||||
|
|
||||||
bool IsDriver(Human* hum) { return driver_ == hum && driver_; }
|
bool IsDriver(Human* hum) { return driver_ == hum && driver_; }
|
||||||
Human* GetPassengerBySeat(int seat);
|
Human* GetPassengerBySeat(int seat);
|
||||||
|
@ -250,13 +250,3 @@ EntityWeakPtr& Entity::GetEntityWeakPtrRef()
|
|||||||
}
|
}
|
||||||
return entity_weak_ptr_;
|
return entity_weak_ptr_;
|
||||||
}
|
}
|
||||||
|
|
||||||
float Entity::GetBaseAtk()
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
float Entity::GetBaseDef()
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
@ -80,8 +80,6 @@ class Entity
|
|||||||
EntityWeakPtr& GetEntityWeakPtrRef();
|
EntityWeakPtr& GetEntityWeakPtrRef();
|
||||||
bool IsClientCached(Human* hum);
|
bool IsClientCached(Human* hum);
|
||||||
bool CanClientCache(Human* hum);
|
bool CanClientCache(Human* hum);
|
||||||
virtual float GetBaseAtk();
|
|
||||||
virtual float GetBaseDef();
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void AddClientCache(Human* hum);
|
void AddClientCache(Human* hum);
|
||||||
|
@ -414,13 +414,3 @@ void Hero::DropItems(Obstacle* obstacle)
|
|||||||
}
|
}
|
||||||
room->ScatterDrop(obstacle->GetPos(), drop_id);
|
room->ScatterDrop(obstacle->GetPos(), drop_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
float Hero::GetBaseAtk()
|
|
||||||
{
|
|
||||||
return meta->i->damage();
|
|
||||||
}
|
|
||||||
|
|
||||||
float Hero::GetBaseDef()
|
|
||||||
{
|
|
||||||
return meta->i->defence();
|
|
||||||
}
|
|
||||||
|
@ -32,8 +32,6 @@ public:
|
|||||||
virtual void DecHP(float dec_hp, int killer_id, const std::string& killer_name, int weapon_id) override;
|
virtual void DecHP(float dec_hp, int killer_id, const std::string& killer_name, int weapon_id) override;
|
||||||
virtual std::string GetName() override;
|
virtual std::string GetName() override;
|
||||||
virtual void DropItems(Obstacle* obstacle) override;
|
virtual void DropItems(Obstacle* obstacle) override;
|
||||||
virtual float GetBaseAtk() override;
|
|
||||||
virtual float GetBaseDef() override;
|
|
||||||
|
|
||||||
virtual float GetSpeed() override;
|
virtual float GetSpeed() override;
|
||||||
virtual float GetRadius() override;
|
virtual float GetRadius() override;
|
||||||
|
@ -4233,16 +4233,6 @@ void Human::DecOxygen(int val)
|
|||||||
oxygen_ = std::max(0, oxygen_);
|
oxygen_ = std::max(0, oxygen_);
|
||||||
}
|
}
|
||||||
|
|
||||||
float Human::GetBaseAtk()
|
|
||||||
{
|
|
||||||
return meta->i->damage();
|
|
||||||
}
|
|
||||||
|
|
||||||
float Human::GetBaseDef()
|
|
||||||
{
|
|
||||||
return meta->i->defence();
|
|
||||||
}
|
|
||||||
|
|
||||||
void Human::WinPveScore(int score)
|
void Human::WinPveScore(int score)
|
||||||
{
|
{
|
||||||
stats.pve_score += score;
|
stats.pve_score += score;
|
||||||
|
@ -347,8 +347,6 @@ class Human : public Creature
|
|||||||
void SetOxygen(int oxygen) { oxygen_ = oxygen; };
|
void SetOxygen(int oxygen) { oxygen_ = oxygen; };
|
||||||
void AddOxygen(int val);
|
void AddOxygen(int val);
|
||||||
void DecOxygen(int val);
|
void DecOxygen(int val);
|
||||||
virtual float GetBaseAtk() override;
|
|
||||||
virtual float GetBaseDef() override;
|
|
||||||
void WinPveScore(int score);
|
void WinPveScore(int score);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user