feat: Allow Float Rep Values (#15818)
This commit is contained in:
@@ -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;
|
||||||
@@ -7658,10 +7658,10 @@ void ObjectMgr::LoadReputationOnKill()
|
|||||||
repOnKill.RepFaction2 = fields[2].Get<int16>();
|
repOnKill.RepFaction2 = fields[2].Get<int16>();
|
||||||
repOnKill.IsTeamAward1 = fields[3].Get<bool>();
|
repOnKill.IsTeamAward1 = fields[3].Get<bool>();
|
||||||
repOnKill.ReputationMaxCap1 = fields[4].Get<uint8>();
|
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.IsTeamAward2 = fields[6].Get<bool>();
|
||||||
repOnKill.ReputationMaxCap2 = fields[7].Get<uint8>();
|
repOnKill.ReputationMaxCap2 = fields[7].Get<uint8>();
|
||||||
repOnKill.RepValue2 = fields[8].Get<int32>();
|
repOnKill.RepValue2 = fields[8].Get<float>();
|
||||||
repOnKill.TeamDependent = fields[9].Get<uint8>();
|
repOnKill.TeamDependent = fields[9].Get<uint8>();
|
||||||
|
|
||||||
if (!GetCreatureTemplate(creature_id))
|
if (!GetCreatureTemplate(creature_id))
|
||||||
|
|||||||
@@ -563,9 +563,9 @@ struct ReputationOnKillEntry
|
|||||||
uint32 RepFaction1;
|
uint32 RepFaction1;
|
||||||
uint32 RepFaction2;
|
uint32 RepFaction2;
|
||||||
uint32 ReputationMaxCap1;
|
uint32 ReputationMaxCap1;
|
||||||
int32 RepValue1;
|
float RepValue1;
|
||||||
uint32 ReputationMaxCap2;
|
uint32 ReputationMaxCap2;
|
||||||
int32 RepValue2;
|
float RepValue2;
|
||||||
bool IsTeamAward1;
|
bool IsTeamAward1;
|
||||||
bool IsTeamAward2;
|
bool IsTeamAward2;
|
||||||
bool TeamDependent;
|
bool TeamDependent;
|
||||||
|
|||||||
Reference in New Issue
Block a user