Refraction: Difference between revisions

mNo edit summary
 
(7 intermediate revisions by 5 users not shown)
Line 1: Line 1:
Refraction is a quality that completely negates light-based attacks by re-directing them away from the creature. In some cases, refraction will re-direct the attack back in the general direction of the attacker, with a random degree of angular variance. In other cases the light-based attack is re-directed in a completely random direction. Refraction is different than [[reflection]].
Refraction is a quality that completely negates [[light-based attacks]] by re-directing them away from the creature. In some cases, refraction will re-direct the attack back in the general direction of the attacker, with a random degree of angular variance. In other cases the light-based attack is re-directed in a completely random direction. Refraction is different than [[reflection]].


Some creatures have an intrinsic quality of refraction. Other creatures can gain refraction by wearing equipment that grants the quality. The [[refractive]] mod can add refraction to worn equipment or shields that do not already have the quality.
Some creatures have an intrinsic quality of refraction. Other creatures can gain refraction by wearing equipment that grants the quality. The [[refractive]] mod can add refraction to worn equipment or shields that do not already have the quality.
All refraction chances are rolled separately, as opposed to adding to a shared chance.{{Code Reference|class=CyberneticsRefractLight.cs}}{{Code Reference|class=GasGlitter.cs}}{{Code Reference|class=ModRefractive.cs}}{{Code Reference|namespace=XRL.World.Parts.Mutations|class=Crystallinity.cs}}{{Code Reference|namespace=XRL.World.Parts.Mutations|class=LightManipulation.cs}}{{Code Reference|class=RefractLight.cs}}


== Creatures That Refract Light-Based Attacks ==
== Creatures That Refract Light-Based Attacks ==
Line 13: Line 15:
             WHEN EI.ObjectID = 'Quartziferous Mirror' THEN '100%'
             WHEN EI.ObjectID = 'Quartziferous Mirror' THEN '100%'
             WHEN EI.ObjectID = 'Mirror Bug' THEN '100%'
             WHEN EI.ObjectID = 'Mirror Bug' THEN '100%'
            WHEN EI.ObjectID = 'Iopinax' THEN '100%'
         END)=Chance to Refract,
         END)=Chance to Refract,
         CONCAT(CASE
         CONCAT(CASE
Line 18: Line 21:
             WHEN EI.ObjectID = 'Quartziferous Mirror' THEN 'random'
             WHEN EI.ObjectID = 'Quartziferous Mirror' THEN 'random'
             WHEN EI.ObjectID = 'Mirror Bug' THEN 'random'
             WHEN EI.ObjectID = 'Mirror Bug' THEN 'random'
            WHEN EI.ObjectID = 'Iopinax' THEN 'random'
         END)=Refract Angle
         END)=Refract Angle
  | where = EI.Info IS NOT NULL AND EI.Info LIKE '%Refractive,,,%' AND C.Demeanor IS NOT NULL
  | where = EI.Info IS NOT NULL AND EI.Info LIKE '%Refractive,,,%' AND C.Demeanor IS NOT NULL
Line 51: Line 55:
  | format = table
  | format = table
}}
}}
== Other Sources of Refraction ==
* {{favilink|glitter dust}}, which can be created by {{favilink|glitter grenade|plural}}.
* Eating the [[Crystal Delight]], which grants {{f|Crystallinity}}.
*Installing either of the {{favilink|Skin glitter}} [[Cybernetics]]


[[Category:Mechanics]]
[[Category:Mechanics]]