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

Материал из Space Station 14 Вики
Новая страница: «<div>Если {{#switch: {{{id|}}} | !type:ReagentThreshold = количество {{loc|режим=GetRawString|{{#invoke:GetField|get|{{{reagent}}}|prototype/reagent.json|name}}}} {{#if: {{{min|}}} | от '''{{{min}}}''' ед. }} {{#if: {{{max|}}} | до '''{{{max}}}''' ед. }} в крови | !type:OrganType = {{#ifeq: {{{inverted|}}} | true | нет метаболизм | метаболизм }}: {{#invoke:GetField|json...»
 
Нет описания правки
 
(не показано 5 промежуточных версий этого же участника)
Строка 1: Строка 1:
<div>Если {{#switch: {{{id|}}}
<div>Если {{#switch: {{{id|}}}
| !type:ReagentThreshold = количество [[Химия#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 | нет метаболизм | метаболизм }}: {{loc|режим=GetRawString|{{#invoke:GetField|get|{{{type}}}|prototype/metabolizerType.json|name}}}}
| !type:MobStateCondition = состояние {{#ifeq: {{{inverted|}}} | true | не }} тела {{serialization/MobState|{{{mobstate|Alive}}}}}
| !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|!type:Hunger = цель {{#ifeq: {{{inverted|}}} | true | не }} имеет {{#if: {{{min|}}} | от '''{{{min}}}''' ед. }} {{#if: {{{max|}}} | до '''{{{max}}}''' ед. }} общего голода
| !type:IsBreathing = цель {{#ifeq: {{{inverted|}}} | true | дышит нормально | задыхается }}
| !type:Breathing = цель {{#ifeq: {{{inverted|}}} | true | дышит нормально | задыхается }}
| !type:InternalsCondition = цель {{#ifeq: {{{inverted|}}} | true | дышит через баллон | дышит атмосферным воздухом }}.
| !type:Internals = цель {{#ifeq: {{{inverted|}}} | true | дышит через баллон | дышит атмосферным воздухом }}.


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

Текущая версия от 14:59, 25 марта 2026

Если Неизвестное условие: {{{id}}} [[править]]