feat: Allow Float Rep Values (#15818)

This commit is contained in:
ZhengPeiRu21
2023-04-22 07:42:00 -06:00
committed by GitHub
parent a146bcb0e9
commit 0667454dd9
3 changed files with 7 additions and 4 deletions

View File

@@ -0,0 +1,3 @@
--
ALTER TABLE `creature_onkill_reputation` MODIFY `RewOnKillRepValue1` FLOAT NOT NULL DEFAULT 0;
ALTER TABLE `creature_onkill_reputation` MODIFY `RewOnKillRepValue2` FLOAT NOT NULL DEFAULT 0;

View File

@@ -7658,10 +7658,10 @@ void ObjectMgr::LoadReputationOnKill()
repOnKill.RepFaction2 = fields[2].Get<int16>();
repOnKill.IsTeamAward1 = fields[3].Get<bool>();
repOnKill.ReputationMaxCap1 = fields[4].Get<uint8>();
repOnKill.RepValue1 = fields[5].Get<int32>();
repOnKill.RepValue1 = fields[5].Get<float>();
repOnKill.IsTeamAward2 = fields[6].Get<bool>();
repOnKill.ReputationMaxCap2 = fields[7].Get<uint8>();
repOnKill.RepValue2 = fields[8].Get<int32>();
repOnKill.RepValue2 = fields[8].Get<float>();
repOnKill.TeamDependent = fields[9].Get<uint8>();
if (!GetCreatureTemplate(creature_id))

View File

@@ -563,9 +563,9 @@ struct ReputationOnKillEntry
uint32 RepFaction1;
uint32 RepFaction2;
uint32 ReputationMaxCap1;
int32 RepValue1;
float RepValue1;
uint32 ReputationMaxCap2;
int32 RepValue2;
float RepValue2;
bool IsTeamAward1;
bool IsTeamAward2;
bool TeamDependent;