Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added first rally point/tag to raw/feature unit details #283

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions pysc2/lib/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ class FeatureUnit(enum.IntEnum):
attack_upgrade_level = 43
armor_upgrade_level = 44
shield_upgrade_level = 45
rally_x_0 = 46
rally_y_0 = 47
rally_tag_0 = 48


class EffectPos(enum.IntEnum):
Expand Down Expand Up @@ -1347,6 +1350,9 @@ def raw_order(i):
u.attack_upgrade_level,
u.armor_upgrade_level,
u.shield_upgrade_level,
u.rally_targets[0].point.x if len(u.rally_targets) >= 1 else 0,
u.rally_targets[0].point.y if len(u.rally_targets) >= 1 else 0,
u.rally_targets[0].tag if len(u.rally_targets) >= 1 else 0,
]
return features

Expand Down