PeopleMinimalGrowth.cpp 281 B

1234567891011121314
  1. //
  2. // Created by jovian on 19/08/17.
  3. //
  4. #include "PeopleMinimalGrowth.h"
  5. PeopleMinimalGrowth::PeopleMinimalGrowth(int delay) : PlanetStep(delay) {}
  6. void PeopleMinimalGrowth::apply(PlanetDef &def) {
  7. if (def.stock.get(PEOPLE) > 0) {
  8. def.stock.add(PEOPLE, 1);
  9. }
  10. }