Template:Cell performance for charge: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 3: Line 3:
   |tables=ArtifactData=AD,PhysicalProperties=PP
   |tables=ArtifactData=AD,PhysicalProperties=PP
   |join on=AD.JoinKey=PP.JoinKey
   |join on=AD.JoinKey=PP.JoinKey
   |fields=AD._pageName,CONCAT(CASE WHEN AD.MaxCharge IS NOT NULL THEN AD.MaxCharge ELSE AD.ChargePerDram * PP.MaxVolume END)=MaxCharge,FLOOR((CASE WHEN AD.MaxCharge IS NOT NULL THEN AD.MaxCharge ELSE AD.ChargePerDram * PP.MaxVolume END) / {{#var:charge_consumed}})=Uses
   |fields=AD._pageName,CONCAT(CASE WHEN AD.MaxCharge IS NOT NULL THEN AD.MaxCharge ELSE AD.ChargePerDram * PP.Volume END)=MaxCharge,FLOOR((CASE WHEN AD.MaxCharge IS NOT NULL THEN AD.MaxCharge ELSE AD.ChargePerDram * PP.Volume END) / {{#var:charge_consumed}})=Uses
   |where=AD.MaxCharge IS NOT NULL OR (AD.ChargePerDram IS NOT NULL AND PP.MaxVolume IS NOT NULL)
   |where=AD.MaxCharge IS NOT NULL OR (AD.ChargePerDram IS NOT NULL AND PP.Volume IS NOT NULL)
   |order by=Uses ASC
   |order by=Uses ASC
   |format=template
   |format=template

Revision as of 17:21, 7 October 2021


Specify an item's charge use as the first parameter.

Shows how many uses can be obtained from each type of energy cell as a hoverable tooltip.

Example

{{cell performance for charge | 7500 }}

7500 Solar cell: not functionalFidget cell: not functionalCombustion cell: not functionalLead-acid cell: not functionalChem cell: 1 useRocket skates: 3 usesThermoelectric cell: 5 usesBiodynamic cell: 8 usesBlood-gradient hand vacuum: 8 usesSlip ring: 10 usesGyrocopter backpack: 12 usesNuclear cell: 13 usesAntimatter cell: 26 usesMecha power core: 66 usesLeyline puppeteers: 133 uses