Шаблон:Creaturelookup/0: различия между версиями
Материал из Dwarf Fortress Wiki
Перейти к навигацииПерейти к поиску
GeloMor (обсуждение | вклад) мНет описания правки |
GeloMor (обсуждение | вклад) Нет описания правки |
||
Строка 4: | Строка 4: | ||
symbol={{tagvalue|{{/raw}}|CREATURE_TILE}}| | symbol={{tagvalue|{{/raw}}|CREATURE_TILE}}| | ||
color={{tagvalue|{{/raw}}|COLOR}}| | color={{tagvalue|{{/raw}}|COLOR}}| | ||
biome={{#if:{{{biome|}}}|{{{biome}}}|{{biomelist/aux|{{Copy From | biome={{#if:{{{biome|}}}|{{{biome}}}|{{biomelist/aux|{{Copy From}}}}}}| | ||
vary={{{vary|{{#ifeq:{{creature/variation}}|00|no|{{creature/variation links}}}}}}}| | vary={{{vary|{{#ifeq:{{creature/variation}}|00|no|{{creature/variation links}}}}}}}| | ||
alignment={{#if:{{tag|{{/raw}}|COPY_TAGS_FROM}}|Дикое|{{ | alignment={{#if:{{tag|{{/raw}}|COPY_TAGS_FROM}}|Дикое|{{ | ||
Строка 11: | Строка 11: | ||
#if:{{tag|{{/raw}}|SAVAGE}}|Дикое}}}}| | #if:{{tag|{{/raw}}|SAVAGE}}|Дикое}}}}| | ||
bldgdest={{tagvalue|{{/raw}}|BUILDINGDESTROYER|notfound=0}}| | bldgdest={{tagvalue|{{/raw}}|BUILDINGDESTROYER|notfound=0}}| | ||
attribs={{attrib_proc|{{Copy From | attribs={{attrib_proc|{{Copy From}}{{/raw}}|{{PAGENAME}}}}| | ||
tame_attribs={{tame_attrib_proc|{{Copy From | tame_attribs={{tame_attrib_proc|{{Copy From}}{{/raw}}}}| | ||
pet={{tag|{{/raw|}}|PET}}| | pet={{tag|{{/raw|}}|PET}}| | ||
exotic={{tag|{{/raw|}}|PET_EXOTIC}}| | exotic={{tag|{{/raw|}}|PET_EXOTIC}}| | ||
Строка 20: | Строка 20: | ||
train_war={{#expr:{{#if:{{tag|{{/raw}}|TRAINABLE}}|1|0}} or {{#if:{{tag|{{/raw}}|TRAINABLE_WAR}}|1|0}}}}| | train_war={{#expr:{{#if:{{tag|{{/raw}}|TRAINABLE}}|1|0}} or {{#if:{{tag|{{/raw}}|TRAINABLE_WAR}}|1|0}}}}| | ||
valm={{tagvalue|{{#df_raw:{{/raw}}|SELECT_MATERIAL|ALL}}|MULTIPLY_VALUE|notfound=}}| | valm={{tagvalue|{{#df_raw:{{/raw}}|SELECT_MATERIAL|ALL}}|MULTIPLY_VALUE|notfound=}}| | ||
size0={{#if:{{{size0|}}}|{{{size0|}}}|{{#ifeq:{{tagvalue|{{/raw}}|GRAVITATE_BODY_SIZE|notfound=0}}|0|{{#expr:{{{3|{{tagentryspec|{{Copy From | size0={{#if:{{{size0|}}}|{{{size0|}}}|{{#ifeq:{{tagvalue|{{/raw}}|GRAVITATE_BODY_SIZE|notfound=0}}|0|{{#expr:{{{3|{{tagentryspec|{{Copy From}}|BODY_SIZE|3|-3|notfound=0}}}}} * ({{tagvalue|{{/raw}}|CHANGE_BODY_SIZE_PERC|notfound=100}}/100)}}|{{#expr:{{{3|{{tagentryspec|{{Copy From}}|BODY_SIZE|3|-3|notfound=0}}}}} * ({{tagentryspec|{{Copy From}}|BODY_SIZE|3|-1|notfound=1}} + {{tagvalue|{{/raw}}|GRAVITATE_BODY_SIZE|notfound=0}}) / ({{tagentryspec|{{Copy From}}|BODY_SIZE|3|-1|notfound=1}} * 2)}}}}}}| | ||
size1={{#if:{{{size1|}}}|{{{size1|}}}|{{#ifeq:{{tagvalue|{{/raw}}|GRAVITATE_BODY_SIZE|notfound=0}}|0|{{#expr:{{{3|{{tagentryspec|{{Copy From | size1={{#if:{{{size1|}}}|{{{size1|}}}|{{#ifeq:{{tagvalue|{{/raw}}|GRAVITATE_BODY_SIZE|notfound=0}}|0|{{#expr:{{{3|{{tagentryspec|{{Copy From}}|BODY_SIZE|3|-2|notfound=0}}}}} * ({{tagvalue|{{/raw}}|CHANGE_BODY_SIZE_PERC|notfound=100}}/100)}}|{{#expr:{{{3|{{tagentryspec|{{Copy From}}|BODY_SIZE|3|-2|notfound=0}}}}} * ({{tagentryspec|{{Copy From}}|BODY_SIZE|3|-1|notfound=1}} + {{tagvalue|{{/raw}}|GRAVITATE_BODY_SIZE|notfound=0}}) / ({{tagentryspec|{{Copy From}}|BODY_SIZE|3|-1|notfound=1}} * 2)}}}}}}| | ||
size2={{#if:{{{size2|}}}|{{{size2|}}}|{{#ifeq:{{tagvalue|{{/raw}}|GRAVITATE_BODY_SIZE|notfound=0}}|0|{{#expr:{{{3|{{tagentryspec|{{Copy From | size2={{#if:{{{size2|}}}|{{{size2|}}}|{{#ifeq:{{tagvalue|{{/raw}}|GRAVITATE_BODY_SIZE|notfound=0}}|0|{{#expr:{{{3|{{tagentryspec|{{Copy From}}|BODY_SIZE|3|-1|notfound=0}}}}} * ({{tagvalue|{{/raw}}|CHANGE_BODY_SIZE_PERC|notfound=100}}/100)}}|{{#expr:{{{3|{{tagentryspec|{{Copy From}}|BODY_SIZE|3|-1|notfound=0}}}}} * ({{tagentryspec|{{Copy From}}|BODY_SIZE|3|-1|notfound=1}} + {{tagvalue|{{/raw}}|GRAVITATE_BODY_SIZE|notfound=0}}) / ({{tagentryspec|{{Copy From}}|BODY_SIZE|3|-1|notfound=1}} * 2)}}}}}}| | ||
childage={{tagvalue|{{/raw}}|BABY|notfound={{tagvalue|{{Copy From | childage={{tagvalue|{{/raw}}|BABY|notfound={{tagvalue|{{Copy From}}|BABY|notfound=}}}}| | ||
adultage={{tagvalue|{{/raw}}|CHILD|notfound={{tagvalue|{{Copy From | adultage={{tagvalue|{{/raw}}|CHILD|notfound={{tagvalue|{{Copy From}}|CHILD|notfound=При рождении}}}}| | ||
maxage={{#mreplace:{{tagvalue|{{/raw}}|MAXAGE|notfound={{tagvalue|{{Copy From | maxage={{#mreplace:{{tagvalue|{{/raw}}|MAXAGE|notfound={{tagvalue|{{Copy From}}|MAXAGE|notfound=Бессмертный}}}}|:|-}}| | ||
death={{#if:{{{death|}}}|{{{death}}}|{{#ifexpr:{{#if:{{tag|{{/raw}}|INTELLIGENT}}|1|0}} or {{#if:{{tag|{{/raw}}|CAN_LEARN}}|1|0}} or {{#if:{{tag|{{/raw}}|NOT_BUTCHERABLE}}|1|0}} or {{#ifeq:{{tagvalue|{{/raw}}|APPLY_CREATURE_VARIATION}}|ANIMAL_PERSON|1|0}} or {{#ifeq:{{tagvalue|{{/raw}}|APPLY_CREATURE_VARIATION}}|ANIMAL_PERSON_LEGLESS|1|0}}|nobutcher}}}}| | death={{#if:{{{death|}}}|{{{death}}}|{{#ifexpr:{{#if:{{tag|{{/raw}}|INTELLIGENT}}|1|0}} or {{#if:{{tag|{{/raw}}|CAN_LEARN}}|1|0}} or {{#if:{{tag|{{/raw}}|NOT_BUTCHERABLE}}|1|0}} or {{#ifeq:{{tagvalue|{{/raw}}|APPLY_CREATURE_VARIATION}}|ANIMAL_PERSON|1|0}} or {{#ifeq:{{tagvalue|{{/raw}}|APPLY_CREATURE_VARIATION}}|ANIMAL_PERSON_LEGLESS|1|0}}|nobutcher}}}}| | ||
eggs={{#rreplace:{{tagvalue|{{/raw}}|CLUTCH_SIZE|notfound=}}|:|-}}| | eggs={{#rreplace:{{tagvalue|{{/raw}}|CLUTCH_SIZE|notfound=}}|:|-}}| |
Версия от 18:24, 4 февраля 2019
Шаблон извлекает данные из raw-файла и помещает в Шаблон:CreatureInfo. Помимо этого объединяет шаблоны creature/variation, creature/variation links, Copy From, creature/eggs, bodysize, tame_attrib_proc, grazer_proc, biomelist/aux, attrib_proc.