Module:Test: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 422: Line 422:
                             hit_count = hit_count == '' and 1 or hit_count
                             hit_count = hit_count == '' and 1 or hit_count
                             new_value.hit_counts[damage_type][k] = hit_count *
                             new_value.hit_counts[damage_type][k] = hit_count *
                                 (string.find(damage_key, 'awk_') and args.awk_count[1] or args.count[1])
                                 args.awk_count[1]
                         end
                         end
                     end)
                     end)
Line 949: Line 949:
     -- Transform into variables
     -- Transform into variables
     local variables = doVariables(frame, FINAL_DAMAGE, OPTIONS.prefix)
     local variables = doVariables(frame, FINAL_DAMAGE, OPTIONS.prefix)
   
 
     if out ~= nil then
     if out ~= nil then
         return inspect_dump(frame, out)
         return inspect_dump(frame, out)