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/css/kill.ccss | 4 ++-- web/static/js/kill.js | 10 ++++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) (limited to 'web') diff --git a/web/static/css/kill.ccss b/web/static/css/kill.ccss index 9b29093..3cb64db 100644 --- a/web/static/css/kill.ccss +++ b/web/static/css/kill.ccss @@ -117,9 +117,9 @@ table#items: th:nth-child(1): width: 33px th:nth-child(2): - width: 300px + width: 285px th:nth-child(3): - width: 50px + width: 65px th:nth-child(4): width: 117px 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