Lanterned: Difference between revisions

4 bytes removed ,  02:49, 16 December 2019
m
join on with joinkey
(added query of helmets with their light radius, as of patch)
m (join on with joinkey)
Line 13: Line 13:
{{name}} helmets provide a light with radius (Tier of helmet + 1).
{{name}} helmets provide a light with radius (Tier of helmet + 1).
==Light Radius For All Helmets==
==Light Radius For All Helmets==
{{#cargo_query:table=ItemsTable=IT,GeneralData=GD|join on=IT._pageName=GD._pageName|fields=CONCAT('{{((}}favilink{{!}}', PlainName, '{{))}}')=Item, FLOOR(1 + Tier)= Light Radius|where=GD.ParentObject WITHIN 'BaseHelmet' AND GD._pageNamespace = '0'|order by = Light Radius}}
{{#cargo_query:table=ItemsTable=IT,GeneralData=GD|join on=IT.JoinKey=GD.JoinKey|fields=CONCAT('{{((}}favilink{{!}}', PlainName, '{{))}}')=Item, FLOOR(1 + Tier)= Light Radius|where=GD.ParentObject WITHIN 'BaseHelmet' AND GD._pageNamespace = '0'|order by = Light Radius}}
If the object already has a light source, like [[miner's helmet]], the larger radius will overwrite the smaller one. In this case, the miner's helmet already provides 6 radius light so a lanterned mod will not do anything in this case.
If the object already has a light source, like [[miner's helmet]], the larger radius will overwrite the smaller one. In this case, the miner's helmet already provides 6 radius light so a lanterned mod will not do anything in this case.
{{Mod Navbox}}
{{Mod Navbox}}