Template:Physical properties data store: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(Data storage template for PhysicalProperties cargo table)
 
(store throwability in cargo)
 
(4 intermediate revisions by 2 users not shown)
Line 6: Line 6:
|HeatResist=Integer
|HeatResist=Integer
|LightRadius=Integer
|LightRadius=Integer
|Throwable=Boolean
|Seeping=Boolean
|Seeping=Boolean
|Inhaled=Boolean
|Inhaled=Boolean
|Volume=Integer
|LiquidGenType=String
|LiquidGenType=String
|LiquidGenRate=String
|LiquidGenRate=String
Line 22: Line 24:
! description
! description
|-
|-
| acidresist
| acid
| integer
| integer
| NULL
| NULL
| Acid resistance of the item or character
| Acid resistance of the item or character
|-
|-
| electricresist
| electric
| integer
| integer
| NULL
| NULL
| Electic resistance of the item or character
| Electic resistance of the item or character
|-
|-
| coldresist
| cold
| integer
| integer
| NULL
| NULL
| Cold resistance of the item or character
| Cold resistance of the item or character
|-
|-
| heatresist
| heat
| integer
| integer
| NULL
| NULL
Line 46: Line 48:
| NULL
| NULL
| Light radius of the object if it is a light source
| Light radius of the object if it is a light source
|-
| throwable
| boolean
| NULL
| Whether this is considered a thrown object by the game
|-
|-
| seeping
| seeping
Line 56: Line 63:
| NULL
| NULL
| If this is a gas, whether the gas is [[respiration]]-based
| If this is a gas, whether the gas is [[respiration]]-based
|-
| volume
| integer
| NULL
| Max volume of liquid held by the object
|-
|-
| liquidgentype
| liquidgentype
Line 68: Line 80:
|}
|}
</noinclude><includeonly>{{#cargo_store:_table=PhysicalProperties
</noinclude><includeonly>{{#cargo_store:_table=PhysicalProperties
|AcidResist={{{acidresist|}}}
|AcidResist={{{acid|}}}
|ElectricResist={{{electricresist|}}}
|ElectricResist={{{electric|}}}
|ColdResist={{{coldresist|}}}
|ColdResist={{{cold|}}}
|HeatResist={{{heatresist|}}}
|HeatResist={{{heat|}}}
|LightRadius={{{lightradius|}}}
|LightRadius={{{lightradius|}}}
|Throwable={{{throwable|}}}
|Seeping={{{seeping|}}}
|Seeping={{{seeping|}}}
|Inhaled={{{inhaled|}}}
|Inhaled={{{inhaled|}}}
|Volume={{{volume|}}}
|LiquidGenType={{{liquidgentype|}}}
|LiquidGenType={{{liquidgentype|}}}
|LiquidGenRate={{{liquidgenrate|}}}
|LiquidGenRate={{{liquidgenrate|}}}
|JoinKey={{FULLPAGENAME}}
|JoinKey={{FULLPAGENAME}}
}}</includeonly>
}}</includeonly>

Latest revision as of 22:41, 18 January 2024

This template defines the table "PhysicalProperties". View table.

This template should be called exclusively from the Template:Item and Template:Character pages. The template has no actual output, it simply stores the data in cargo.

parameter type default description
acid integer NULL Acid resistance of the item or character
electric integer NULL Electic resistance of the item or character
cold integer NULL Cold resistance of the item or character
heat integer NULL Heat resistance of the item or character
lightradius integer NULL Light radius of the object if it is a light source
throwable boolean NULL Whether this is considered a thrown object by the game
seeping boolean NULL If this is a gas, whether the gas seeps through walls
inhaled boolean NULL If this is a gas, whether the gas is respiration-based
volume integer NULL Max volume of liquid held by the object
liquidgentype string NULL The type of liquid generated by this object, if applicable (i.e. LiquidProducer part)
liquidgenrate string NULL The number of turns it takes this object to generate one dram of liquid, if applicable (can be a number or a range such as 20-40)