Шаблон:Component/explosive: различия между версиями

Нет описания правки
Нет описания правки
 
(не показаны 2 промежуточные версии этого же участника)
Строка 4: Строка 4:
   |
   |
     <!-- если {{{totalIntensity}}} <= v0 -->
     <!-- если {{{totalIntensity}}} <= v0 -->
     {{#expr: (3 * {{{totalIntensity}}} / ({{{intensitySlope}}} * 3.141592653589793))^(1/3) round 2 }}
     {{#expr: (3 * {{{totalIntensity}}} / ({{{intensitySlope}}} * 3.141592653589793))^(1/3) round 0 }}
   |
   |
     <!-- иначе: усечённый конус -->
     <!-- иначе: усечённый конус -->
     {{#expr: ({{{maxIntensity}}} / {{{intensitySlope}}}) * ( sqrt( 12 * {{{totalIntensity}}} / (3.141592653589793 / 3 * ({{{maxIntensity}}}^3) / ({{{intensitySlope}}}^2)) - 3 ) / 6 + 0.5 ) round 2 }}
     {{#expr: ({{{maxIntensity}}} / {{{intensitySlope}}}) * ( sqrt( 12 * {{{totalIntensity}}} / (3.141592653589793 / 3 * ({{{maxIntensity}}}^3) / ({{{intensitySlope}}}^2)) - 3 ) / 6 + 0.5 ) round 0 }}
   }}
   }}
}}<!--
}}<!--
Строка 17: Строка 17:
|cardContent_Взрывчатка_Эффект =  
|cardContent_Взрывчатка_Эффект =  
Наносит в эпицентре взрыва:
Наносит в эпицентре взрыва:
{{serialization/damage|type=list|{{#invoke:GetField|get|{{{explosionType}}}|prototype/explosion.json|damagePerIntensity.types}}|value_replace=<nowiki>'''{{цвет|text|\2|c={{#expr: \1 * {{#var:explosiveIntensity}} }} }}'''</nowiki>}}<!--
{{serialization/damage|type=revertList|{{#invoke:GetField|get|{{{explosionType}}}|prototype/explosion.json|damagePerIntensity.types}}|value_replace=<nowiki>'''{{цвет|text|\2|c={{#expr: \1 * {{#var:explosiveIntensity}} }} }}'''</nowiki>}}<!--


-->{{#if: {{{temperature|}}} | Температура взрыва: '''{{{temperature}}}''' }}<!--
-->{{#if: {{{temperature|}}} | Температура взрыва: '''{{{temperature}}}''' }}<!--