Light source

From Caves of Qud Wiki
Revision as of 14:32, 1 October 2021 by Egocarib (talk | contribs) (separate the query into objects & creatures)
Jump to navigation Jump to search
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. 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 night.

List of Light Sources

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.

Equipment and Objects

Error 1054: Unknown column 'PP.JoinKey' in 'on clause' (localhost)

Function: CargoSQLQuery::run Query: SELECT CONCAT('{{favilink page|',CONCAT(`PP`.`_pageName`),'}}') AS `Light Source`,`PP`.`LightRadius` AS `Radius` FROM `PhysicalProperties` `PP`,`CreatureFactions` `CF` LEFT OUTER JOIN `GeneralData` `GD` ON ((`PP`.`JoinKey`=`GD`.`JoinKey`) AND (`CF`.`ObjectID`=`GD`.`ObjectID`)) WHERE `PP`.`LightRadius` IS NOT NULL AND `PP`.`LightRadius` > 0 AND `PP`.`_pageNamespace`='0' AND `CF`.`Value` IS NULL GROUP BY `GD`.`JoinKey` ORDER BY `PP`.`LightRadius` DESC,`GD`.`_pageTitle` LIMIT 100

Creatures

Error 1054: Unknown column 'PP.JoinKey' in 'on clause' (localhost)

Function: CargoSQLQuery::run Query: SELECT CONCAT('{{favilink page|',CONCAT(`PP`.`_pageName`),'}}') AS `Light Source`,`PP`.`LightRadius` AS `Radius` FROM `PhysicalProperties` `PP`,`CreatureFactions` `CF` LEFT OUTER JOIN `GeneralData` `GD` ON ((`PP`.`JoinKey`=`GD`.`JoinKey`) AND (`CF`.`ObjectID`=`GD`.`ObjectID`)) WHERE `PP`.`LightRadius` IS NOT NULL AND `PP`.`LightRadius` > 0 AND `PP`.`_pageNamespace`='0' AND `CF`.`Value` IS NOT NULL GROUP BY `GD`.`JoinKey` ORDER BY `PP`.`LightRadius` DESC,`GD`.`_pageTitle` LIMIT 100

See Also