Lanterned: Difference between revisions

318 bytes added ,  15:01, 4 October 2021
Better query now that we have Modability table
m (add lanterned prefix)
(Better query now that we have Modability table)
Line 13: Line 13:
|complexity = 1
|complexity = 1
}}
}}
{{name}} helmets provide a [[light source]] with radius equal to the tier of the helmet + 1.
{{name|caps}} helmets and exoskeletons provide a [[light source]] with radius equal to the tier of the item + 1.


==Light Radius for Lanterned Helmets==
This mod can be applied only to items which do not already act as a light source. For example, the {{favilink|miner's helmet}} cannot be lanterned.
{{#cargo_query:table=ItemsTable=IT,GeneralData=GD|join on=IT.JoinKey=GD.JoinKey|fields=CONCAT('{{(}}favilink{{!}}', PlainName, '{{!}}prefix:&ylant&Ye&Wr&Yn&yed{{)}}')=Item, FLOOR(1 + Tier)= Light Radius|where=GD.ParentObject WITHIN 'BaseHelmet' AND GD._pageNamespace = '0'|order by = Light Radius}}


==Light Radius for Powered Exoskeleton==
==Light Radius for Lanterned Items==
In addition to helmets, the {{favilink|powered exoskeleton}} can also have the {{name}} mod, which grants it a light radius of 7.
The following items are eligible for the lanterned mod.
 
{{#cargo_query:
  | tables = Modability=M,GeneralData=GD,ItemsTable=IT,PhysicalProperties=PP
  | join on = M.JoinKey=GD.JoinKey,M.JoinKey=IT.JoinKey,M.JoinKey=PP.JoinKey
  | fields = CONCAT('{{(}}favilink id{{!}}', M.ObjectID, '{{!}}prefix:&ylant&Ye&Wr&Yn&yed{{)}}') = Item,
            GD.Tier,
            CONCAT('{{(}}qud text{{!}}&W', FLOOR(1 + Tier), '{{)}}') = Light Radius
  | where = PP.LightRadius IS NULL AND (M.SupportedMods HOLDS 'HelmetMods' OR M.SupportedMods HOLDS 'ExoskeletonMods')
  | order by = GD.Tier DESC, GD.PlainName
  | format = table
}}


{{Mod Navbox}}
{{Mod Navbox}}