Mercurial > wow > askmrrobot
comparison Gear.lua @ 169:d90a740a1d0b v79
Bug fix, russian translation tweak.
| author | yellowfive |
|---|---|
| date | Tue, 23 Jul 2019 14:48:31 -0700 |
| parents | 3be9cc6f7d20 |
| children | 5c586ff5fee5 |
comparison
equal
deleted
inserted
replaced
| 168:0d037afc7128 | 169:d90a740a1d0b |
|---|---|
| 1170 if not Amr.IsEmpty(itemsToEquip.others) then | 1170 if not Amr.IsEmpty(itemsToEquip.others) then |
| 1171 -- equip all other items, wait for completion | 1171 -- equip all other items, wait for completion |
| 1172 table.insert(_pendingGearOps, { items = itemsToEquip.others, wait = true, label = "equip others" }) | 1172 table.insert(_pendingGearOps, { items = itemsToEquip.others, wait = true, label = "equip others" }) |
| 1173 end | 1173 end |
| 1174 | 1174 |
| 1175 -- make the last operation wait no matter what, before this gets called again to check if everything succeeded | 1175 if #_pendingGearOps > 0 then |
| 1176 _pendingGearOps[#_pendingGearOps].wait = true | 1176 -- make the last operation wait no matter what, before this gets called again to check if everything succeeded |
| 1177 | 1177 _pendingGearOps[#_pendingGearOps].wait = true |
| 1178 if not _gearOpWaiting then | 1178 |
| 1179 _gearOpWaiting = { inventory = {} } | 1179 if not _gearOpWaiting then |
| 1180 end | 1180 _gearOpWaiting = { inventory = {} } |
| 1181 | 1181 end |
| 1182 _gearOpPasses = passes | 1182 |
| 1183 _currentGearOp = _pendingGearOps[1] | 1183 _gearOpPasses = passes |
| 1184 initializeGearOp(_currentGearOp, setupId, 1) | 1184 _currentGearOp = _pendingGearOps[1] |
| 1185 | 1185 initializeGearOp(_currentGearOp, setupId, 1) |
| 1186 processCurrentGearOp() | 1186 |
| 1187 processCurrentGearOp() | |
| 1188 else | |
| 1189 -- TODO: print message that gear set couldn't be equipped | |
| 1190 end | |
| 1191 | |
| 1187 else | 1192 else |
| 1188 -- TODO: print message that gear set couldn't be equipped | 1193 -- TODO: print message that gear set couldn't be equipped |
| 1189 end | 1194 end |
| 1190 | 1195 |
| 1191 else | 1196 else |
