跳转到内容

模板:PZ Item Infobox/Weapon:修订间差异

来自僵尸毁灭工程中文维基
BluElephant留言 | 贡献
无编辑摘要
BluElephant留言 | 贡献
无编辑摘要
 
(未显示同一用户的5个中间版本)
第3行: 第3行:


== 数据库建表图纸 ==
== 数据库建表图纸 ==
{{#cargo_declare:
{{#cargo_declare:_table=PZ_Weapons
_table = PZ_Weapons
|Item_ID=String
|Item_ID = String
|MaxDamage=Float
|MaxDamage = Float
|MinDamage=Float
|MinDamage = Float
|CriticalChance=Float
|CriticalChance = Float
|ConditionMax=Integer
|ConditionMax = Integer
|ConditionLowerChanceOneIn=Integer
|ConditionLowerChanceOneIn = Integer
|EnduranceMod=Float
|EnduranceMod = Float
|DoorDamage=Integer
|DoorDamage = Integer
|TreeDamage=Integer
|TreeDamage = Integer
|ExpectedUses=Integer
}}
}}
</noinclude><includeonly>{{#cargo_store:
</noinclude><includeonly>{{#cargo_store:_table=PZ_Weapons
_table = PZ_Weapons
|Item_ID={{{Item_ID|}}}
|Item_ID = {{{Item_ID|}}}
|MaxDamage={{{MaxDamage|}}}
|MaxDamage = {{{MaxDamage|}}}
|MinDamage={{{MinDamage|}}}
|MinDamage = {{{MinDamage|}}}
|CriticalChance={{{CriticalChance|}}}
|CriticalChance = {{{CriticalChance|}}}
|ConditionMax={{{ConditionMax|}}}
|ConditionMax = {{{ConditionMax|}}}
|ConditionLowerChanceOneIn={{{ConditionLowerChanceOneIn|}}}
|ConditionLowerChanceOneIn = {{{ConditionLowerChanceOneIn|}}}
|EnduranceMod={{{EnduranceMod|}}}
|EnduranceMod = {{{EnduranceMod|}}}
|DoorDamage={{{DoorDamage|}}}
|DoorDamage = {{{DoorDamage|}}}
|TreeDamage={{{TreeDamage|}}}
|TreeDamage = {{{TreeDamage|}}}
|ExpectedUses={{#expr: {{{ConditionMax|0}}} * {{{ConditionLowerChanceOneIn|1}}} }}
}}{{#if:{{{MaxDamage|}}}|
}}{{#if:{{{MaxDamage|}}}|
<tr style="border-bottom: 1px solid rgba(128, 128, 128, 0.2);">
<tr style="border-bottom: 1px solid rgba(128, 128, 128, 0.2);">

2026年6月5日 (五) 17:53的最新版本

这是武器专属的数据存储与渲染子模块。

数据库建表图纸

此模板定义表格“PZ_Weapons”。 查看表格.