Шаблон:Serialization/EntityEffect/conditions/Goob: различия между версиями
Материал из Space Station 14 Вики
Pok (обсуждение | вклад) Нет описания правки |
Pok (обсуждение | вклад) Нет описания правки |
||
| Строка 1: | Строка 1: | ||
<div>Если {{#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: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}}}''' | | !type:PressureThreshold = давление {{#if: {{{min|}}} | от '''{{{min}}}''' }} {{#if: {{{max|}}} | до '''{{{max}}}''' }} кПа. | ||
| !type:StaminaDamageThreshold = у цели {{#if: {{{min|}}} | от '''{{{min}}}''' }} {{#if: {{{max|}}} | до '''{{{max}}}''' }} урона выносливости. | |||
|#default = | | #default = {{#invoke:GetField|json|path=Corvax|idKey={{{1}}}|{{{value}}}|{{#tag:nowiki|Serialization/JobRequirements{{!}}prefix=}}}} | ||
}}</div> | }}</div> | ||
Версия от 11:16, 10 июня 2026
Если