Шаблон:Goob:Serialization/EntityEffect/conditions: различия между версиями

Нет описания правки
Нет описания правки
Строка 1: Строка 1:
<div>Если {{#switch: {{{id|}}}
<div>Если {{#switch: {{{id|}}}
| !type:ReagentThreshold|BloodReagentThreshold = количество {{#if: {{{reagent|}}} | [[Химия#chem_{{{reagent}}}|{{loc|режим=GetRawString|{{#invoke:GetField|get|{{{reagent}}}|prototype/reagent.json|name}}}}]] | реагентов}} {{#if: {{{min|}}} | от '''{{{min}}}''' ед. }} {{#if: {{{max|}}} | до '''{{{max}}}''' ед. }} в крови
| !type:ReagentThreshold|!type:BloodReagentThreshold = количество {{#if: {{{reagent|}}} | [[Химия#chem_{{{reagent}}}|{{loc|режим=GetRawString|{{#invoke:GetField|get|{{{reagent}}}|prototype/reagent.json|name}}}}]] | реагентов}} {{#if: {{{min|}}} | от '''{{{min}}}''' ед. }} {{#if: {{{max|}}} | до '''{{{max}}}''' ед. }} в крови
| !type:OrganType = {{#ifeq: {{{inverted|}}} | true | нет метаболизм | метаболизм }}: {{#invoke:GetField|jsonList|{{{type}}}|type=enum|value_replace=<nowiki>{{loc|режим=GetRawString|{{#invoke:GetField|get|\1|prototype/metabolizerType.json|name}}}}</nowiki>}}
| !type:OrganType = {{#ifeq: {{{inverted|}}} | true | нет метаболизм | метаболизм }}: {{#invoke:GetField|jsonList|{{{type}}}|type=enum|value_replace=<nowiki>{{loc|режим=GetRawString|{{#invoke:GetField|get|\1|prototype/metabolizerType.json|name}}}}</nowiki>}}
| !type:MobStateCondition = состояние тела {{#ifeq: {{{inverted|}}} | true | не }} {{serialization/MobState|{{{mobstate|Alive}}}}}
| !type:MobStateCondition = состояние тела {{#ifeq: {{{inverted|}}} | true | не }} {{serialization/MobState|{{{mobstate|Alive}}}}}
Строка 11: Строка 11:


|!type:HasComponentCondition = цель {{#ifeq: {{{inverted|}}} | true | не }} имеет {{loc|{{{guidebookComponentName}}}}}.
|!type:HasComponentCondition = цель {{#ifeq: {{{inverted|}}} | true | не }} имеет {{loc|{{{guidebookComponentName}}}}}.
|!type:HasComponentOnEquipmentCondition = {{#ifeq: {{{inverted|}}} | true | нет | ecnm }} компонент от одежды {{#invoke:GetField|json|{{{components}}}|serialization/ComponentRegistry}}.
|!type:UniqueBloodstreamChemThreshold = киличество реагентов {{#if: {{{min|}}} | от '''{{{min}}}''' ед. }} {{#if: {{{max|}}} | до '''{{{max}}}''' ед. }}


|#default = Неизвестное условие: <code>{{{id}}}</code> [{{править|Шаблон:Goob:Serialization/EntityEffect/conditions}}]<includeonly>[[Категория:Страницы с ошибкой полей]]</includeonly>
|#default = Неизвестное условие: <code>{{{id}}}</code> [{{править|Шаблон:Goob:Serialization/EntityEffect/conditions}}]<includeonly>[[Категория:Страницы с ошибкой полей]]</includeonly>
}}</div>
}}</div>