Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/KC3Kai/kancolle-replay in…
Browse files Browse the repository at this point in the history
…to gh-pages
  • Loading branch information
fourinone41 committed Oct 10, 2024
2 parents 2e1abe4 + d03fda3 commit b07d417
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions js/data/strings_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@
"no_chuuha_after_battle": "No {img_chuuha} After Battle",
"moderate_damage": "Moderate Damage",
"all": "All",
"node_reached": "Node Reached",
"fcf_used": "{img_fcf}Used",
"avg_resupply": "Avg Resupply",
"avg_resupply_tooltip": "Includes Main Fleet + Support Fleets + LBAS",
Expand Down
1 change: 1 addition & 0 deletions js/data/strings_ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@
"no_chuuha_after_battle": "戦闘後に{img_chuuha}艦がいない割合",
"moderate_damage": "中破",
"all": "All",
"node_reached": "Node到達率",
"fcf_used": "{img_fcf}退避率",
"avg_resupply": "平均補給コスト",
"avg_resupply_tooltip": "出撃艦隊 + 支援艦隊 + 基地航空隊出撃&補充コスト",
Expand Down
3 changes: 2 additions & 1 deletion js/simulator-ui/ui-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ var UI_MAIN = Vue.createApp({
fuelS: 0, ammoS: 0, steelS: 0, bauxS: 0, bucketS: 0, dameconS: 0, underwayS: 0,
fuelSunk: 0, ammoSunk: 0, steelSunk: 0, bauxSunk: 0, bucketSunk: 0, dameconSunk: 0, underwaySunk: 0,
emptiedPlane: 0, emptiedLBAS: 0,
fcfUsed: 0,
fcfUsed: 0, nodeReached: [],
showMore: false,
fuelA: 0, ammoA: 0, steelA: 0, bauxA: 0, bucketA: 0, dameconA: 0, underwayA: 0,
fuelB: 0, ammoB: 0, steelB: 0, bauxB: 0, bucketB: 0, dameconB: 0, underwayB: 0,
Expand Down Expand Up @@ -586,6 +586,7 @@ var UI_MAIN = Vue.createApp({

for (let i=0; i<resultSim.nodes.length; i++) {
let node = resultSim.nodes[i];
this.results.nodeReached[i] = formatNum(node.num / totalNum);
for (let letter in node.ranks) {
let key = 'rank'+letter;
this.results[key+'Node'][i] = formatNum(node.ranks[letter] / node.num);
Expand Down
7 changes: 7 additions & 0 deletions simulator.html
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,13 @@ <h3>
<tr><th>{{$t('all')}}</th><td v-for="stat in results.noChuuha">{{stat}}</td></tr>
</table>
</div>
<div v-show="results.numNodes>1">
<div>{{$t('node_reached')}}:</div>
<table class="multi">
<tr><th v-for="n in results.numNodes">{{n}}</th></tr>
<tr><td v-for="stat in results.nodeReached">{{stat}}</td></tr>
</table>
</div>
<div v-show="results.fcfUsed">
<div><i18n-t keypath="fcf_used" scope="global"><template v-slot:img_fcf><img src="assets/items/28.png"/></template></i18n-t>: {{results.fcfUsed}}</div>
</div>
Expand Down

0 comments on commit b07d417

Please sign in to comment.