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

Материал из Space Station 14 Вики
Нет описания правки
Нет описания правки
 
(не показаны 4 промежуточные версии этого же участника)
Строка 1: Строка 1:
<div>{{{prefix|Если }}}{{#switch: {{{1|}}}
<div>{{{prefix|Если }}}{{#switch: {{{1|}}}
| !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: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: {{{shouldHave|}}} | false | метаболизм не | метаболизм }}: {{loc|режим=GetRawString|{{#invoke:GetField|get|{{{type}}}|prototype/metabolizerType.json|name}}}}
| !type:OrganType = {{#ifeq: {{{shouldHave|}}} | false | метаболизм не | метаболизм }}: {{loc|режим=GetRawString|{{#invoke:GetField|get|{{{type}}}|prototype/MetabolizerType.json|name}}}}
| !type:TotalDamageCondition|!type:TotalDamage|!type:TypedDamageThreshold = тело {{#ifeq: {{{inverted|}}} | true | не }} имеет {{#if: {{{min|}}} | от '''{{{min}}}''' ед. }} {{#if: {{{max|}}} | до '''{{{max}}}''' ед. }} общего урона
| !type:TemperatureCondition|!type:Temperature = температура раствора составляет {{#if: {{{min|}}} | от '''{{{min}}}''' ед. }} {{#if: {{{max|}}} | до '''{{{max}}}''' ед. }}
| !type:HungerCondition|!type:Hunger = цель {{#ifeq: {{{inverted|}}} | true | не }} имеет {{#if: {{{min|}}} | от '''{{{min}}}''' ед. }} {{#if: {{{max|}}} | до '''{{{max}}}''' ед. }} общего голода
| !type:Breathing = цель {{#ifeq: {{{isBreathing|}}} | false | дышит нормально | задыхается }}
| !type:Internals = цель {{#ifeq: {{{usingInternals|}}} | false | использует дыхательную маску | дышит атмосферным газом }}
 
| !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/Component}}.
| !type:HasComponentOnEquipmentCondition = {{#ifeq: {{{inverted|}}} | true | нет | ecnm }} компонент от одежды {{#invoke:GetField|json|{{{components}}}|serialization/Component}}.
| !type:UniqueBloodstreamChemThreshold = киличество реагентов {{#if: {{{min|}}} | от '''{{{min}}}''' ед. }} {{#if: {{{max|}}} | до '''{{{max}}}''' ед. }}
| !type:UniqueBloodstreamChemThreshold = количество реагентов {{#if: {{{min|}}} | от '''{{{min}}}''' ед. }} {{#if: {{{max|}}} | до '''{{{max}}}''' ед. }}
| !type:HasTag = {{#ifeq: {{{inverted|}}} | true | не }} имеет тег <code>tag</code>.  
| !type:HasTag = {{#ifeq: {{{inverted|}}} | true | не }} имеет тег <code>tag</code>.  
| !type:PressureThreshold = давление {{#if: {{{min|}}} | от '''{{{min}}}''' }} {{#if: {{{max|}}} | до '''{{{max}}}''' }} кПа.
| !type:PressureThreshold = давление от {{#if: {{{min|}}} | от '''{{{min}}}''' кПа }} {{#if: {{{max|}}} | до '''{{{max}}}''' кПа }}.
| !type:StaminaDamageThreshold = у цели {{#if: {{{min|}}} | от '''{{{min}}}''' }} {{#if: {{{max|}}} | до '''{{{max}}}''' }} урона выносливости.
| !type:StaminaDamageThreshold = у цели {{#if: {{{min|}}} | от '''{{{min}}}''' }} {{#if: {{{max|}}} | до '''{{{max}}}''' }} урона выносливости.


| #default = {{#invoke:GetField|json|path=Corvax|idKey={{{1}}}|{{{value}}}|{{#tag:nowiki|Serialization/JobRequirements{{!}}prefix=}}}}
| #default = {{#invoke:GetField|json|path=Corvax|idKey={{{1}}}|{{{value}}}|Serialization/EntityEffect|tplArgs=prefix=}}
}}</div>
}}</div>

Текущая версия от 08:02, 23 июня 2026

Если