Polls

Default Game Speed

Log in to vote!

Latest Posts

Topic: Range/radius of military buildings

WorldSavior
Avatar
Joined: 2016-10-15, 04:10
Posts: 1371
Ranking
One Elder of Players
Location: GER
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?


“It's a threat to our planet to believe that someone else will save it.” - Robert Swan

Top Quote
king_of_nowhere
Avatar
Joined: 2014-09-15, 18:35
Posts: 1463
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: 3073
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
Joined: 2016-10-15, 04:10
Posts: 1371
Ranking
One Elder of Players
Location: GER
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


“It's a threat to our planet to believe that someone else will save it.” - Robert Swan

Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 15:56
Posts: 3073
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
Joined: 2016-10-15, 04:10
Posts: 1371
Ranking
One Elder of Players
Location: GER
Posted at: 2017-02-25, 16:22

Yes face-smile.png

But can someone confirm that theory, please?


“It's a threat to our planet to believe that someone else will save it.” - Robert Swan

Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 15:56
Posts: 3073
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
Joined: 2016-10-15, 04:10
Posts: 1371
Ranking
One Elder of Players
Location: GER
Posted at: 2017-02-26, 19:59

Thanks again


“It's a threat to our planet to believe that someone else will save it.” - Robert Swan

Top Quote