HomeWildfire Games

Add the Engine code for turrets + use them to get units on walls. The scripted…

Description

Add the Engine code for turrets + use them to get units on walls. The scripted TurretHolder isn't included due to lack of usability for now. Refs #2577

Details

Committed
sanderd17May 30 2014, 4:46 PM
Parents
rP15245: Added Sibylline Books tech for Romans.
Branches
Unknown
Tags
Unknown

Event Timeline

fatherbushido added inline comments.
/ps/trunk/binaries/data/mods/public/simulation/components/Attack.js
248

That check seems not fully relevant for ranged attacks (at least in the case where the attacker is higher than the defender): the max range is an "horizontal range" everywhere in the code.

wraitii added inline comments.
/ps/trunk/binaries/data/mods/public/simulation/components/Attack.js
248

This seems to have been intended to prevent melee units from trying to attack units when they are on walls... It looks kind of broken though in the more general case, since units can move in the general case.