Skip to content

Commit

Permalink
feat(balance): Lowered sun intensity for is_in_sunlight (#4574)
Browse files Browse the repository at this point in the history
Lowered sun intensity for is_in_sunlight

Solar panel CBMs are a lot less useful now that the weather is more cloudy and rainy. This change makes it so that cloudy weather will still let you charge solar.
  • Loading branch information
yay855 committed May 2, 2024
1 parent d3f930e commit 99276fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/weather.cpp
Expand Up @@ -1183,7 +1183,7 @@ bool is_in_sunlight( const map &m, const tripoint &p, const weather_type_id &wea
{
// TODO: Remove that game reference and include light in weather data
return m.is_outside( p ) && g->light_level( p.z ) >= 40 && !is_night( calendar::turn ) &&
weather->sun_intensity >= sun_intensity_type::normal;
weather->sun_intensity >= sun_intensity_type::light;
}

} // namespace weather
Expand Down

0 comments on commit 99276fd

Please sign in to comment.