| Line 24: |
Line 24: |
| | | | |
| | <math>\text {Total repair time} = \text {HP loss} \times \text {base repair time} \times \text {ship type multiplier} + \text {30 seconds}</math> | | <math>\text {Total repair time} = \text {HP loss} \times \text {base repair time} \times \text {ship type multiplier} + \text {30 seconds}</math> |
| − | <math>\text {Base repair time} = \text {Level} \times 10 \text {(if Level } \le \text {11); } \text {Level} \times 5 + floor (\sqrt {Level - 11}) \times 10 + 50 \text { (if Level } \ge \text {12)}</math> | + | |
| | + | <math>\text {Base repair time} = \begin{align*} |
| | + | \left\{ |
| | + | \begin{array}{l l} |
| | + | \text {Level} \times 10 & \text {if Level } \le \text {11} \\ |
| | + | \text {Level} \times 5 + \lfloor (\sqrt {Level - 11})\rfloor \times 10 + 50 & \text {if Level } \ge \text {12} |
| | + | \end{array} |
| | + | \right\} |
| | + | \end{align*}</math> |
| | | | |
| | {| class="wikitable" | | {| class="wikitable" |
| Line 44: |
Line 52: |
| | | | |
| | ==Repair cost== | | ==Repair cost== |
| − | <math>\text {Fuel cost} = floor(\text {Base fuel cost} \times \text {HP loss} \times 0.032)</math><br /> | + | <math>\text {Fuel cost} = \lfloor(\text {Base fuel cost} \times \text {HP loss} \times 0.032)\rfloor</math><br /> |
| − | <math>\text {Steel cost} = floor\text {Base fuel cost} \times \text {HP loss} \times 0.06),</math> | + | <math>\text {Steel cost} = \lfloor(\text {Base fuel cost} \times \text {HP loss} \times 0.06)\rfloor</math> |
| | + | |
| | where base fuel cost is the amount of fuel needed to resupply that ship from 0 to full.<br> | | where base fuel cost is the amount of fuel needed to resupply that ship from 0 to full.<br> |
| | The cost is rounded down when using dry docks, so most destroyers and submarines with only 1 HP loss can be repaired for free.<br> | | The cost is rounded down when using dry docks, so most destroyers and submarines with only 1 HP loss can be repaired for free.<br> |
| Line 251: |
Line 260: |
| | Example 1: Level 67 [[Kongou|Kongou Kai]] with 41/75 HP (34 damage): | | Example 1: Level 67 [[Kongou|Kongou Kai]] with 41/75 HP (34 damage): |
| | * Base repair time: | | * Base repair time: |
| − | **<math>67 \times 5 + floor(\sqrt {67 - 11}) \times 10 + 50 = 335 + 7 \times 10 + 50 = \text {455 seconds}</math> | + | **<math>67 \times 5 + \lfloor(\sqrt {67 - 11})\rfloor \times 10 + 50 = 335 + 7 \times 10 + 50 = \text {455 seconds}</math> |
| | * Repair time: | | * Repair time: |
| | **<math>34 \times \text{455 seconds} \times 1.5 + \text{30 seconds} = \text{23235 seconds or 6:27:15}</math> | | **<math>34 \times \text{455 seconds} \times 1.5 + \text{30 seconds} = \text{23235 seconds or 6:27:15}</math> |
| | * Resource costs: | | * Resource costs: |
| − | **<math>floor(90 \times 34 \times 0.06) = \text{183 steel}</math> | + | **<math>\lfloor(90 \times 34 \times 0.06)\rfloor = \text{183 steel}</math> |
| − | **<math>floor(90 \times 34 \times 0.032) = \text{97 fuel}</math> | + | **<math>\lfloor(90 \times 34 \times 0.032)\rfloor = \text{97 fuel}</math> |
| − | Example 2: Level 150 [[Musashi|Musashi Kai]] with 1/106 HP (105 damage): | + | Example 2: Level 175 [[Musashi|Musashi Kai Ni]] with 1/108 HP (107 damage): |
| | * Base repair time: | | * Base repair time: |
| − | **<math>150 \times 5 + floor(\sqrt {150 - 11}) \times 10 + 50 = 750 + 11 \times 10 + 50 = \text {910 seconds}</math> | + | **<math>175 \times 5 + \lfloor(\sqrt {175 - 11})\rfloor \times 10 + 50 = 750 + 11 \times 10 + 50 = \text {1045 seconds}</math> |
| | * Repair time: | | * Repair time: |
| − | ** <math>105 \times \text{910 seconds} \times 2.0 + \text{30 seconds} = \text{191130 seconds or 53:05:30}</math> | + | ** <math>107 \times \text{1045 seconds} \times 2.0 + \text{30 seconds} = \text{223660 seconds or 62:07:14}</math> |
| | * Resource costs: | | * Resource costs: |
| − | ** <math>floor(250 \times 105 \times 0.06) = \text{1575 steel}</math> | + | ** <math>\lfloor(275 \times 107 \times 0.06)\rfloor = \text{1765 steel}</math> |
| − | ** <math>floor(250 \times 105 \times 0.032) = \text{840 fuel}</math> | + | ** <math>\lfloor(275 \times 107 \times 0.032)\rfloor = \text{941 fuel}</math> |
| | * This is the highest in the game currently. | | * This is the highest in the game currently. |
| | | | |
| | | | |
| | {{Mechanics}} | | {{Mechanics}} |