Песочница/Pok: различия между версиями
Материал из Space Station 14 Вики
|
|
| (не показано 5 промежуточных версий этого же участника) |
| Строка 1: |
Строка 1: |
| {{#vardefine:explosiveRadius| | | {{#dpl: |
| {{#ifexpr:
| | |namespace=Module |
| {{{totalIntensity|200}}} <= {{#expr: 3.141592653589793 / 3 * ({{{maxIntensity|60}}}^3) / ({{{intensitySlope|30}}}^2) }}
| | |titleregexp=^IanComradeBot/prototype/[A-ZА-ЯЁ] |
| |
| |
| <!-- если {{{totalIntensity|200}}} <= v0 -->
| |
| {{#expr: (3 * {{{totalIntensity|200}}} / ({{{intensitySlope|30}}} * 3.141592653589793))^(1/3) }}
| |
| |
| |
| <!-- иначе: усечённый конус -->
| |
| {{#expr: ({{{maxIntensity|60}}} / {{{intensitySlope|30}}}) * ( sqrt( 12 * {{{totalIntensity|200}}} / (3.141592653589793 / 3 * ({{{maxIntensity|60}}}^3) / ({{{intensitySlope|30}}}^2)) - 3 ) / 6 + 0.5 ) }}
| |
| }}
| |
| }} | | }} |
| {{#vardefine:explosiveIntensity|{{#expr: {{{intensitySlope|30}}} * {{#var:explosiveRadius}} }}}}
| |
|
| |
| {{#var:explosiveIntensity}}
| |
Текущая версия от 18:40, 12 июня 2026