where is "hostile environment cost"?

General Stars in Shadow Discussion Forum
Post Reply
akkamaddi
Posts: 147
Joined: Tue Sep 26, 2017 5:11 am

where is "hostile environment cost"?

Post by akkamaddi »

Hi,
Quick question: Where is the hostile environment cost handled in the code? And is it based on the habitability settings of the races, or does it have to be set?

Thank you.

edit: I've tried setting up visual studio, but I'm getting an error that VS is not set up to receive hints, and VS crashes. :? Sorry.
User avatar
harpy eagle
Posts: 296
Joined: Sat Mar 10, 2018 3:25 am

Re: where is "hostile environment cost"?

Post by harpy eagle »

Look for "function PlanetProperty.hostile_env_cost(planet)" in Orders/coin_production.lua
AMX
Posts: 66
Joined: Fri Nov 24, 2017 10:41 pm

Re: where is "hostile environment cost"?

Post by AMX »

akkamaddi wrote:edit: I've tried setting up visual studio, but I'm getting an error that VS is not set up to receive hints, and VS crashes. :? Sorry.

I couldn't get Visual Studio to work properly either - I think I got past this problem, but then I ran into another crash and gave up.

Sven added support for VSCode to the beta, that looks more promising.
User avatar
harpy eagle
Posts: 296
Joined: Sat Mar 10, 2018 3:25 am

Re: where is "hostile environment cost"?

Post by harpy eagle »

If VS is giving you trouble, you don't actually need to use an IDE. I just use a text editor, myself.

Of course, you won't be able to use step-through debugging, but most of the time I think you can get by without it (not always though).
akkamaddi
Posts: 147
Joined: Tue Sep 26, 2017 5:11 am

Re: where is "hostile environment cost"?

Post by akkamaddi »

harpy eagle wrote:Look for "function PlanetProperty.hostile_env_cost(planet)" in Orders/coin_production.lua


Awesome! Thank you! :D
Post Reply