pickStructLocation.js

Overview

Fixes a bug in Warzone 3.1 early alpha releases (master snapshots) where pickStructLocation() would return positions offset by 1 tile.

Availability

 Requires backport.js

Compatible with all versions of Warzone from 3.1 early alpha releases and above..

The pickStructLocation() backport will only take effect on in early alpha releases (master snapshots), all other versions will be unaffected.

Notes

The pickStructLocation() bug would result in non-buildable locations being returned for new structures, which in turn would cause orderDroidBuild() to fail,

It's not possible to accurately fix the ½ tile offset that sometimes occurs when placing cyborg factories, but aside from that this backport will make pickStructLocation() behave correctly.

Script

  File Modified

JavaScript File pickStructLocaation_0.1.js Initial release

Mar 07, 2012 by Aubergine

See also