Author Topic: Hardcoded number of Civilians in Terror Site missions  (Read 3039 times)

Offline grrussel

  • Captain
  • ***
  • Posts: 72
    • View Profile
Hardcoded number of Civilians in Terror Site missions
« on: November 07, 2012, 10:59:30 pm »
The upper limit seems set explicitly in code. Would be nice if it could be generalised to non terror missions, and settable from rulesets too.

Code: [Select]

        if (_save->getMissionType() ==  "STR_TERROR_MISSION")
  {
deployCivilians(16);
  }

Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2160
    • View Profile
Re: Hardcoded number of Civilians in Terror Site missions
« Reply #1 on: November 08, 2012, 02:21:07 pm »
Well missions as a whole are hardcoded, since the Geoscape doesn't have any actual notion of "missions", so the Battlescape has to use hardcoded definitions to generate them. This will probably be moved out to rulesets when the proper mission implementation of 0.5 comes in.