BGforgeNet / FO2tweaks

Fallout 2 tweaks
https://forums.bgforge.net/viewforum.php?f=26
115 stars 10 forks source link

"Light level" compatibility with Fallout: Sonora #90

Closed dekrus closed 2 years ago

dekrus commented 2 years ago

Even if "min_light_level" is disabled in fo2tweaks.ini, the map is still updated on any visit. In F: Sonora, this causes NPCs with broken limbs that need to be healed by player's doctor skill to heal themselves.

https://github.com/BGforgeNet/FO2tweaks/blob/1ea03bd878525c64f0731d2581a4803ce0994865/source/gl_g_light_level.ssl#L21-L23

Please make the map update in "map_enter_p_proc" only work if "min_light_level" > 0.

burner1024 commented 2 years ago

I'm not sure why is that an issue. map_update_p_proc is called regularly anyway. I think if that causes a problem, that should be fixed in Sonora. But it does make sense to only call this when the tweak is enabled, true.