-
-
Notifications
You must be signed in to change notification settings - Fork 594
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
Implmented showcase ability bonus potential in Golden Wyrm (Issue #1976) #2523
base: master
Are you sure you want to change the base?
Conversation
…the change instantly after upgrade
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@Mina928 Heya! I've tested this and found some show stopper issues:
|
@DreadKnight Hello! I was not able to replicate the second bug. When I play it does not allow me to use Dragon Flight more than once each turn, both before and after upgrade. I also didn't write any code that should affect that button, but let me know if it still persists and I can look through and experiment with the code again. |
@Mina928 Seems alright now, well done! Should have been marked as ready for review again 🐻 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Mina928 Now that the code was doing what issue requested, I've moved to reviewing the code itself. Some changes requested. Golden Wyrm's ability file should ask set a state that UI reacts to, not have UI await specific stuff.
"jquery.transit": "0.9.12", | ||
"js-cookie": "^3.0.1", | ||
"node-emoji": "^1.10.0", | ||
"phaser-ce": "2.16.0", | ||
"semver": "^7.5.2" | ||
"semver": "^7.5.2", | ||
"server.js": "^1.0.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's with this package?
@@ -658,6 +665,32 @@ export class UI { | |||
} | |||
} | |||
|
|||
|
|||
showBonusPotential(){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Linting: space between "()" and "{"
@@ -658,6 +665,32 @@ export class UI { | |||
} | |||
} | |||
|
|||
|
|||
showBonusPotential(){ | |||
//Shows bonus capability |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Space after "//"
this.abilitiesButtons.forEach((btn) => { | ||
const ability = game.activeCreature.abilities[btn.abilityId]; | ||
|
||
//The executioner Axes for Golden Wyrm jumps to the right |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be more generic, reusable for other abilities. Meaning no mention of specific unit and ability in interface.js
.
const ability = game.activeCreature.abilities[btn.abilityId]; | ||
|
||
//The executioner Axes for Golden Wyrm jumps to the right | ||
//Once Dragon Flight is upgraded |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Space after "//".
Also, should be more generic, without specific ability name.
btn.$button.addClass('potential') | ||
btn.changeState(ButtonStateEnum.potential); | ||
} | ||
else{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Space after "else".
@@ -1895,7 +1928,7 @@ export class UI { | |||
} | |||
}, 1500); | |||
|
|||
ab.setUpgraded(); // Set the ability to upgraded | |||
ab.setUpgraded(); // Set the ability to upgraded |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some tabs after comment it seems.
@@ -1966,7 +2000,13 @@ export class UI { | |||
} | |||
if (ab.message == game.msg.abilities.passiveCycle) { | |||
this.abilitiesButtons[i].changeState(ButtonStateEnum.slideIn); | |||
} else if (req && !ab.used && ab.trigger == 'onQuery') { | |||
} else if(this.abilitiesButtons[i].state == ButtonStateEnum.potential){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Space between ")" and "{".
@@ -1966,7 +2000,13 @@ export class UI { | |||
} | |||
if (ab.message == game.msg.abilities.passiveCycle) { | |||
this.abilitiesButtons[i].changeState(ButtonStateEnum.slideIn); | |||
} else if (req && !ab.used && ab.trigger == 'onQuery') { | |||
} else if(this.abilitiesButtons[i].state == ButtonStateEnum.potential){ | |||
//Makes sure the right bounce is not stopped if ability not used yet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Space after "//"
} else if (req && !ab.used && ab.trigger == 'onQuery') { | ||
} else if(this.abilitiesButtons[i].state == ButtonStateEnum.potential){ | ||
//Makes sure the right bounce is not stopped if ability not used yet | ||
if(ab.used){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Space after ")"
@Mina928 Hey, can you poke at the requested changes and such so that we can resolve this one before it gets stale? |
This Pull Request adds a feature requested in Issue #1976
When the character Golden Wyrm gets an upgrade from their Dragon Flight ability, they get an attack bonus. The Executioner's Axe is the only ability able to make use of this bonus, and the issue suggested adding a visual indication of this bonus, by bouncing the relevant button a bit to the right.
This feature helps give player's a visual signal to remind them of the bonus they have.
There were few files that needed changes to make this possible: