This repository was archived by the owner on May 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Elevation attack multiplier #4
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Units should get an attack bonus if they attack something that is below them, and get an attack reduction if they attack something that is above them. For details, see:
https://ageofempires.fandom.com/wiki/Attack
Attacking is implemented in Game::SimulateMeleeAttack()
in src/FreeAge/server/game.cpp.
It might be useful to add a function to ServerMap
to interpolate the elevation at an exact location where a unit stands on, using bilinear interpolation. It might also be useful to define a threshold for a minimum elevation difference for the attack bonus/malus to kick in, otherwise the results for units at a similar height might appear somewhat random.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers