Stellaris

Stellaris

New Legendary Worlds
Inny 23 Apr, 2022 @ 9:16am
Code optimization
Hello, I've made a bit of optimization with some of your scripted triggers, using some vanilla checks to make it more dynamic, compatible and easier to maintain.
https://pastebin.com/CtCMh483
< >
Showing 1-3 of 3 comments
Inny 23 Apr, 2022 @ 9:30am 
And I found a more effective simplification for legw_planet_uninhabitable: just check for colonizable_planet = no and you'll never have to change this trigger again.
༒Wanheda༒  [developer] 24 Apr, 2022 @ 9:08am 
wow ... thats nice and simple, i guess i will try this change in the next version.

my code is sure not optimized, as i started this project years ago, where i even think colonizable_planet routine wasnt even in the game. also i had 0.0 experience coding anything when i started, meanwhile i got up 0.5 but well ... things are doing its job atm.

i also dont know if colonizable_planet is giving correct values for add-on based modded planets, planets that become habitable/inhabitable through events in the game or just knows the game base planets.

anyway, much thanks :)
Inny 24 Apr, 2022 @ 11:47am 
Yeah, some of the code improvements here are quite recent. I'm glad to help! :)
< >
Showing 1-3 of 3 comments
Per page: 1530 50