KC3Kai / kancolle-replay

Sortie Replay and Simulation by @fourinone41
MIT License
52 stars 33 forks source link

Could you add Sparkling functionality to friendly fleets? #71

Closed koedoyoshida closed 1 year ago

koedoyoshida commented 1 year ago

When creating a deck from scratch or Morale defaults to 49 after importing a deck. The same goes for the support fleet. This has a big impact on win rate. In order to simulate the sparkling state, it is necessary to change the morale. more in the text box of each ship one by one, which is very inconvenience. I want my fleet and friendly fleet to be in Sparkling state by default or by pressing a Mamiya Irako button.

It's a rough hack, but an example of setting it to a sparkling state by default

diff --git a/js/simulator-ui/fleet-editor.js b/js/simulator-ui/fleet-editor.js
index 0f86b7f..02c1eda 100644
--- a/js/simulator-ui/fleet-editor.js
+++ b/js/simulator-ui/fleet-editor.js
@@ -121,7 +121,7 @@ var FLEET_MODEL = {
                        level: level,
                        hp: sdata.HP,
                        hpInit: sdata.HP,
-                       morale: 49,
+                       morale: isFriend ? 52 : 49,
                        fuelInit: 100,
                        ammoInit: 100,
                        statsBase: {
koedoyoshida commented 1 year ago

It's now convenient! Thank you for adding this feature.