Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Qandra-Si/q.industrialist
Browse files Browse the repository at this point in the history
  • Loading branch information
Qandra-Si committed Jan 7, 2025
2 parents 1318554 + 8819625 commit 6d5aeb4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 4 additions & 1 deletion php_interface/qi_praisal.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ function eveSysNumber(x) { return x <= 2147483647; }
function eveUserNumber(x) { return x > 2147483647; }

function numLikeEve(x) {
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
return Number.parseFloat(x).toFixed(2).toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}
function numToFixed(x, fixed) {
return Number.parseFloat(x).toFixed(fixed).toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}
(function() {
/**
Expand Down
4 changes: 2 additions & 2 deletions php_interface/qi_render_trade_hubs.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ function fillMarketHubsTable(tbody,active) {
'<td>'+Math.round10(tax*100.0,-1)+'</td>'+
'<td>'+Math.round10(margin*100.0,-1)+'</td>'+
'<td>';
if (!(h[12]===null)) rows=rows+numLikeEve(h[12]);
if (!(h[13]===null)) rows=rows+'<br>'+numLikeEve(h[13]);
if (!(h[12]===null)) rows=rows+numToFixed(h[12], 3);
if (!(h[13]===null)) rows=rows+'<br>'+numToFixed(h[13], 0);
rows=rows+
'</td>';
if (h[14]===null) rows=rows+'<td></td>';
Expand Down
4 changes: 3 additions & 1 deletion q_industrialist_settings.py.template
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ g_industry_calc_customization = {
'industry_time': 5 * 60 * 60 * 24, # типично для R Industry (сутки)
# 'industry_time': 7 * 5 * 60 * 60 * 24, # неделя
# 'industry_time': (5 * 60 * 60 * 24) // 8, # производство по 2400 Fuel Blocks (60 runs)
'common_components': [ # market-группы компонентов общего потребления
# market-группы компонентов общего потребления, которые производятся крупными партиями за один
# запуск работы (количество прогонов настраивается с помощью industry_time)
'common_components': [
1870, # Fuel Blocks
65, # Advanced Components
1883, # Advanced Capital Components
Expand Down

0 comments on commit 6d5aeb4

Please sign in to comment.