Refraction: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
Plutovi (talk | contribs)
mNo edit summary
Tag: Manual revert
 
(4 intermediate revisions by 4 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 53: Line 57:


== Other Sources of Refraction ==
== Other Sources of Refraction ==
* {{favilink|glitter dust}}, which can be created by {{favilink|glitter grenade|plural}}
* {{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]]

Latest revision as of 00:46, 19 April 2025

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.

All refraction chances are rolled separately, as opposed to adding to a shared chance.[1][2][3][4][5][6]

Creatures That Refract Light-Based Attacks

Creature Chance to Refract Refract Angle
crystalline branch
chiming rock
dense crystal leaves
sparse crystal leaves
crystalline taproot
crypt sitter 75% random
young crystalline root
crystalline root
tetraxenonoglass wall
_
Dyvvrach
Iopinax the Younger 100% random
mirror bug 100% random
Miryam
psychal rhythm rock
quartziferous mirror 100% random
hexagonal crystal
Tammuz
glowing soft
Thicksalt
Tikva
Tzedech

Equipment That Grants Refraction

Item Chance to Refract Refract Angle
kaleidocera cape 2% -180° to 180°
kaleidocera krakows 2% -180° to 180°
kaleidocera muffs 2% -180° to 180°
mirrorshades 1% -60° to 60°
rainboweave cloak 50% -120° to 120°

Other Sources of Refraction

  1. XRL.World.Parts.CyberneticsRefractLight.cs
  2. XRL.World.Parts.GasGlitter.cs
  3. XRL.World.Parts.ModRefractive.cs
  4. XRL.World.Parts.Mutations.Crystallinity.cs
  5. XRL.World.Parts.Mutations.LightManipulation.cs
  6. XRL.World.Parts.RefractLight.cs