comparison Constants.lua @ 447:bf1fbf1c9cb2

Added conditional code to account for changes in Patch 6.2's item strings. It now works with Live and PTR builds.
author MMOSimca <MMOSimca@gmail.com>
date Tue, 16 Jun 2015 07:34:14 -0400
parents 6e55341c3fa4
children b1c1d817788d
comparison
equal deleted inserted replaced
446:c8b5277f5e2e 447:bf1fbf1c9cb2
453 453
454 454
455 ----------------------------------------------------------------------- 455 -----------------------------------------------------------------------
456 -- Fundamental Constants. 456 -- Fundamental Constants.
457 ----------------------------------------------------------------------- 457 -----------------------------------------------------------------------
458 private.wow_version, private.build_num = _G.GetBuildInfo() 458 private.wow_version, private.build_num, _, private.interface_num = _G.GetBuildInfo()
459 private.region = GetCVar("portal"):sub(0,2):upper() 459 private.region = GetCVar("portal"):sub(0,2):upper()
460 -- PTR/Beta return "public-test", but they are properly called "XX" 460 -- PTR/Beta return "public-test", but they are properly called "XX"
461 if private.region == "PU" then private.region = "XX" end 461 if private.region == "PU" then private.region = "XX" end
462 462
463 private.UNIT_TYPES = { 463 private.UNIT_TYPES = {