what is spot average income?

what is spot average income?

Here is where ideas can be collected for the skirmish AI in development

Moderators: hoijui, Moderators

Post Reply
Shaitan
Posts: 16
Joined: 04 Jan 2014, 11:54

what is spot average income?

Post by Shaitan »

trying to get it with

Code: Select all

callback->GetMap()->GetResourceMapSpotsAverageIncome(callback->GetResourceByName("Metal"))
but it returns me 0.65 for the Delta Siege Dry map, whereas a metal extractor produces 2.04 actually.

what's the trick?
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: what is spot average income?

Post by Forboding Angel »

It's a multiple using interesting maths(tm).

If map authors use a 6 pixel radius of 255 and a maxmetal of 1, it comes out to exactly 2.0 income on a BA mex.
Post Reply

Return to “AI”