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

Allow to use 'upgrade' to create an orbital #3

Open
alkurbatov opened this issue Jan 12, 2019 · 0 comments
Open

Allow to use 'upgrade' to create an orbital #3

alkurbatov opened this issue Jan 12, 2019 · 0 comments

Comments

@alkurbatov
Copy link

alkurbatov commented Jan 12, 2019

Currently the only way to morph an orbital command is to:

const { MORPH_ORBITALCOMMAND } = require('@node-sc2/core/constants/ability')
const { ability, build } = taskFunctions;

const test = createSystem({
    name: 'Test',
    type: 'build',
    buildOrder: [
        [13, build(SUPPLYDEPOT)],
        [13, build(BARRACKS)],
        [16, ability(MORPH_ORBITALCOMMAND)],
    ],

Probably it would be better to support the following:

const { ORBITALRELAY } = require('@node-sc2/core/constants/upgrade')
const { ability, build } = taskFunctions;

const test = createSystem({
    name: 'Test',
    type: 'build',
    buildOrder: [
        [13, build(SUPPLYDEPOT)],
        [13, build(BARRACKS)],
        [16, upgrade(ORBITALRELAY)],
    ],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant