模板:Penetrate

出自Terraria Wiki
跳至導覽 跳至搜尋
This template is i18n-ready, which means it is easy to localize for different languages. Please see I18n & l10n for templates to learn more.
See Template:Penetrate/l10n for the localization of this template.
Template-info.svg 文檔 以下文檔來自Template:Penetrate/doc。(編輯 | 歷史

Used for displaying the penetrate (pierce) count of a projectile.

Usage

{{ penetrate | auto = <projectile ID> | <penetrate count> | penalty/p = <penalty> (optional) | name = <projectile name> (optional) | article = <custom article> (optional) }}

auto

ID of the projectile. Automatically fills the penetrate count stat and projectile name. Can be omitted or overridden via the first unnamed parameter/$name.

First unnamed parameter

The total number of targets the projectile can hit, which is the same as the projectile's penetrate parameter in the source code. Input -1 for infinite pierce. $auto sets this automatically.

Note that the "pierce count" is "penetrate - 1", e.g. penetrate = 5 means that the projectile can pierce up to 4 targets and dissipates upon hitting the fifth.

penalty or p

The pierce damage penalty of the projectile, with the percentage sign (the value will be formatted via {{percent}}).

name

The name of the projectile. $auto sets this automatically. Defaults to "projectile" if omitted or set to \0 (e.g. to force the default even if $auto is used).

article

Custom article to override the default "The".

Examples

Code Result
{{penetrate|2}} 射彈最多可穿透 1 個目標,總共擊中 2 個目標。
{{penetrate|-1}} 射彈可穿透無限數量的目標。
{{penetrate|5|p=15%}} 射彈最多可穿透 4 個目標,總共擊中 5 個目標。每穿透一個目標,射彈的傷害就會下降 15%。
{{penetrate|5|name=FOO}} FOO最多可穿透 4 個目標,總共擊中 5 個目標。
{{penetrate|-1|p=15%|name=bar}} bar可穿透無限數量的目標。每穿透一個目標,bar的傷害就會下降 15%。
{{penetrate|auto=242}} 高速子彈最多可穿透 2 個目標,總共擊中 3 個目標。
{{penetrate|auto=242|p=15%}} 高速子彈最多可穿透 2 個目標,總共擊中 3 個目標。每穿透一個目標,高速子彈的傷害就會下降 15%。
{{penetrate|auto=242|p=15%|article=This}} 高速子彈最多可穿透 2 個目標,總共擊中 3 個目標。每穿透一個目標,高速子彈的傷害就會下降 15%。
{{penetrate|auto=242|p=15%|name=\0}} 射彈最多可穿透 2 個目標,總共擊中 3 個目標。每穿透一個目標,射彈的傷害就會下降 15%。
{{penetrate}} 射彈最多可穿透 -1 個目標,總共擊中 個目標。