Light source: Difference between revisions

14 bytes added ,  21:15, 24 September 2021
Update query to include light source creatures (use new PhysicalProperties cargo table)
(Update query to include light source creatures (use new PhysicalProperties cargo table))
Line 6: Line 6:
== 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.
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
 
|fields=CONCAT('{{((}}favilink{{!}}',CONCAT(_pageName),'{{))}}')=Light Source,LightRadius=Radius
{{#cargo_query:tables=PhysicalProperties
|fields=CONCAT('{{((}}favilink page{{!}}',CONCAT(_pageName),'{{))}}')=Light Source,LightRadius=Radius
|where=LightRadius IS NOT NULL AND LightRadius > 0 AND _pageNamespace='0'
|where=LightRadius IS NOT NULL AND LightRadius > 0 AND _pageNamespace='0'
|format=table
|format=table