summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorraylu <raylu@gridium.com>2013-10-25 00:47:06 -0700
committerraylu <raylu@gridium.com>2013-10-25 00:47:06 -0700
commit4072a99b40a2782092af9efabefa8f6f79d621a9 (patch)
tree36c875f4c75e411a51ef36968e1773611a88ceca /web
parent4fb8abde07e94889ba1acfc86e0b36319c136b97 (diff)
downloadykill-4072a99b40a2782092af9efabefa8f6f79d621a9.tar.xz
fix BPC costs
Diffstat (limited to 'web')
-rw-r--r--web/static/css/kill.ccss4
-rw-r--r--web/static/js/kill.js10
2 files changed, 10 insertions, 4 deletions
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)})
));
});
});