comparison gui.lua @ 52:94dacaeff463

Make sure that missed duration fields get set to a safe value (can be missed in certain encounters).
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Wed, 01 Feb 2012 06:53:34 +0000
parents 857aea8ae33d
children 7af58a7dce7d
comparison
equal deleted inserted replaced
51:857aea8ae33d 52:94dacaeff463
288 end 288 end
289 e.cols[3].value = ex 289 e.cols[3].value = ex
290 290
291 elseif e.kind == 'boss' then 291 elseif e.kind == 'boss' then
292 local v 292 local v
293 e.duration = e.duration or 0 -- can occasionally miss getting set
293 if e.reason == 'kill' then 294 if e.reason == 'kill' then
294 if e.attempts == 1 then 295 if e.attempts == 1 then
295 v = "one-shot" 296 v = "one-shot"
296 else 297 else
297 v = ("kill on %d%s attempt"):format(e.attempts or 0, grammar[e.attempts] or "th") 298 v = ("kill on %d%s attempt"):format(e.attempts or 0, grammar[e.attempts] or "th")