Шаблон:Goob:Serialization/EntityEffect/conditions: различия между версиями
Pok (обсуждение | вклад) Нет описания правки |
Pok (обсуждение | вклад) Нет описания правки |
||
| (не показаны 2 промежуточные версии этого же участника) | |||
| Строка 1: | Строка 1: | ||
<div>Если {{#switch: {{{id|}}} | <div>Если {{#switch: {{{id|}}} | ||
| !type:ReagentThreshold = количество {{#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 | не }} | | !type:MobStateCondition = состояние тела {{#ifeq: {{{inverted|}}} | true | не }} {{serialization/MobState|{{{mobstate|Alive}}}}} | ||
| !type:TotalDamageCondition = тело {{#ifeq: {{{inverted|}}} | true | не }} имеет {{#if: {{{min|}}} | от '''{{{min}}}''' ед. }} {{#if: {{{max|}}} | до '''{{{max}}}''' ед. }} общего урона | | !type:TotalDamageCondition|!type:TotalDamage|!type:TypedDamageThreshold = тело {{#ifeq: {{{inverted|}}} | true | не }} имеет {{#if: {{{min|}}} | от '''{{{min}}}''' ед. }} {{#if: {{{max|}}} | до '''{{{max}}}''' ед. }} общего урона | ||
| !type:TemperatureCondition = температура раствора составляет {{#if: {{{min|}}} | от '''{{{min}}}''' ед. }} {{#if: {{{max|}}} | до '''{{{max}}}''' ед. }} | | !type:TemperatureCondition|!type:Temperature = температура раствора составляет {{#if: {{{min|}}} | от '''{{{min}}}''' ед. }} {{#if: {{{max|}}} | до '''{{{max}}}''' ед. }} | ||
| !type:TagCondition = цель {{#ifeq: {{{inverted|}}} | true | не }} имеет метку <code>{{{tag}}}</code> | | !type:TagCondition = цель {{#ifeq: {{{inverted|}}} | true | не }} имеет метку <code>{{{tag}}}</code> | ||
| !type:HungerCondition = цель {{#ifeq: {{{inverted|}}} | true | не }} имеет {{#if: {{{min|}}} | от '''{{{min}}}''' ед. }} {{#if: {{{max|}}} | до '''{{{max}}}''' ед. }} общего голода | | !type:HungerCondition = цель {{#ifeq: {{{inverted|}}} | true | не }} имеет {{#if: {{{min|}}} | от '''{{{min}}}''' ед. }} {{#if: {{{max|}}} | до '''{{{max}}}''' ед. }} общего голода | ||
| !type:Breathing = цель {{#ifeq: {{{inverted|}}} | true | дышит нормально | задыхается }} | | !type:Breathing = цель {{#ifeq: {{{inverted|}}} | true | дышит нормально | задыхается }} | ||
| !type:Internals = цель {{#ifeq: {{{inverted|}}} | true | дышит через баллон | дышит атмосферным воздухом }}. | | !type:Internals = цель {{#ifeq: {{{inverted|}}} | true | дышит через баллон | дышит атмосферным воздухом }}. | ||
| !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}}}''' ед. }} | |||
| !type:HasTag = {{#ifeq: {{{inverted|}}} | true | не }} имеет тег <code>tag</code>. | |||
| !type:PressureThreshold = давление от {{#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> | ||