Mercurial > wow > wowdb-profiler
comparison Constants.lua @ 484:679e2846ff88
Replaced 'GetCvar("portal")' with the library LibRealmInfo in order to get accurate server and region information (needed for world quest data recording).
author | MMOSimca <mmosimca@gmail.com> |
---|---|
date | Tue, 06 Sep 2016 09:31:06 -0400 |
parents | cf08b2748711 |
children | 5e5ddb69f845 |
comparison
equal
deleted
inserted
replaced
483:271132f4fa77 | 484:679e2846ff88 |
---|---|
805 | 805 |
806 ----------------------------------------------------------------------- | 806 ----------------------------------------------------------------------- |
807 -- Fundamental Constants. | 807 -- Fundamental Constants. |
808 ----------------------------------------------------------------------- | 808 ----------------------------------------------------------------------- |
809 private.wow_version, private.build_num, _, private.interface_num = _G.GetBuildInfo() | 809 private.wow_version, private.build_num, _, private.interface_num = _G.GetBuildInfo() |
810 private.region = GetCVar("portal"):sub(0,2):upper() | |
811 -- PTR/Beta return "public-test", but they are properly called "XX" | |
812 if private.region == "PU" then private.region = "XX" end | |
813 | 810 |
814 private.UNIT_TYPES = { | 811 private.UNIT_TYPES = { |
815 PLAYER = "Player", | 812 PLAYER = "Player", |
816 OBJECT = "GameObject", | 813 OBJECT = "GameObject", |
817 UNKNOWN = "Unknown", | 814 UNKNOWN = "Unknown", |