From 22d4b189a31f81ba41ea8bf81b3ebdab86df2b1d Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 25 Mar 2023 23:26:32 +0800 Subject: [PATCH] 1 --- server/gameserver/creature.cc | 18 ------------------ server/gameserver/creature.h | 2 -- 2 files changed, 20 deletions(-) diff --git a/server/gameserver/creature.cc b/server/gameserver/creature.cc index c56d5465..d5d7deaa 100644 --- a/server/gameserver/creature.cc +++ b/server/gameserver/creature.cc @@ -2362,24 +2362,6 @@ void Creature::WinSkillExp(int win_exp) } } -float Creature::GetAttrAbs(int attr_id) -{ - float val = 0; - if (GetAbility()){ - val += GetAbility()->GetAttrAbs(attr_id); - } - return val; -} - -float Creature::GetAttrRate(int attr_id) -{ - float val = 0; - if (GetAbility()){ - val += GetAbility()->GetAttrRate(attr_id); - } - return val; -} - void Creature::RecalcDtoAttr() { if (!IsHuman()) { diff --git a/server/gameserver/creature.h b/server/gameserver/creature.h index ed5167d3..fc67e039 100644 --- a/server/gameserver/creature.h +++ b/server/gameserver/creature.h @@ -319,8 +319,6 @@ class Creature : public MoveableEntity void DoRecoilForce(int distance); void WinSkillExp(int win_exp); - float GetAttrAbs(int attr_id); - float GetAttrRate(int attr_id); void RecalcDtoAttr(); void AutoNavigation(const glm::vec3& target_pos, float speed, std::function cb);