Latest Posts

Topic: Range/radius of military buildings

WorldSavior
Avatar
Topic Opener
Joined: 2016-10-15, 04:10
Posts: 2091
OS: Linux
Version: Recent tournament version
Ranking
One Elder of Players
Location: Germany
Posted at: 2017-02-24, 20:00

Do military buildings have an attack range or an attack radius? (Range, right?) And how big is it for every building?

And do they have a defense range or a defense radius? It is not identical with the watching range. How big is it for every military building?


Wanted to save the world, then I got widetracked

Top Quote
king_of_nowhere
Avatar
Joined: 2014-09-15, 18:35
Posts: 1668
Ranking
One Elder of Players
Posted at: 2017-02-25, 02:18

as far as i know, there is a maximum attack range, which is higher than the sight rannge of the high tower, but not too large; i'd venture around 25. Defence radius is probably equal to conquer radius.


Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 15:56
Posts: 3324
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2017-02-25, 12:51

The attack range is hard-coded in Player::find_attack_soldiersas a radius 25 nodes from the building that is being attacked. I haven't found the defense range yet, but I expect that is is similarly hard-coded.


Busy indexing nil values

Top Quote
WorldSavior
Avatar
Topic Opener
Joined: 2016-10-15, 04:10
Posts: 2091
OS: Linux
Version: Recent tournament version
Ranking
One Elder of Players
Location: Germany
Posted at: 2017-02-25, 13:40

Thank you!

king_of_nowhere wrote:

Defence radius is probably equal to conquer radius.

That's possible. I'm sure that the defence radius of a castle is much higher than the defence radius of a smaller building


Wanted to save the world, then I got widetracked

Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 15:56
Posts: 3324
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2017-02-25, 13:56

That sounds plausible then face-smile.png


Busy indexing nil values

Top Quote
WorldSavior
Avatar
Topic Opener
Joined: 2016-10-15, 04:10
Posts: 2091
OS: Linux
Version: Recent tournament version
Ranking
One Elder of Players
Location: Germany
Posted at: 2017-02-25, 16:22

Yes face-smile.png

But can someone confirm that theory, please?


Wanted to save the world, then I got widetracked

Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 15:56
Posts: 3324
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2017-02-25, 19:54

I couldn't find it within 15 minutes, so somebody who knows that bit of code needs to answer this.


Busy indexing nil values

Top Quote
WorldSavior
Avatar
Topic Opener
Joined: 2016-10-15, 04:10
Posts: 2091
OS: Linux
Version: Recent tournament version
Ranking
One Elder of Players
Location: Germany
Posted at: 2017-02-26, 19:59

Thanks again


Wanted to save the world, then I got widetracked

Top Quote