Lanterned: Difference between revisions

Jump to navigation Jump to search
m (aop)
(now it just prevents overlap)
Line 10: Line 10:
|value      =1.2
|value      =1.2
|desc      =&CLanterned: This item provides light.
|desc      =&CLanterned: This item provides light.
|restriction=Must not already be a light source.
}}
}}
{{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.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}}
{{#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.
{{Mod Navbox}}
{{Mod Navbox}}