Lanterned: Difference between revisions

723 bytes added ,  19:26, 3 May 2022
m
no edit summary
mNo edit summary
mNo edit summary
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{As Of Patch|2.0.200.83}}
{{Mod
{{Mod
|title     ={{qud text|&ylant&Ye&Wr&Yn&yed|notxml}}
| title             = {{qud text|&ylant&Ye&Wr&Yn&yed|notxml}}
|type       =Helmet, Exoskeleton
| type               = Helmet, Exoskeleton
|id         =ModLanterned
| id                 = ModLanterned
|rarity     =U
| rarity             = U
|tinkerable =yes
| tinkerable         = yes
|canautotinker = no
| canautotinker     = no
|tinkertier =2
| tinkertier         = 2
|value     =1.2
| complexity        = 1
|desc       =&CLanterned: This item provides light.
| value             = 1.2
|restriction=Must not already be a light source
| powerloadsensitive = no
|complexity = 1
| empsensitive      = no
| realitydistortion  = no
| desc               = &CLanterned: This item provides light.
| restriction       = Must not already be a light source
}}
}}
{{name}} helmets provide a [[light source]] with radius equal to the tier of the helmet + 1.
{{name|caps}} helmets and exoskeletons provide a [[light source]] with radius equal to the tier of the item + 1.{{Code Reference|class=ModLanterned|name=ModLanterned}}
==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}}
This mod can be applied only to items which do not already act as a light source. For example, the {{favilink|miner's helmet}} cannot be lanterned.<ref name="ModLanterned" />
 
== Eligible Equipment ==
{{#cargo_query:
  | tables = Modability=M,GeneralData=GD,ItemsTable=IT,PhysicalProperties=PP
  | join on = M.JoinKey=GD.JoinKey,M.JoinKey=IT.JoinKey,M.JoinKey=PP.JoinKey
  | fields = CONCAT('{{(}}favilink id{{!}}', M.ObjectID, '{{!}}prefix:&ylant&Ye&Wr&Yn&yed{{)}}') = Item,
            GD.Tier,
            CONCAT('{{(}}qud text{{!}}&W', FLOOR(1 + Tier), '{{)}}') = Light Radius
  | where = PP.LightRadius IS NULL AND (M.SupportedMods HOLDS 'HelmetMods' OR M.SupportedMods HOLDS 'ExoskeletonMods')
  | order by = GD.Tier DESC, GD.PlainName
  | format = table
}}
 
{{references|2.0.201.114}}
{{Mod Navbox}}
{{Mod Navbox}}
2,158

edits