Mercurial > wow > askmrrobot
comparison amr-constants.lua @ 53:be5dc6c02f77 v19
minor tweaks for combat logging
author | yellowfive |
---|---|
date | Tue, 02 Dec 2014 16:57:32 -0800 |
parents | 6f1bb8fcf64d |
children |
comparison
equal
deleted
inserted
replaced
52:57e5795c8c29 | 53:be5dc6c02f77 |
---|---|
112 BlackrockFoundry = 1205 | 112 BlackrockFoundry = 1205 |
113 } | 113 } |
114 | 114 |
115 -- instances that we currently support logging for | 115 -- instances that we currently support logging for |
116 AskMrRobot.supportedInstanceIds = { | 116 AskMrRobot.supportedInstanceIds = { |
117 [1182] = true, | 117 --[1182] = true, |
118 [1175] = true, | 118 --[1175] = true, |
119 [1208] = true, | 119 --[1208] = true, |
120 [1195] = true, | 120 --[1195] = true, |
121 [1176] = true, | 121 --[1176] = true, |
122 [1209] = true, | 122 --[1209] = true, |
123 [1279] = true, | 123 --[1279] = true, |
124 [1358] = true, | 124 --[1358] = true, |
125 [1228] = true, | 125 [1228] = true, |
126 [1205] = true | 126 [1205] = true |
127 } | 127 } |
128 | 128 |
129 -- returns true if currently in a supported instance | 129 -- returns true if currently in a supported instance |
130 function AskMrRobot.IsSupportedInstance() | 130 function AskMrRobot.IsSupportedInstance() |
131 | 131 |
132 local zone, _, difficultyIndex, _, _, _, _, instanceMapID = GetInstanceInfo() | 132 local zone, _, difficultyIndex, _, _, _, _, instanceMapID = GetInstanceInfo() |
133 if AskMrRobot.supportedInstanceIds[tonumber(instanceMapID)] then | |
134 return true | |
135 else | |
136 return false | |
137 end | |
138 end | |
139 | |
140 function AskMrRobot.IsSupportedInstanceId(instanceMapID) | |
133 if AskMrRobot.supportedInstanceIds[tonumber(instanceMapID)] then | 141 if AskMrRobot.supportedInstanceIds[tonumber(instanceMapID)] then |
134 return true | 142 return true |
135 else | 143 else |
136 return false | 144 return false |
137 end | 145 end |