RimWorld

RimWorld

Tamiore Dec 2, 2022 @ 12:12am
Do pawns with "Dark Vision" gene benefit from light at all?
It does mention no "work speed" reduction, but are there any cases where light levels still matter for whatever the pawn is doing?
For one, do surgeries still benefit from light when performed by a pawn with dark vision?
Last edited by Tamiore; Dec 2, 2022 @ 12:14am
Originally posted by Astasia:
I looked into it, and all I can really say is "probably not."

SurgerySuccessChanceFactor is a bed stat, the light level on the bed determines the value. When ideology came out, pawns who preferred darklight still needed to light the beds to get max surgery success. At some point since then, that appears to have been fixed (I didn't notice until just now so I don't know how long ago it was fixed, the wiki hasn't been updated for it either). SurgerySuccessChanceFactor now has <ignoreIfPrefersDarkness>, and the darklight preferred precept adds <prefersDarkness> to colonists.

Here's the part where it becomes uncertain. The dark vision gene has <ignoreDarkness>, not <prefersDarkness>, and there is no mention in SurgerySuccessChanceFactor about <ignoreDarkness>. There's also no mention in move speed or global workspeed about <ignoreDarkness> either though. So whatever mechanic that allows the dark vision gene to bypass the normal darkness related penalties is not immediately apparent in the XML and I can't confirm if beds require light for them or not.

Probably not though. They made the mistake in ideology and fixed it, so they probably didn't make it again in Biotech. <ignoreIfPrefersDarkness> probably also checks for <ignoreDarkness> in the game code or something, though I'm not sure why they would use different variables for this.
< >
Showing 1-3 of 3 comments
The author of this thread has indicated that this post answers the original topic.
Astasia Dec 2, 2022 @ 12:44am 
I looked into it, and all I can really say is "probably not."

SurgerySuccessChanceFactor is a bed stat, the light level on the bed determines the value. When ideology came out, pawns who preferred darklight still needed to light the beds to get max surgery success. At some point since then, that appears to have been fixed (I didn't notice until just now so I don't know how long ago it was fixed, the wiki hasn't been updated for it either). SurgerySuccessChanceFactor now has <ignoreIfPrefersDarkness>, and the darklight preferred precept adds <prefersDarkness> to colonists.

Here's the part where it becomes uncertain. The dark vision gene has <ignoreDarkness>, not <prefersDarkness>, and there is no mention in SurgerySuccessChanceFactor about <ignoreDarkness>. There's also no mention in move speed or global workspeed about <ignoreDarkness> either though. So whatever mechanic that allows the dark vision gene to bypass the normal darkness related penalties is not immediately apparent in the XML and I can't confirm if beds require light for them or not.

Probably not though. They made the mistake in ideology and fixed it, so they probably didn't make it again in Biotech. <ignoreIfPrefersDarkness> probably also checks for <ignoreDarkness> in the game code or something, though I'm not sure why they would use different variables for this.
boytype Dec 2, 2022 @ 11:35am 
Anecdotally, my custom Xenotype that I am on my 3rd generational playthrough with has Dark Vision, and I have never noticed any difference between being in a lit room or a dark room. To such an extent that I stopped having lighting in the base until a Baseliner joined and constantly complained about being in the dark all the time.

So after ~200ish hours playing with Dark Vision pawns, here is my experience;
while I dont think that they get a bonus from being in the light, I do think that they totally ignore the penalties to mood, aim, and movement speed while they are in the darkness.

For only 1 point, it is really a great little gene to consider, and can easily be offset with something like Psychically Dull.
Last edited by boytype; Dec 2, 2022 @ 12:18pm
Bathory Dec 2, 2022 @ 12:37pm 
I checked the assembly code, and it looks like the dark vision gene does ignore light modifiers. It appeared whenever a pawn was physically or ideologically blind, and if the pawn could otherwise see in the dark. Not sure if that's true for every instance.
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: Dec 2, 2022 @ 12:12am
Posts: 3