vjurenka / BWMirror

BWMirror API source files
Other
55 stars 13 forks source link

wrong supplyRequired() in zerg drone? #23

Closed F-I-D-O closed 8 years ago

F-I-D-O commented 8 years ago

Method UnitType.Zerg_Drone.supplyRequired() returns 2. I think it should return 1, am I right?

vjurenka commented 8 years ago

Hi, this is working as intended. All supply counts in the BWAPI and thus in BWMirror are doubled, see the note here: https://bwapi.github.io/class_b_w_a_p_i_1_1_player_interface.html#adbaf9b3cd274ea7de02022d487f623fa

Sorry this note didn't make it into the javadoc, I'll try to fix that in the next release.

F-I-D-O commented 8 years ago

Thank you for quick response!