Page 1 of 1

Happiness and morale

Posted: Wed Mar 23, 2016 8:09 pm
by robinbobin
Please could you explain what those do and how additional working hours work; setting them to 4% and to 100% showed no difference in production degrade speed and everything was close to zero in less than a year even though happiness and morale were maximal in race creation screen.

Re: Happiness and morale

Posted: Thu Jun 09, 2016 5:36 pm
by bjgrt
I'm also experiencing a huge problem with that "hidden" moral decrease. There is nothing shown in any of economy/planet screens, but the production is decreasing. Could be designed as a feature, but undocumented and not shown in stats is a very annoying bug.

Re: Happiness and morale

Posted: Sat Jun 11, 2016 1:47 am
by RandomAttack
Seem to be several good questions being asked in the forums, and no answers at all. That's kinda disappointing.

Re: Happiness and morale

Posted: Mon Jun 13, 2016 10:35 am
by Ufnv
I can see no easy way to explain the decrease, it's just dropping gradually, depending on how hard workers are overburdened. The code is this:

Code: Select all

      if (OvertimeUnhappy)
      {
        CollectedOvertimeUnhappiness-=1.0f / (120.0f*10.0f*(1.0f+SavedOvertimeHappiness)*(1.0f+SavedOvertimeHappiness)); // unhappy in 120 years for maximum overtime
        
        OvertimeHappinessTrend = trendDecreasing;
        
        if (CollectedOvertimeUnhappiness<0.25f)
          CollectedOvertimeUnhappiness = 0.25f;
      }
      else
      {
        CollectedOvertimeUnhappiness+=1.0f / (300.0f*10.0f/(SavedOvertimeHappiness*SavedOvertimeHappiness)); // happy in 300 years for normal work
        
        if (CollectedOvertimeUnhappiness>1.0f)
        {
          CollectedOvertimeUnhappiness = 1.0f;

          OvertimeHappinessTrend = trendNone;
        }
        else
          OvertimeHappinessTrend = trendIncreasing;
      }

Re: Happiness and morale

Posted: Tue Jun 14, 2016 4:09 am
by bjgrt
Can't say I understand the code, but the question was about the lack of any visible "overtime-unhappiness numbers" on any screens.