Stellaris - 2.8.0 (a756) 00_colony_types.txt contains multiple code blocks that always evaluate to true

  • We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Critical Ethics

Colonel
35 Badges
Jun 3, 2017
803
2.283
  • Stellaris: Galaxy Edition
  • Sword of the Stars
  • Majesty 2 Collection
  • Stellaris: Synthetic Dawn
  • Sword of the Stars II
  • Magicka
  • Surviving Mars: Digital Deluxe Edition
  • Stellaris: Nemesis
  • Surviving Mars: First Colony Edition
  • Stellaris: Megacorp
  • Surviving Mars: First Colony Edition
  • Age of Wonders: Planetfall
  • Age of Wonders: Planetfall Deluxe edition
  • Age of Wonders: Planetfall Premium edition
  • Age of Wonders: Planetfall Season pass
  • Age of Wonders: Planetfall Sign Up
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Stellaris: Necroids
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Age of Wonders II
  • Age of Wonders
  • Age of Wonders III
  • Surviving Mars
  • BATTLETECH
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Galaxy Edition
  • Stellaris
  • Stellaris: Distant Stars
  • Stellaris: Ancient Relics
  • Age of Wonders: Planetfall - Revelations
  • Crusader Kings II
The below code in refinery worlds:
Code:
            OR = {
                num_free_districts = { type = district_city value <= @free_districts_medium_threshold }
                num_free_districts = { type = district_nexus value <= @free_districts_medium_threshold }
                num_free_districts = { type = district_hive value <= @free_districts_medium_threshold }
            }
and the below code in mining/farming/generator worlds:
Code:
            OR = {
                    num_free_districts = { type = district_city value < @small_planet_threshold }
                    num_free_districts = { type = district_nexus value < @small_planet_threshold }
                    num_free_districts = { type = district_hive value < @small_planet_threshold }
            }
Will always evaluate to True. Every planet will always only contain one of the above district types, and as such the other types will always have an available quantity of 0.

Steps to replicate:
1) Select a non-gestalt planet in-game
2) Open the console
3) Use trigger to check if num_free_districts = { type = district_hive value < 5} evaluates to True
 
Upvote 0