注意:游戏新版本刚刚发布,本 wiki 内容进度严重滞后,页面上的内容几乎肯定存在遗漏、错误,请谨慎采信。
见 Terraria Wiki:项目/1.4.5 获取 wiki 状态与更新指南
见 Terraria Wiki:项目/1.4.5 获取 wiki 状态与更新指南
Template:GetModifierInfo
跳转到导航
跳转到搜索
This template is used to display the effect of a modifier on a certain statistic. It does not support accessory modifiers. The data is taken from the database, which is based on Terraria's
电脑版 source code.
{{modifierinfo}} is an alias for {{getModifierInfo}}.
Usage
{{ modifierinfo | <modifier name> | id = <modifier ID> | <stat> | raw = y/yes/true (optional) }}
- First unnamed parameter, id
Name or ID of the modifier. Only one out of these two parameters should be used; using $id is faster.
Note that there are two modifiers with duplicate names. The following values are accepted as input for the duplicates:
| Modifier | Accepted values |
|---|---|
| Deadly | Deadly2 |
| Deadly (ranged) | |
| Deadly (ranged weapons) | |
| Legendary | Legendary2 |
| Legendary (Terrarian) |
- stat
Statistic to query. Can be any of the following:
- raw
Suppress formatting of the output and just display the raw value, e.g. for use with {{#expr:}}.
Examples
| Code | Result |
|---|---|
{{modifierinfo|Unreal|damage}} |
+15% |
{{modifierinfo|Broken|kb}} |
−20% |
{{modifierinfo|Legendary|rarity}} |
+2 |
{{modifierinfo|Legendary (Terrarian)|value}} |
+152.15% |
{{modifierinfo|Large|size}} |
+12% |
{{modifierinfo|Large|size|raw=y}} |
1.12 |