How to calculate unemployed citizens in a city?

Discussion in 'Civ5 - Creation & Customization' started by Scissor_fingers, Aug 27, 2016.

  1. Scissor_fingers

    Scissor_fingers Chieftain

    Joined:
    Jul 31, 2016
    Messages:
    10
    Location:
    Texas
    I'm trying to design a UB that replaces the Zoo that gives +2 happiness and a +5% gold bonus per unemployed citizen (capped at 25%).

    I'm currently stuck on how to calculate the unemployed citizens in a city as an integer in lua.

    Can someone help please?
     
  2. LeeS

    LeeS Imperator

    Joined:
    Jul 23, 2013
    Messages:
    7,241
    Location:
    Illinois, USA

Share This Page