Template:Ammo Infobox: Difference between revisions
From AoP Wiki
Fixed Ammo Infobox? |
Adjusted Ammo Template to use correct ExternalData Function |
||
Line 1: | Line 1: | ||
{{# | {{#for_external_table:| | ||
{{{!}} class="wikitable" style="float:right" | |||
! colspan="1" {{!}} {{#if: {{{Name|}}} | [[{{{Name}}}]] |Ammo}}<br>Tier {{#if: {{{Tier}}} | {{{Tier}}} |Unknown}} | |||
! colspan="1" align="center"{{!}}{{#if: {{{PicInv}}} | https://uralez.de/foaop/planner/{{{PicInv}}} |No Image}} | |||
{{!}}- | |||
{{!}} colspan="2" {{!}} {{#if: {{{Description|}}} | {{{Description}}} | No Description}} | |||
{{!}}- | |||
{{!}} Damage Type {{!}}{{!}} {{#switch: {{{Weapon_DmgType_0}}} | |||
! colspan="1" | |||
! colspan="1" align="center" | |||
| 0 = Uncalled | | 0 = Uncalled | ||
| 1 = Normal | | 1 = Normal | ||
Line 24: | Line 18: | ||
| #default = Error | | #default = Error | ||
}} | }} | ||
{{!}}- | |||
{{!}} Damage Resistance Mod {{!}}{{!}} {{#if: {{{Ammo_DRMod|}}} | {{{Ammo_DRMod}}} | 0}}% | |||
{{!}}- | |||
{{!}} Damage Threshold Mod {{!}}{{!}} {{#if: {{{Ammo_DTMod|}}} | {{{Ammo_DTMod}}} | 0}}% | |||
{{!}}- {{#if: {{{Ammo_Radius|}}}||style="display: none;"}} | |||
{{!}} Radius {{!}}{{!}} {{{Ammo_Radius}}} Hex | |||
{{!}}- {{#if: {{{Weapon_BleedStr|}}}||style="display: none;"}} | |||
{{!}} Bleed Strength {{!}}{{!}} {{{Weapon_BleedStr}}}% | |||
{{!}}- {{#if: {{{Weapon_DmgType_0|}}}||style="display: none;"}} | |||
{{!}} {{#switch: {{{Weapon_DmgType_0}}} | |||
| 0 = Uncalled | | 0 = Uncalled | ||
| 1 = Normal | | 1 = Normal | ||
Line 44: | Line 38: | ||
| 8 = Heal | | 8 = Heal | ||
| #default = Error | | #default = Error | ||
}} Damage | }} Damage {{!}}{{!}} {{{Weapon_DmgMin_0|}}} % | ||
{{!}}- {{#if: {{{Weapon_DmgType_1|}}}||style="display: none;"}} | |||
{{!}} {{#switch: {{{Weapon_DmgType_1}}} | |||
| 0 = Uncalled | | 0 = Uncalled | ||
| 1 = Normal | | 1 = Normal | ||
Line 57: | Line 51: | ||
| 8 = Heal | | 8 = Heal | ||
| #default = Error | | #default = Error | ||
}} Damage | }} Damage {{!}}{{!}} {{{Weapon_DmgMin_1|}}} % | ||
{{!}}- {{#if: {{{Ammo_SubShots|}}}||style="display: none;"}} | |||
{{!}} Subshots {{!}}{{!}} {{{Ammo_SubShots}}}x | |||
{{!}}- {{#if: {{{Weapon_Spread_0|}}}||style="display: none;"}} | |||
{{!}} Ammo Spread {{!}}{{!}} {{{Weapon_Spread_0}}} | |||
{{!}}- | |||
{{!}} ID: {{!}}{{!}} {{#if: {{{ProtoId}}} | {{{ProtoId}}} | No ID}} | |||
{{!}}- | |||
{{!}} Weight: {{!}}{{!}} {{#if: {{{Weight}}} | {{{Weight}}} | 0}}g | |||
|} | {{!}}} | ||
|source=planner | |||
|file name=ammo.json | |||
|format = json with jsonpath | |||
|data = | |||
Name=$[?(@.ProtoId == {{{id|14017}}})].Name, | |||
ProtoId=$[?(@.ProtoId == {{{id|14017}}})].ProtoId, | |||
Weight=$[?(@.ProtoId == {{{id|14017}}})].Weight, | |||
PicInv=$[?(@.ProtoId == {{{id|14017}}})].PicInv, | |||
Ammo_Caliber=$[?(@.ProtoId == {{{id|14017}}})].Ammo_Caliber, | |||
Ammo_Caliber_EXT=$[?(@.ProtoId == {{{id|14017}}})].Ammo_Caliber_EXT, | |||
Ammo_DmgMult=$[?(@.ProtoId == {{{id|14017}}})].Ammo_DmgMult, | |||
Ammo_DmgDiv=$[?(@.ProtoId == {{{id|14017}}})].Ammo_DmgDiv, | |||
Tier=$[?(@.ProtoId == {{{id|14017}}})].Tier, | |||
Poison=$[?(@.ProtoId == {{{id|14017}}})].Poison, | |||
Ammo_AcMod=$[?(@.ProtoId == {{{id|14017}}})].Ammo_AcMod, | |||
Ammo_DRMod=$[?(@.ProtoId == {{{id|14017}}})].Ammo_DRMod, | |||
Ammo_DTMod=$[?(@.ProtoId == {{{id|14017}}})].Ammo_DTMod, | |||
Ammo_SubShots=$[?(@.ProtoId == {{{id|14017}}})].Ammo_SubShots, | |||
Weapon_DmgType_0=$[?(@.ProtoId == {{{id|14017}}})].Weapon_DmgType_0, | |||
Weapon_DmgMin_0=$[?(@.ProtoId == {{{id|14017}}})].Weapon_DmgMin_0, | |||
NoCrit=$[?(@.ProtoId == {{{id|14017}}})].NoCrit, | |||
Weapon_DmgType_1=$[?(@.ProtoId == {{{id|14017}}})].Weapon_DmgType_1, | |||
Weapon_DmgMin_1=$[?(@.ProtoId == {{{id|14017}}})].Weapon_DmgMin_1, | |||
Weapon_BleedStr=$[?(@.ProtoId == {{{id|14017}}})].Weapon_BleedStr, | |||
Ammo_Radius=$[?(@.ProtoId == {{{id|14017}}})].Ammo_Radius, | |||
Special=$[?(@.ProtoId == {{{id|14017}}})].Special, | |||
Fuse=$[?(@.ProtoId == {{{id|14017}}})].Fuse, | |||
Weapon_Extra_0=$[?(@.ProtoId == {{{id|14017}}})].Weapon_Extra_0, | |||
Weapon_Extra_1=$[?(@.ProtoId == {{{id|14017}}})].Weapon_Extra_1, | |||
Weapon_Spread_0=$[?(@.ProtoId == {{{id|14017}}})].Weapon_Spread_0 | |||
}} |
Revision as of 13:02, 24 February 2025
Paper Cartridges Tier 1 |
![]() |
---|---|
No Description | |
Damage Type | Normal |
Damage Resistance Mod | 20% |
Damage Threshold Mod | 0% |
Bleed Strength | 150% |
Normal Damage | 250 % |
ID: | 14017 |
Weight: | 35g |