Шаблон:Serialization/EntityEffect: различия между версиями
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) Нет описания правки |
||
| Строка 2: | Строка 2: | ||
{{{prefix|*}}} {{#if: {{{conditions|}}}{{{probability|}}} | {{#invoke:GetField|json|{{{conditions}}}|serialization/EntityEffect/conditions}} {{#if: {{{probability|}}} | Вероятность '''{{#expr:(1 - {{{probability|}}}) * 100}}''' %}} | {{{prefix|*}}} {{#if: {{{conditions|}}}{{{probability|}}} | {{#invoke:GetField|json|{{{conditions}}}|serialization/EntityEffect/conditions}} {{#if: {{{probability|}}} | Вероятность '''{{#expr:(1 - {{{probability|}}}) * 100}}''' %}} | ||
{{{prefix|*}}}{{{prefix|*}}} }} {{#switch: {{{1|}}} | {{{prefix|*}}}{{{prefix|*}}} }} {{#switch: {{{1|}}} | ||
| !type:HealthChange = Изменяет здоровья на {{#invoke:GetField|jsonList|{{{damage.types}}}|type=enum|key_replace=<nowiki>{{цвет|text|\1|c={{loc|режим=GetRawString|{{#invoke:GetField|get|\1|prototype/ | | !type:HealthChange = Изменяет здоровья на {{#invoke:GetField|jsonList|{{{damage.types}}}|type=enum|key_replace=<nowiki>{{цвет|text|\1|c={{loc|режим=GetRawString|{{#invoke:GetField|get|\1|prototype/DamageType.json|name}}}}}}</nowiki>|value_replace=<nowiki>{{signedNumber|invert=1|\1}}</nowiki>}}{{#if: {{{damage.types|}}} | {{#if: {{{damage.groups|}}} | , }}}}{{#invoke:GetField|jsonList|{{{damage.groups}}}|type=enum|key_replace=<nowiki>{{цвет|text|\1|c={{loc|режим=GetRawString|{{#invoke:GetField|get|\1|prototype/DamageGroup.json|name}}}}}}</nowiki>|value_replace=<nowiki>{{signedNumber|invert=1|\1}}</nowiki>}}. | ||
| !type:EvenHealthChange = Изменяет здоровья на {{serialization/damage|value_replace=<nowiki>{{signedNumber|invert=1|\1}}</nowiki>|{{{damage}}}|groups}}. | | !type:EvenHealthChange = Изменяет здоровья на {{serialization/damage|value_replace=<nowiki>{{signedNumber|invert=1|\1}}</nowiki>|{{{damage}}}|groups}}. | ||
| !type:ModifyBloodLevel = Повышает уровень в крови. | | !type:ModifyBloodLevel = Повышает уровень в крови. | ||
| Строка 8: | Строка 8: | ||
| !type:SatiateHunger = Утоляет голод в '''x{{#expr:({{{factor|1.5}}} * {{{scale|1}}}) / 3 round 3}}''' выше средней скорости. | | !type:SatiateHunger = Утоляет голод в '''x{{#expr:({{{factor|1.5}}} * {{{scale|1}}}) / 3 round 3}}''' выше средней скорости. | ||
| !type:SatiateThirst = Утоляет жажду в '''x{{#expr:({{{factor|1.5}}} * {{{scale|1}}}) / 3 round 3}}''' выше средней скорости. | | !type:SatiateThirst = Утоляет жажду в '''x{{#expr:({{{factor|1.5}}} * {{{scale|1}}}) / 3 round 3}}''' выше средней скорости. | ||
| !type:Polymorph = Превращает на время в {{предмет|{{#invoke:GetField|get|{{{prototype}}}|prototype/ | | !type:Polymorph = Превращает на время в {{предмет|{{#invoke:GetField|get|{{{prototype}}}|prototype/Polymorph.json|configuration.entity}}|link=}}. | ||
| !type:SpawnEntity = Создаёт: {{предмет|{{{entity}}}|link=}}. | | !type:SpawnEntity = Создаёт: {{предмет|{{{entity}}}|link=}}. | ||
| !type:Emote = Вызывает неконтролируемую эмоцию {{loc|режим=GetRawString|{{#invoke:GetField|get|{{{emote}}}|prototype/ | | !type:Emote = Вызывает неконтролируемую эмоцию {{loc|режим=GetRawString|{{#invoke:GetField|get|{{{emote}}}|prototype/Emote.json|name}}}}. | ||
| !type:Jitter = Вызывает дрожание. | | !type:Jitter = Вызывает дрожание. | ||
| !type:AdjustReagent = Изменяет уровень реагента [[Химия#chem_{{{reagent}}}|{{loc|режим=GetRawString|{{#invoke:GetField|get|{{{reagent}}}|prototype/ | | !type:AdjustReagent = Изменяет уровень реагента [[Химия#chem_{{{reagent}}}|{{loc|режим=GetRawString|{{#invoke:GetField|get|{{{reagent}}}|prototype/Reagent.json|name}}}}]] в крови на {{signedNumber|{{#expr:{{{amount}}} * {{{scale|1}}}}}}} ед. | ||
| !type:AdjustTemperature = Изменяет температуру тела на '''{{#expr:{{{amount}}} * {{{scale|1}}}}}'''. | | !type:AdjustTemperature = Изменяет температуру тела на '''{{#expr:{{{amount}}} * {{{scale|1}}}}}'''. | ||
| !type:ModifyBleed = Изменяет кровотечение на {{signedNumber|invert=1|{{#expr:{{{amount|-1}}} * {{{scale|1}}}}}}}. | | !type:ModifyBleed = Изменяет кровотечение на {{signedNumber|invert=1|{{#expr:{{{amount|-1}}} * {{{scale|1}}}}}}}. | ||
| Строка 32: | Строка 32: | ||
| !type:Oxygenate = Насыщает кислородом. | | !type:Oxygenate = Насыщает кислородом. | ||
| !type:AreaReactionEffect = Вызывает эффект [[{{lcfirst:{{#invoke:Entity Lookup|getname|AluminiumMetalFoam}}}}]] в течение {{serialization/TimeSpan|{{{duration|10}}}}} | | !type:AreaReactionEffect = Вызывает эффект [[{{lcfirst:{{#invoke:Entity Lookup|getname|AluminiumMetalFoam}}}}]] в течение {{serialization/TimeSpan|{{{duration|10}}}}} | ||
| !type:CreateGas = Создаёт газ [[{{lcfirst:{{loc|режим=GetRawString|{{#invoke:GetField|get|{{{gas}}}|prototype/ | | !type:CreateGas = Создаёт газ [[{{lcfirst:{{loc|режим=GetRawString|{{#invoke:GetField|get|{{{gas}}}|prototype/Gas.json|name}}}}}}]] в количестве '''{{{moles|3}}}''' моли. | ||
| !type:Emp = Вызывает электромагнитный импульс. | | !type:Emp = Вызывает электромагнитный импульс. | ||
| !type:Flash = Вызывает ослепительную вспышку. | | !type:Flash = Вызывает ослепительную вспышку. | ||
| !type:ArtifactDurabilityRestore = Восстанавливает {{{restoredDurability|1}}} прочность активных узлов [[артефакты|артефактов]]. | | !type:ArtifactDurabilityRestore = Восстанавливает {{{restoredDurability|1}}} прочность активных узлов [[артефакты|артефактов]]. | ||
| !type:ArtifactUnlock = Помогает разблокировать инопланетный артефакт. | | !type:ArtifactUnlock = Помогает разблокировать инопланетный артефакт. | ||
| !type:AdjustAlert = Отображает у цели алёрт: {{loc|{{#invoke:GetField|get|{{{alertType}}}|prototype/ | | !type:AdjustAlert = Отображает у цели алёрт: {{loc|{{#invoke:GetField|get|{{{alertType}}}|prototype/Alert.json|name}}}}. | ||
| !type:ModifyLungGas = Изменяет газы в [[лёгкие|лёгких]] {{#invoke:GetField|jsonList|{{{ratios}}}|type=enum|key_replace=<nowiki>[[{{lcfirst:{{loc|режим=GetRawString|{{#invoke:GetField|get|\1|prototype/ | | !type:ModifyLungGas = Изменяет газы в [[лёгкие|лёгких]] {{#invoke:GetField|jsonList|{{{ratios}}}|type=enum|key_replace=<nowiki>[[{{lcfirst:{{loc|режим=GetRawString|{{#invoke:GetField|get|\1|prototype/Gas.json|name}}}}}}]]</nowiki>|value_replace=<nowiki>'''{{#expr:(\1 * </nowiki>{{{scale|1}}})<nowiki> / 1144 round 3}}'''</nowiki>}} молей. | ||
| !type:CleanBloodstream = Вычищает реагенты из крови по '''{{#expr:{{{cleanseRate|3}}} * {{{scale|1}}}}}''' ед. за раз {{#if: {{{excluded|}}} | (исключение: [[Химия#chem_{{{reagent}}}|{{loc|режим=GetRawString|{{#invoke:GetField|get|{{{excluded}}}|prototype/ | | !type:CleanBloodstream = Вычищает реагенты из крови по '''{{#expr:{{{cleanseRate|3}}} * {{{scale|1}}}}}''' ед. за раз {{#if: {{{excluded|}}} | (исключение: [[Химия#chem_{{{reagent}}}|{{loc|режим=GetRawString|{{#invoke:GetField|get|{{{excluded}}}|prototype/Reagent.json|name}}}}]]) }}. | ||
| !type:ModifyKnockdown = Приводит к сбиванию с ног на {{serialization/TimeSpan|{{#expr:{{{time|2}}} * {{{scale|1}}}}}}} | | !type:ModifyKnockdown = Приводит к сбиванию с ног на {{serialization/TimeSpan|{{#expr:{{{time|2}}} * {{{scale|1}}}}}}} | ||