Module:Damage: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 53: Line 53:
             total = total + args['dmg' .. i] * args['hits' .. i]
             total = total + args['dmg' .. i] * args['hits' .. i]
             i = i + 1
             i = i + 1
         elseif string.starts(k, 'hits_useful') then
          
            total_useful = total_useful + args['dmg' .. i] * args['hits_useful' .. i]
            i = i + 1
         end
         end
     end
     end