laverdet / xxscreeps

Other
71 stars 16 forks source link

Fix RoomVisual.poly() when called with a list of points in array format #45

Closed bastianh closed 2 years ago

bastianh commented 2 years ago

from the documentation https://docs.screeps.com/api/#RoomVisual.poly

poly(points, [style])

points : An array of points. Every item should be either an array with 2 numbers (i.e. [10,15]), or a RoomPosition object.

laverdet commented 2 years ago

Thanks!