From 4072a99b40a2782092af9efabefa8f6f79d621a9 Mon Sep 17 00:00:00 2001 From: raylu Date: Fri, 25 Oct 2013 00:47:06 -0700 Subject: fix BPC costs --- web/static/js/kill.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'web/static/js/kill.js') diff --git a/web/static/js/kill.js b/web/static/js/kill.js index e1e601a..57d33fc 100644 --- a/web/static/js/kill.js +++ b/web/static/js/kill.js @@ -134,8 +134,14 @@ window.addEvent('domready', function() { } items[slot].each(function(item) { var type_id = item['type_id']; + var item_name = item['item_name']; var item_class = item['dropped'] ? 'dropped' : 'destroyed'; var count = item[item_class]; + var cost = item['cost'] * count; + if (item['singleton'] == 2) { + item_name += ' (copy)'; + cost /= 1000; + } table.grab(new Element('tr').adopt( new Element('td').grab( new Element('img', { @@ -143,9 +149,9 @@ window.addEvent('domready', function() { 'alt': item['item_name'], }) ), - new Element('td', {'html': item['item_name']}), + new Element('td', {'html': item_name}), new Element('td', {'html': count, 'class': item_class}), - new Element('td', {'html': ykill.format_isk(item['cost'])}) + new Element('td', {'html': ykill.format_isk(cost)}) )); }); }); -- cgit v1.2.3