Template:TorpedoTravelTime/Documentation
Contents
Description
Calculate torpedo travel time for a given speed and distance. Outputted value is a raw number of seconds, without any formatting or units. It can be used as a direct input for other templates or parser functions.
For realistic battles it's calculated using the real torpedo speed, for arcade battles it's using speed multiplier introduced in Update "Red Skies":
Torpedo speed multiplier in AB: |
Parameters
- distance - Distance travelled by the torpedo in kilometers. Default: 10
- speed - Torpedo speed as indicated in the game interface in kilometers per hour (km/h). Default: 91
- mode - One of: AB or Arcade, alternatively RB or Realistic, case-sensitive. Default: RB
- round - To how many decimal places should output be rounded. Default: 0 means that 332.67326733 will be rounded to 333. Non-default shouldn't be used for any times that go in minutes.
Examples of use
S.I. 250/533,4X7,5 Tipo A (533 mm) time to reach maximum range in Realistic battles:
189 s {{TorpedoTravelTime|distance=4|speed=76}} s |
Type 93 Model 1, Mod 2 (610 mm) travel time for a typical spawn-to-spawn range (12 km) in Arcade battles:
527 s (≈9 minutes) {{TorpedoTravelTime|mode=AB|distance=12|speed=91}} s (≈{{#expr:{{TorpedoTravelTime|mode=AB|distance=12|speed=91}}/60 round 0}} minutes) | |||||||||||
G7a (533 mm) travel time with and without torpedo mode compared at 4 kilometers:
Without torpedo mode: 59 s; With torpedo mode: 86 s Without torpedo mode: {{TorpedoTravelTime|mode=AB|distance=4|speed=81}} s; With torpedo mode: {{TorpedoTravelTime|mode=AB|distance=4|speed=56}} s |
Model 1923DT (550 mm) comparison between RB and AB:
{| class="wikitable" style="text-align:center" width="auto" ! rowspan="2" | Torpedo Mode !! colspan="2" | Travel time to 8 km (s) |- ! Arcade Battles !! Realistic Battles |- | {{Annotation|No|'Torpedo Mode' modification uninstalled}} || {{TorpedoTravelTime|mode=AB|distance=8|speed=72}} || {{TorpedoTravelTime|mode=RB|distance=8|speed=72}} |- | {{Annotation|Yes|'Torpedo Mode' modification installed}} || {{TorpedoTravelTime|mode=AB|distance=8|speed=64.8}} || {{TorpedoTravelTime|mode=RB|distance=8|speed=64.8}} |} |
Calculate torpedo travel time
Parameter | Description | Type | Status | |
---|---|---|---|---|
Distance travelled | distance | Distance travelled by the torpedo in kilometers
| Number | optional |
Speed | speed | Torpedo speed as indicated in the game interface in km/h
| Number | optional |
Game mode | mode | RB or AB
| String | optional |
Rounding | round | Round to decimal places
| Number | optional |