Template:Item: Difference between revisions
Jump to navigation
Jump to search
(Aliases are stored now by calling the Aliases template on each page) |
(store throwability in cargo) |
||
(97 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{#cargo_declare:_table=ItemsTable | {{#cargo_declare:_table=ItemsTable | ||
|BasePV=Integer|MaxPV=Integer | |||
|Damage=String|UnpoweredDamage=String| | |Vibro=Boolean | ||
HP=Integer|AV=Integer|DV=Integer|MA=Integer|ToHit=Integer | |PoweredPV=Boolean | ||
|Damage=String|UnpoweredDamage=String|PrimaryDamageElement=String | |||
|HP=Integer|AV=Integer|DV=Integer|MA=Integer|ToHit=Integer | |||
| | |Skill=String | ||
|ObjectID=String | |||
|AgilityBonus=Integer|StrengthBonus=Integer|WillpowerBonus=Integer | |||
|ToughnessBonus=Integer|IntelligenceBonus=Integer|EgoBonus=Integer | |||
ObjectID=String | |Description=Wikitext | ||
|WornOn=Page|UsesSlots=List (,) of Page | |||
|Healing=String | |||
AgilityBonus=Integer|StrengthBonus=Integer|WillpowerBonus=Integer|ToughnessBonus=Integer|IntelligenceBonus=Integer|EgoBonus=Integer | |HarvestedInto=String|PreservedInto=Page|PreservedQuantity=Integer | ||
|ElementalDamage=String | |||
Description=Wikitext| | |ElementalType=String | ||
WornOn=Page|UsesSlots=List (,) of Page| | |JoinKey=String}} | ||
Healing=String| | |||
HarvestedInto= | |||
ElementalDamage=String| | |||
ElementalType=String| | |||
{{#cargo_attach:_table = GeneralData}} | {{#cargo_attach:_table = GeneralData}} | ||
Line 28: | Line 22: | ||
{{doc}} | {{doc}} | ||
</noinclude><includeonly>{{#cargo_store:_table=ItemsTable | </noinclude><includeonly>{{#cargo_store:_table=ItemsTable | ||
|BasePV={{{pv|4}}} | |||
MaxPV={{{maxpv|{{{pv|4}}}}}}| | |MaxPV={{{maxpv|{{{pv|4}}}}}} | ||
Vibro={{{vibro|no}}}|PoweredPV={{{pvpowered|no}}}|Damage={{{damage|}}}|UnpoweredDamage={{{unpowereddamage|}}}| | |Vibro={{{vibro|no}}}|PoweredPV={{{pvpowered|no}}} | ||
|Damage={{{damage|}}}|UnpoweredDamage={{{unpowereddamage|}}}|PrimaryDamageElement={{{primarydamageelement|}}} | |||
|HP={{{hp|}}}|AV={{{av|}}} | |||
|DV={{{dv|}}}|MA={{{ma|}}} | |||
|ToHit={{{tohit|}}} | |||
|Skill={{{weaponskill|no skill}}}| | |||
|ObjectID={{{id|}}} | |||
|AgilityBonus={{{agility|}}}|StrengthBonus={{{strength|}}} | |||
|WillpowerBonus={{{willpower|}}}|ToughnessBonus={{{toughness|}}} | |||
ObjectID={{{id|}}} | |IntelligenceBonus={{{intelligence|}}}|EgoBonus={{{ego|}}} | ||
|Description={{qud text|{{{desc|}}}}} | |||
AgilityBonus={{{agility|}}}|StrengthBonus={{{strength|}}}|WillpowerBonus={{{willpower|}}}|ToughnessBonus={{{toughness|}}}|IntelligenceBonus={{{intelligence|}}}|EgoBonus={{{ego|}}} | |WornOn={{{wornon|}}} | ||
|UsesSlots={{{usesslots|{{{wornon|}}}}}} | |||
Description={{qud text|{{{desc|}}}}}| | |Healing={{{healing|}}} | ||
WornOn={{{wornon|}}}| | |HarvestedInto={{{harvestedinto|}}} | ||
UsesSlots={{{usesslots|{{{wornon|}}}}}}| | |PreservedInto={{{preservedinto|}}} | ||
Healing={{{healing|}}}| | |PreservedQuantity={{{preservedquantity|}}} | ||
HarvestedInto={{{harvestedinto|}}}| | |ElementalDamage={{{elementaldamage|}}} | ||
PreservedInto={{{preservedinto|}}}| | |ElementalType={{{elementaltype|}}} | ||
PreservedQuantity={{{preservedquantity|}}}| | |JoinKey={{FULLPAGENAME}} }}<!-- | ||
ElementalDamage={{{elementaldamage|}}}| | |||
ElementalType={{{elementaltype|}}}| | |||
General Data Storage | General Data Storage | ||
-->{{#cargo_store:_table=GeneralData| | -->{{#cargo_store:_table=GeneralData | ||
ObjectID={{{id|}}}| | |ObjectID={{{id|}}} | ||
DisplayName={{{title|{{PAGENAME}}}}}| | |DisplayName={{{title|{{PAGENAME}}}}} | ||
Image={{#ifeq: {{{image|}}} | none ||{{{image|}}}}}| | |Image={{#ifeq: {{{image|}}} | none ||{{{image|}}}}} | ||
PlainName={{StripFormatting|1={{{title|{{#titleparts:{{PAGENAME}}}} }}} }}| | |PlainName={{StripFormatting|1={{{title|{{#titleparts:{{PAGENAME}}}} }}} }} | ||
Commerce={{{commerce|}}}| | |Commerce={{{commerce|}}} | ||
DisplayChar={{Qud char|{{{colorstr|&y}}}|{{{renderstr|.}}}}}| | |DisplayChar={{Qud char|{{{colorstr|&y}}}|{{{renderstr|.}}}}} | ||
Weight={{{weight|}}}| | |TileColors={{{tilecolors|}}} | ||
Tier={{{tier|}}}| | |Weight={{{weight|}}} | ||
Categories={{{categories|}}}| | |Tier={{#if: {{{tier|}}} | {{{tier}}} | {{#if: {{{bits|}}} | {{#sub:{{{bits}}}| -1 }} }} }} | ||
ParentObject={{{inheritingfrom|}}} | |Categories={{{categories|}}} | ||
Aliases={{#var:aliases|}}<!-- | |ParentObject={{{inheritingfrom|}}} | ||
|Aliases={{#var:aliases|}} | |||
|IDAliases={{#var:idaliases|}} | |||
|JoinKey={{FULLPAGENAME}} | |||
|Description={{qud text|{{{desc|}}}}} }}<!-- | |||
Artifact Data Cargo Storage: | |||
-->{{# | -->{{#if: {{{complexity|}}}{{{bits|}}}{{{tinkertier|}}}{{{canbuild|}}}{{{candisassemble|}}}{{{chargeused|}}}{{{chargeperdram|}}}{{{maxcharge|}}}{{{mods|}}}{{{capacitorcharge|}}}{{{capacitormax|}}}{{{capacitorrate|}}}{{{chargeconsumebroadcast|}}}{{{chargeconsumeelectrical|}}}{{{chargeconsumehydraulic|}}}{{{chargeconsumemechanical|}}}{{{chargeproducebroadcast|}}}{{{chargeproduceelectric|}}}{{{chargeproducehydraulic|}}}{{{chargeproducemechanical|}}}{{{chargeproducesolar|}}}{{{unidentifiedimage|}}}{{{unidentifiedname|}}}{{{unidentifiedaltname|}}}|{{Artifact data store|complexity={{{complexity|}}}|bits={{{bits|}}}|tinkertier={{{tinkertier|}}}|canbuild={{{canbuild|}}}|candisassemble={{{candisassemble|}}}|chargeused={{{chargeused|}}}|chargeperdram={{{chargeperdram|}}}|maxcharge={{{maxcharge|}}}|mods={{{mods|}}}|modcount={{{modcount|}}}|capacitorcharge={{{capacitorcharge|}}}|capacitormax={{{capacitormax|}}}|capacitorrate={{{capacitorrate|}}}|chargeconsumebroadcast={{{chargeconsumebroadcast|}}}|chargeconsumeelectrical={{{chargeconsumeelectrical|}}}|chargeconsumehydraulic={{{chargeconsumehydraulic|}}}|chargeconsumemechanical={{{chargeconsumemechanical|}}}|chargeproducebroadcast={{{chargeproducebroadcast|}}}|chargeproduceelectric={{{chargeproduceelectric|}}}|chargeproducehydraulic={{{chargeproducehydraulic|}}}|chargeproducemechanical={{{chargeproducemechanical|}}}|chargeproducesolar={{{chargeproducesolar|}}}|unidentifiedimage={{{unidentifiedimage|}}}|unidentifiedname={{{unidentifiedname|}}}|unidentifiedaltname={{{unidentifiedaltname|}}}|id={{{id|}}}}}}}<!-- | ||
Infobox Start | Physical Properties Cargo Storage: | ||
-->{{#if: {{{acid|}}}{{{electric|}}}{{{heat|}}}{{{cold|}}}{{{lightradius|}}}{{{isthrown|}}}{{{seeping|}}}{{{inhaled|}}}{{{maxvol|}}}{{{liquidgentype|}}}{{{liquidgenrate|}}}|{{Physical_properties_data_store|acid={{{acid|}}}|electric={{{electric|}}}|heat={{{heat|}}}|cold={{{cold|}}}|lightradius={{{lightradius|}}}|throwable={{{isthrown|}}}|seeping={{{seeping|}}}|inhaled={{{inhaled|}}}|volume={{{maxvol|}}}|liquidgentype={{{liquidgentype|}}}|liquidgenrate={{{liquidgenrate|}}}}}}}<!-- | |||
Missile Weapon Data Cargo Storage: | |||
-->{{#if: {{{ammo|}}}{{{accuracy|}}}{{{shots|}}}{{{ammoperaction|}}}{{{maxammo|}}}{{{ammodamagetypes|}}}{{{penetratingammo|}}}|{{Missile_weapon_data_store|ammo={{{ammo|}}}|accuracy={{{accuracy|}}}|shots={{{shots|}}}|ammoperaction={{{ammoperaction|}}}|maxammo={{{maxammo|}}}|ammodamagetypes={{{ammodamagetypes|}}}|penetratingammo={{{penetratingammo|}}}}}}}<!-- | |||
Modability Data Cargo Storage: | |||
-->{{#if: {{{supportedmods|}}}|{{Modability_data_store|id={{{id}}}|supportedmods={{{supportedmods}}}}}}}<!-- | |||
Furniture Data Cargo Storage: | |||
-->{{#if: {{{chairlevel|}}}|{{Furniture_data_store|chairlevel={{{chairlevel|}}}}}}}<!-- | |||
Variable definition for convenience: | |||
-->{{#vardefine:name|{{{title|{{#titleparts:{{PAGENAME}}}} }}}}}{{#vardefine:id|{{{id|}}}}}<!--- | |||
Infobox Start: | |||
-->{{#invoke:infobox|infobox | -->{{#invoke:infobox|infobox | ||
| class = qud-item-infobox | | class = qud-item-infobox | ||
| imagearea = {{#switch: {{{image|none}}} | none = {{#if: {{{renderstr|}}} | <div class{{=}}"qud-displaychar-standin-for-image">{{Qud char|{{{colorstr|&y}}}|{{{renderstr}}}}}</div> | }} | #default = {{#ifexist: File:{{#switch: {{{image|none}}} | none = Caves_of_qud_logo.png | #default = {{{image}}} }} || {{#if: {{{renderstr|}}} | <div class{{=}}"qud-displaychar-standin-for-image">{{Qud char|{{{colorstr|&y}}}|{{{renderstr}}}}}</div> | }} }} }} | | imagearea = | ||
{{#if: {{{overrideimages|}}} | {{{overrideimages}}} | | |||
{{#switch: {{{image|none}}} | |||
| none = {{#if: {{{renderstr|}}} | <div class{{=}}"qud-displaychar-standin-for-image">{{Qud char|{{{colorstr|&y}}}|{{{renderstr}}}}}</div> | }} | |||
| #default = {{#ifexist: File:{{#switch: {{{image|none}}} | none = Caves_of_qud_logo.png | #default = {{{image}}} }} |{{#if:{{{gif|}}}|{{infobox image and gif|{{{image}}}|{{{gif}}}|{{PAGENAME}}}}}}| {{#if: {{{renderstr|}}} | <div class{{=}}"qud-displaychar-standin-for-image">{{Qud char|{{{colorstr|&y}}}|{{{renderstr}}}}}</div> | }} }} | |||
}} | |||
}} | |||
| rows = | | rows = | ||
{{#if: {{{pv|}}}{{{maxpv|}}}{{{vibro|}}}{{{damage|}}}{{{av|}}}{{{dv|}}}{{#ifeq:{{{featureweightinfo|}}}|no||{{{weight|}}}}}{{{commerce|}}} | | |||
{{infobox row|field= | |||
{{#if: {{{pv|}}}{{{vibro|}}}{{{ | {{Item/CoreStats | ||
| pv = {{{pv|}}} | |||
| maxpv = {{{maxpv|}}} | |||
| vibro = {{{vibro|}}} | |||
| penetratingammo = {{{penetratingammo|}}} | |||
| missile = {{{ismissile|no}}} | |||
| thrown = {{{isthrown|no}}} | |||
| damage = {{{damage|}}} | |||
| damageelement = {{{primarydamageelement|}}} | |||
| av = {{{av|}}} | |||
| dv = {{{dv|}}} | |||
| weight = {{#ifeq:{{{featureweightinfo|}}}|no||{{{weight|}}}}} | |||
| value = {{{commerce|}}} | |||
| currency = {{{iscurrency|no}}} | |||
}} | |||
}} | |||
}} | |||
<!--does the object have no penetration when unpowered?--> | <!--does the object have no penetration when unpowered?--> | ||
{{#ifeq: {{{pvpowered|}}}|yes| {{infobox row|PV (Unpowered)|{{PV}}4{{Color | K |/4}} }} }} | {{#ifeq: {{{pvpowered|}}}|yes| {{infobox row|PV (Unpowered)|{{#if:{{{isthrown|}}}|{{PV}}5|{{PV}}4{{Color | K |/4}} }} }} }} | ||
{{#if: {{{ | {{#if: {{{elementaldamage|}}} | {{infobox row|Elemental Damage|{{#ifeq:{{{elementaltype|}}}|Electric|{{heart|W}}|{{heart}}}}{{dice tooltip|{{{elementaldamage}}}}} {{{elementaltype}}} }} }} | ||
{{# | |||
{{#if: {{{unpowereddamage|}}}|{{infobox row|Damage(Unpowered)|{{heart}}{{{unpowereddamage|}}} }} }} | {{#if: {{{unpowereddamage|}}}|{{infobox row|Damage(Unpowered)|{{heart}}{{{unpowereddamage|}}} }} }} | ||
{{#if: {{{hp|}}} | {{infobox row|HP|{{{hp}}} }} }} | {{#if: {{{hp|}}} | {{infobox row|HP|{{{hp}}} }} }} | ||
<!-- a number to hit--> | <!-- a number to hit--> | ||
{{#if: {{{tohit|}}} | {{infobox row|To Hit|{{{tohit}}} }} }} | {{#if: {{{tohit|}}} | {{infobox row|To Hit|{{{tohit}}} }} }} | ||
<!-- Guns!--> | <!-- Guns!--> | ||
<!--the ammo it needs. lead slugs, arrows, blood, etc. --> | <!--the ammo it needs. lead slugs, arrows, blood, etc. --> | ||
{{#if: {{{ammo|}}} | {{infobox row|Ammo Type|{{consecutive links|{{{ammo}}}}} }} }} | {{#if: {{{ammodamagetypes|}}} | {{infobox row|[[Damage Type]]|{{{ammodamagetypes}}} }} }} | ||
{{#if: {{{accuracy|}}}| {{infobox row|Accuracy|{{#switch: {{{accuracy|0}}}|0=Very High|1|2|3|4=High|5|6|7|8|9=Medium|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24=Low|Very Low}} ({{{accuracy}}}) }} }} | {{#if: {{{ammo|}}} | {{infobox row|Ammo Type|{{#ifeq:{{{ammo}}}|energy|[[power|energy]]|{{consecutive links|{{{ammo}}}}}}}}} }} | ||
{{#if: {{{accuracy|}}}| {{infobox row|Accuracy|{{#switch: {{{accuracy|0}}}|0=Very High|1|2|3|4=High|5|6|7|8|9=Medium|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24=Low|Very Low}} ({{{accuracy}}}) | class=navigation-not-searchable }} }} | |||
{{#if: {{{shots|}}} | {{infobox row|Shots per Action|{{{shots}}} }} }} | {{#if: {{{shots|}}} | {{infobox row|Shots per Action|{{{shots}}} }} }} | ||
{{#if: {{{ammoperaction|}}}| {{infobox row|Ammo per Action|{{{ammoperaction}}} }} }} | |||
{{#if: {{{maxammo|}}} | {{infobox row|Max Ammo|{{{maxammo}}} }} }} | {{#if: {{{maxammo|}}} | {{infobox row|Max Ammo|{{{maxammo}}} }} }} | ||
<!--liquid containers--> | <!--liquid containers--> | ||
{{#if: {{{maxvol|}}} | {{infobox row|Max Volume|{{{maxvol}}} drams }} }} | {{#if: {{{maxvol|}}} | {{infobox row|Max Volume|{{{maxvol}}} drams }} }} | ||
{{#if: {{{ | {{#if: {{{liquidgenrate|}}}| {{infobox row|Liquid Generation|1 dram of [[{{{liquidgentype}}}]] every {{#if:{{#pos:{{{liquidgenrate}}}|-}}|{{dice tooltip|{{{liquidgenrate}}}}}|{{{liquidgenrate}}}}} turns}} }} | ||
<!--gases--> | |||
{{#if: {{{inhaled|}}} | {{infobox row|Inhaled{{Tooltip|Whether this gas is<br>[[respiration|respiration-based]]||nosearch}}|{{{inhaled}}} }} }} | |||
{{#if: {{{seeping|}}} | {{infobox row|Seeping{{Tooltip|Whether this gas can<br>seep through walls||nosearch}}|{{{seeping}}} }} }} | |||
<!--Generic item stuff--> | <!--Generic item stuff--> | ||
{{#if: {{{maxcharge|}}}|{{infobox row|Max Charge|{{{maxcharge}}} }} }} | {{#if: {{{maxcharge|}}}|{{infobox row|Max Charge|{{{maxcharge}}} }} }} | ||
{{#if: {{{chargeused|}}} | {{#if: {{{chargeused|}}} | ||
| {{infobox row|Charge per Use|{{{chargeused}}} }} | | {{infobox row|Charge per Use|{{#if: {{{energycellrequired|}}} | {{cell performance for charge|{{{chargeused}}}}} | {{{chargeused}}} }} }} | ||
{{#if: {{{chargefunction|}}} | {{infobox row|Charge Used For|{{{chargefunction}}} }} }} | {{#if: {{{chargefunction|}}} | {{infobox row|Charge Used For|{{{chargefunction}}} }} }} | ||
}} | }} | ||
{{#if: {{{imprintchargecost|}}} | {{infobox row|Imprint Cost{{Tooltip|Charge cost to program a<br>location into this recoiler||nosearch}}|{{{imprintchargecost}}} }} }} | |||
{{#if: {{{chargeperdram|}}}| {{infobox row|Charge per Dram|{{{chargeperdram}}} }} }} | {{#if: {{{chargeperdram|}}}| {{infobox row|Charge per Dram|{{{chargeperdram}}} }} }} | ||
<!--tinkering--> | <!--tinkering--> | ||
{{#if: {{{complexity|}}}| {{infobox row|Complexity|{{{complexity}}} }} }} | {{#if: {{{complexity|}}}| {{infobox row|Complexity|{{{complexity}}} }} }} | ||
{{#if: {{{tier|}}} | {{infobox row|Tier | {{#if: {{{tier|}}} | {{#vardefine:TIER|{{{tier}}}}} | | ||
{{#if: {{{bits|}}} | {{#vardefine:TIER|{{#sub:{{{bits}}}| -1 }} }} }} }}<!-- | |||
| {{ | Determine tier from bits if not specified. Then, check for final value | ||
-->{{#varexists:TIER | {{infobox row|Tier|{{#if:{{{modcount|}}} | {{#expr:{{#var:TIER}} + {{{modcount}}} }} {{Color|K|({{#var_final:TIER}}+{{{modcount}}}) }} | |||
| {{#var_final:TIER}} }} }} | |||
}} | |||
{{#if: {{{bits|}}} | {{#if:{{{canbuild|}}}{{{candisassemble|}}}| {{infobox row|[[Bits]]|{{Bits|{{{bits}}}}} }} }} }} | {{#if: {{{bits|}}} | {{#if:{{{canbuild|}}}{{{candisassemble|}}}| {{infobox row|[[Bits]]|{{Bits|{{{bits}}}}} }} }} }} | ||
{{#if: {{{candisassemble|}}}| {{infobox row|Can Disassemble|{{{candisassemble}}} }} }} | {{#if: {{{candisassemble|}}}| {{infobox row|Can Disassemble|{{{candisassemble}}} }} }} | ||
{{#if: {{{canbuild|}}}{{{candisassemble|}}}| {{infobox row|Can Build|{{{canbuild|no}}} }} }} | {{#if: {{{canbuild|}}}{{{candisassemble|}}}| {{infobox row|Can Build|{{{canbuild|no}}} }} }} | ||
{{#ifeq: {{{canbuild|}}} | yes | {{infobox row|Tinker Skill|{{Tinker check|{{{ | {{#ifeq: {{{canbuild|}}} | yes | {{infobox row|Tinker Skill|[[{{Tinker check| {{#sub:{{{bits|0}}}| -1 }} }}]] | class=searchaux }} }} | ||
<!--What skill tree it uses--> | <!--What skill tree it uses--> | ||
{{#if: {{{weaponskill|}}} | {{infobox row|Skill Used|{{consecutive links |{{{weaponskill}}} }} }} }} | {{#if: {{{weaponskill|}}} | {{infobox row|Skill Used|{{consecutive links |{{{weaponskill}}} }} | class=searchaux }} }} | ||
{{#if: {{{reputationbonus|}}}|{{Infobox row|Reputation Bonus|{{{reputationbonus}}} }} }} | {{#if: {{{reputationbonus|}}}| {{Infobox row|Reputation Bonus|{{{reputationbonus}}} }} | ||
[[Category:Reputation-altering items]] }} | |||
<!-- Potential mods --> | |||
{{#if: {{{supportedmods|}}}| {{infobox row|Potential<br>Mods{{Tooltip|Mods this item can support<br>(subject to additional logic & rules)||nosearch}}|{{consecutive templates|{{{supportedmods}}}|,|, |||mod type to category link}} }} }} | |||
<!--Renderstring, with the ColorString appended before it--> | <!--Renderstring, with the ColorString appended before it--> | ||
{{#if: {{{renderstr|}}}| {{infobox row|Character|{{Qud char|{{{colorstr|&y}}}|{{{renderstr|}}}}} }} }} | {{#if: {{{renderstr|}}}| {{infobox row|Character|{{Qud char|{{{colorstr|&y}}}|{{{renderstr|}}}}} }} }} | ||
<!--This is the name of the object in ObjectBlueprints.xml--> | <!--This is the name of the object in ObjectBlueprints.xml--> | ||
{{#if: {{{id|}}} | {{infobox row|ID{{Tooltip|Use this ID to [[Wishes|Wish]] for the item}}|{{{id}}} }} }} | {{#if: {{{id|}}} | {{infobox row|ID{{Tooltip|Use this ID to [[Wishes|Wish]] for the item||nosearch}}|{{{id}}} }} }} | ||
<!--This is more specific stuff--> | <!--This is more specific stuff--> | ||
{{#if: {{{bookid|}}} | {{infobox row|Book ID|{{{bookid}}} }} }} | {{#if: {{{bookid|}}} | {{infobox row|Book ID|{{{bookid}}} }} }} | ||
{{#if: {{{lightradius|}}}| {{infobox row|Light Radius|{{{lightradius}}} }} }} | {{#if: {{{chairlevel|}}} | {{infobox row|Chair Level{{Tooltip|Chair level affects the power<br>of the [[sitting]] effect||nosearch}}|{{{chairlevel}}} }} }} | ||
{{#if: {{{lightradius|}}}| {{infobox row|Light Radius{{Tooltip|This object acts as<br>a [[light source]]||nosearch}}|{{{lightradius}}} }} }} | |||
{{#if: {{{healing|}}} | {{infobox row|Healing|{{{healing}}} }} }} | {{#if: {{{healing|}}} | {{infobox row|Healing|{{{healing}}} }} }} | ||
{{#if: {{{harvestedinto|}}}| {{infobox row|Harvested into|{{favilink|{{{harvestedinto}}} }} }} }} | {{#if: {{{harvestedinto|}}}| {{infobox row|Harvested into|{{favilink id|{{{harvestedinto}}} }} }} }} | ||
{{#if: {{{preservedinto|}}}| {{infobox row|Preserved into|{{favilink|{{{preservedinto}}} }} x{{{preservedquantity|1}}} }} }} | {{#if: {{{preservedinto|}}}| {{infobox row|Preserved into|{{favilink id|{{{preservedinto}}} }} x{{{preservedquantity|1}}} }} }} | ||
{{#ifeq: {{#vardefineecho:Infobox_ButcheredFrom | |||
|{{#invoke:CargoQuery| main | |||
| table=CorpseTables | |||
| fields=MainObjectID=id, Weight=weight, Chance=chance | |||
| where=ObjectID="{{{id|}}}" | |||
| template=Drop rate query | |||
| default=None | |||
| delimiter=</br>}}}}| None || {{infobox row|Butchered from|{{#var:Infobox_ButcheredFrom}} }} }} | |||
<!--equipment--> | <!--equipment--> | ||
{{#if: {{{wornon|}}} | {{infobox row|Worn On|{{{wornon}}} }} }} | {{#if: {{{wornon|}}} | {{infobox row|Worn On|{{{wornon}}} }} }} | ||
Line 144: | Line 193: | ||
{{#if: {{{strength|}}}{{{agility|}}}{{{toughness|}}}{{{intelligence|}}}{{{willpower|}}}{{{ego|}}} | | {{#if: {{{strength|}}}{{{agility|}}}{{{toughness|}}}{{{intelligence|}}}{{{willpower|}}}{{{ego|}}} | | ||
{{infobox row|Attributes|{{#if: {{{strength|}}} | <p style="color:#FFFFFF"> {{{strength}}} Strength</p>}}{{#if: {{{agility|}}} | <p style="color:#CFC041"> {{{agility}}} Agility</p>}}{{#if: {{{toughness|}}} | <p style="color:#D74200"> {{{toughness}}} Toughness</p>}}{{#if: {{{intelligence|}}} | <p style="color:rgb(51,102,255)"> {{{intelligence}}} Intelligence</p>}}{{#if: {{{willpower|}}} | <p style="color:#00C420"> {{{willpower}}} Willpower</p>}}{{#if: {{{ego|}}} | <p style="color:#DA5BD6"> {{{ego}}} Ego</p>}} }} }} | {{infobox row|Attributes|{{#if: {{{strength|}}} | <p style="color:#FFFFFF"> {{{strength}}} Strength</p>}}{{#if: {{{agility|}}} | <p style="color:#CFC041"> {{{agility}}} Agility</p>}}{{#if: {{{toughness|}}} | <p style="color:#D74200"> {{{toughness}}} Toughness</p>}}{{#if: {{{intelligence|}}} | <p style="color:rgb(51,102,255)"> {{{intelligence}}} Intelligence</p>}}{{#if: {{{willpower|}}} | <p style="color:#00C420"> {{{willpower}}} Willpower</p>}}{{#if: {{{ego|}}} | <p style="color:#DA5BD6"> {{{ego}}} Ego</p>}} }} }} | ||
<!-- MA --> | |||
{{#if: {{{ma|}}} | {{infobox row|[[MA]] Bonus|+{{{ma}}} }} }} | |||
<!--Makes the resistances box show up if *any* of the resistances are filled out--> | <!--Makes the resistances box show up if *any* of the resistances are filled out--> | ||
{{#if: {{{acid|}}}{{{electric|}}}{{{cold|}}}{{{heat|}}}{{{poison|}}} | | {{#if: {{{acid|}}}{{{electric|}}}{{{cold|}}}{{{heat|}}}{{{poison|}}} | | ||
{{infobox row|Resistance| | {{infobox row|Resistance| | ||
{{#if: {{{acid|}}} | <p style="color:#00C420"> {{{acid}}} Acid</p>}}{{#if: {{{electric|}}} | <p style="color:#CFC041"> {{{electric}}} | {{#if: {{{acid|}}} | <p style="color:#00C420"> {{{acid}}} Acid</p>}}{{#if: {{{electric|}}} | <p style="color:#CFC041"> {{{electric|}}} Electrical</p>}}{{#if: {{{cold|}}} | <p style="color:#0096FF"> {{{cold}}} Cold</p>}}{{#if: {{{heat|}}} | <p style="color:#D74200"> {{{heat}}} Heat</p>}} {{#if:{{{poison|}}}|<p style="color:#009403"> {{{poison}}} Poison</p>}} }} }} | ||
{{#if: {{{mods|}}}| {{infobox row|Modifications|{{consecutive links|{{{mods|}}}|</br>|</br>}} }} }} | {{#if: {{{mods|}}}| {{infobox row|Modifications|{{consecutive links|{{{mods|}}}|</br>|</br>}} }} }} | ||
{{#if: {{{extra|}}}|{{infobox row||Extra Info:</br>{{{extra}}} }} }} | {{#if: {{{extra|}}}|{{infobox row||Extra Info:</br>{{{extra}}} }} }} | ||
}} | }} | ||
{{#if: {{{desc|}}} | {{Qud look |text={{{desc}}}|title={{{title|{{PAGENAME}} }}} }} }} | {{#if: {{{desc|}}} | ||
|{{Qud look | |||
|text={{{desc}}} | |||
|title={{#ifeq: {{{categories|}}}|Cybernetics | |||
|{{Qud text|&y[&WImplant&y] - &Y{{{title|{{PAGENAME}} }}} }} | |||
|{{#ifeq: {{{id|}}}|MasterworkCarbine | |||
|{{{title|{{PAGENAME}} }}}<!--Dont append mods to Sparbine, since they're already in its displayname--> | |||
|{{#invoke:ModDisplay|main|{{{mods|}}}}}{{{title|{{PAGENAME}} }}} | |||
}} | |||
}} | |||
}} | |||
}} | |||
{{#if: {{{categories|}}} | [[Category:{{{categories}}}]] }} | {{#if: {{{categories|}}} | [[Category:{{{categories}}}]] }} | ||
</includeonly> | </includeonly> |
Latest revision as of 22:41, 18 January 2024
This template defines the table "ItemsTable". View table.
This template adds rows to the table "GeneralData", which is declared by the template General data table. View table.
Documentation
[purge]
Parameter | Explanation | Data type |
---|---|---|
title | The display name of the item. | {{Qud text|(title)}} |
image | The image. If the item has no associate sprite, set equal to none. | item name.png/none |
pv | The base PV, which is by default 4 if not set. Optional. | int |
maxpv | The max strength bonus + base pv. | int |
vibro | Replaces the damage number with the armor match symbol if true. | yes/no |
pvpowered | If yes, adds a row that shows the unpowered pv (4) | yes/no |
damage | damage | dice value |
unpowereddamge | damage when unpowered | dice value |
hp | hitpoints of creature | int |
av | Base armor value | int |
dv | The base dodge value | int |
ma | The mental armor value, if it exists. | int |
tohit | The bonus or penalty to hit | (+/-)int |
ammodamagetypes | the type(s) of damage caused by this weapon | string list (delimited by or ,) |
ammo | what type of ammo is used. | string |
accuracy | How accurate the gun is. | int |
shots | How many shots are fired in one round | int |
maxammo | How much ammo a gun can have loaded at once. | int |
maxvol | the maximum liquid volume | int |
liquidgenrate | for liquid generators. how many turns it takes for 1 dram to generate. (can be a number or a range like 20-40) | string |
liquidgentype | The type of liquid generated. | string |
inhaled | "yes" if a gas is respiration-based, "no" if it isn't. | boolean |
seeping | "yes" if a gas can seep through walls, "no" if it can't. | boolean |
maxcharge | how much charge it can hold (usually reserved for cells) | int |
chargeperdram | how much charge is one dram (for liquid cells) | int |
chargeused | How much charge is consumed per use | int |
chargefunction | What function the charge is necessary to support | string |
dramsperuse | How many drams consumed per use of the object, if fueled by liquid | int or float |
imprintchargecost | Charge cost to imprint a ProgrammableRecoiler | int |
weight | int | |
featureweightinfo | whether the weight should be featured near the top of the infobox (yes) or moved into the extra data field (no) | string |
commerce | The value of the object | int |
complexity | int | |
tier | int | |
bits | bits. Will only show if canbuild=yes or candisassemble=yes | 0 for nonspecific bits |
canbuild | yes/no | |
candisassemble | yes/no | |
empsensitive | if it's sensitive to emp bursts. | yes/no |
weaponskill | the skill tree required for use. | string |
colorstr | the color of the character with tiles mode off. | &(char),defaults to &y |
renderstr | What the item looks like with tiles mode off. | char |
id | The name of the object in ObjectBlueprints.xml | string |
bookid | Id in books.xml | string |
chairlevel | The Chair Level of this chair. Affects the power of sitting. | int |
lightradius | radius of light it gives off | int |
hunger | how much hunger it satiates | String |
thirst | how much thirst it slakes | int |
healing | what the item heals | string |
harvestedinto | what the item harvested from this is | string |
preservedinto | what the item preserves into | string |
preservedquantity | how much of the preserved item is made | integer |
twohanded | If item requires two hands to wield | yes/no |
metal | if the object is made out of metal | yes/no |
lightprojectile | if tag Name="Light" | yes/no |
reflect | if it reflects, what percentage of damage is reflected | integer |
extra | Any other features that do not have an associated variable. Uses Template:Extra info. | {{Extra info| ...... }}
|
agility/strength/willpower/toughness/agility/intelligence | The stats the mutations affect. | (+/-)int |
acid/electric/cold/heat/poison | The elemental resistances/weaknesses the mutation has. | (+/-)int |
reputationbonus | the reputation stuff that the player gets when this is equipped. | Template:Reputation bonus for each faction |
wornon | slot the item is worn on | string |
usesslots | slots the item takes up. defaults to worn on if not specified. | List (,) of string |
supportedmods | the list of mods this item supports | List (,) of string |
desc | The short description of the object. | The whole string, with color codes included |
Usage
{{Item | title = Stopsvalinn | image = Stopsvalinn.png | av = 3 | dv = 0 | ma = 0 | ego = +1 }}