Originally posted by **FrozenEmpire** October 21, 2023
Increasing energies through resting, ahead of night battles, seems ok to me, however the dawn energy boosts also get applied here ahead of the nights battles...
```
void ddr_character::StartDawn ( void )
{
if ( !IsDead() ) {
if ( IsResting() )
IncreaseEnergy(RESTING_ENERGY_BOOST);
if ( IsAIControlled() )
IncreaseEnergy( DAWN_ENERGY_BOOST_AI );
else
IncreaseEnergy( DAWN_ENERGY_BOOST );
}
}
```
Discussed in https://github.com/ChilliHugger/The-Lords-Of-Midnight/discussions/190