Light source: Difference between revisions

1,830 bytes added ,  11:12, 19 January 2023
Fix cargo query errors
(Fix cargo query errors)
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
[[Image:Light_radius_8.png|frame|right|'''Example light radius of 8''']]
[[Image:Light_radius_8.png|frame|right|'''Example light radius of 8''']]
A '''light source''' is any item that provides light, revealing objects and creatures in the tiles around it, which would otherwise be obscured in darkness. When above ground, light sources will reveal double their light radius, though tiles beyond their normal radius is not fully illuminated and will not be in color.
A '''light source''' is any item that provides light, revealing objects and creatures in the tiles around it, which would otherwise be obscured in darkness. Tiles beyond their normal radius are not fully illuminated and will not be in color.


Light sources are particularly important for navigating underground or at [[Calendar#Day_Segments|night]].
Light sources are particularly important for navigating underground or at [[Calendar#Day_Segments|night]].


== List of Light Sources ==
== List of Light Sources ==
Note that the radius extends outwards. For example, an item with a light radius of 1 lights up its own tile and the 4 tiles directly adjacent to it.
<!--
{{#cargo_query:tables=ItemsTable
This section is excerpted in other places using Template:Excerpt. Please do not change the section title without updating the other pages that excerpt it. (ex: "Category:Light Sources" page)
|fields=CONCAT('{{((}}favilink{{!}}',CONCAT(_pageName),'{{))}}')=Light Source,LightRadius=Radius
-->
|where=LightRadius IS NOT NULL AND LightRadius > 0 AND _pageNamespace='0'
The following items and creatures emit light to the specified radius. Note that the radius extends outwards. For example, an item with a light radius of 1 lights up its own tile and the 4 tiles directly adjacent to it. In addition to these objects, helmets modded with the [[lanterned]] mod also act as light sources.
 
<div style="display:flex;flex-wrap:wrap;">
 
<div style="margin-right: 2.5em;">
=== Equipment and Objects ===
{{#cargo_query:
tables=PhysicalProperties=PP, GeneralData=GD, CreatureFactions=CF
|fields=CONCAT('{{((}}favilink page{{!}}',CONCAT(PP._pageName),'{{))}}')=Light Source,PP.LightRadius=Radius
|where=PP.LightRadius IS NOT NULL AND PP.LightRadius > 0 AND PP._pageNamespace='0' AND CF.Value IS NULL
|join on=PP.JoinKey = GD.JoinKey, GD.ObjectID = CF.ObjectID
|group by=GD.JoinKey
|order by=PP.LightRadius DESC, GD._pageTitle ASC
|format=table
}}
</div>
 
<div style="margin-right: 2.5em;">
=== Lanterned Helmets ===
{{#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 DESC
}}
 
=== Other Lanterned Objects ===
{{#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.ObjectID = 'Strength Exo' AND GD._pageNamespace = '0'
|order by = Light Radius DESC
}}
</div>
 
<div style="margin-right: 2.5em;">
=== Creatures ===
{{#cargo_query:
tables=PhysicalProperties=PP, GeneralData=GD, CreatureFactions=CF
|fields=CONCAT('{{((}}favilink page{{!}}',CONCAT(PP._pageName),'{{))}}')=Light Source,PP.LightRadius=Radius
|where=PP.LightRadius IS NOT NULL AND PP.LightRadius > 0 AND PP._pageNamespace='0' AND CF.Value IS NOT NULL
|join on=PP.JoinKey = GD.JoinKey, GD.ObjectID = CF.ObjectID
|group by=GD.JoinKey
|order by=PP.LightRadius DESC, GD._pageTitle ASC
|format=table
|format=table
|order by=LightRadius DESC
}}
}}
</div>
</div>


== See Also ==
== See Also ==
* [[:Category:Light Sources]]
* [[:Category:Light Sources]]