-
Notifications
You must be signed in to change notification settings - Fork 182
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
STARPORTTECHLABRESEARCH abilities not working #294
Comments
Just found that at least for Banshee, I can use below Abilities: I still don't understand why STARPORTTECHLABRESEARCH_RESEARCH*** doesn't work. |
I think you are trying to research upgrades that were removed from the game but are still listed in the AbilityIds. You can also use the idle_starport_techlabs = self.units.filter(lambda u: u.type_id == UnitTypeId.STARPORTTECHLAB and u.is_ready and u.is_idle)
for spt in idle_starport_techlabs:
self.combinedActions.append(spt.research(UpgradeId.BANSHEECLOAK))
self.combinedActions.append(spt.research(UpgradeId.BANSHEESPEED))
self.combinedActions.append(spt.research(UpgradeId.MEDIVACINCREASESPEEDBOOST))
self.combinedActions.append(spt.research(UpgradeId.RAVENCORVIDREACTOR))
# The following requires that you have a fusion core
self.combinedActions.append(spt.research(UpgradeId.LIBERATORMORPH))
await self.do_actions(self.combinedActions) Here are a couple upgrades and their corresponding research abilities. UnitTypeId.STARPORTTECHLAB: {
UpgradeId.BANSHEECLOAK: {"ability": AbilityId.RESEARCH_BANSHEECLOAKINGFIELD},
UpgradeId.BANSHEESPEED: {
"ability": AbilityId.RESEARCH_BANSHEEHYPERFLIGHTROTORS
},
UpgradeId.LIBERATORMORPH: {
"upgrade": UpgradeId.LIBERATORMORPH,
"ability": AbilityId.STARPORTTECHLABRESEARCH_RESEARCHLIBERATORAGMODE,
"requires_tech_building": UnitTypeId.FUSIONCORE,
},
UpgradeId.MEDIVACINCREASESPEEDBOOST: {
"ability": AbilityId.RESEARCH_HIGHCAPACITYFUELTANKS
},
UpgradeId.RAVENCORVIDREACTOR: {
"ability": AbilityId.RESEARCH_RAVENCORVIDREACTOR
}, |
Thanks @BurnySc2 for pointing it out! |
I'm trying to upgrade Banshee ability from Startport TechLab.
I used below code:
I tried each comment part, none of them work.
Now I cannot upgrade any ability from starport techlab.
The text was updated successfully, but these errors were encountered: