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

[W3C-93] New race win icons #178

Merged
merged 2 commits into from
Jul 12, 2022
Merged

[W3C-93] New race win icons #178

merged 2 commits into from
Jul 12, 2022

Conversation

Cepheid-UK
Copy link
Member

@Cepheid-UK Cepheid-UK commented Jun 8, 2022

Ticket:
W3C-93 - New Race Wins Icons

Description:

  • Changed race win icons to be in line with the attached picture
  • Race wins are now calculated by AvatarCategory not Race
  • Added Starter and Tournament to AvatarCategory Enums
  • When a new avatar is created, it will randomly assign a value 1-5 for the starter pics
  • Total wins are also now exposed as PickablePictures
  • Updated existing tests

Frame_28_1 (2)

new AvatarCategoryToMaxPictureId(AvatarCategory.NE, GetMaxPictureIdForRace(Race.NE)),
new AvatarCategoryToMaxPictureId(AvatarCategory.UD, GetMaxPictureIdForRace(Race.UD)),
new AvatarCategoryToMaxPictureId(AvatarCategory.RnD, GetMaxPictureIdForRace(Race.RnD)),
new AvatarCategoryToMaxPictureId(AvatarCategory.Total, GetMaxPictureIdForAllWins()),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The AvatarCategory.Tournament won't be available for now, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

correct, wont be used for now.

Race = AvatarCategory.Total,
PictureId = 0
Race = AvatarCategory.Starter,
PictureId = random.Next(1,5),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will not generate the id 5, but there are 5 starter icons in the definition of the PR description. So the 5th would never be the default @Cepheid-UK

Copy link
Member Author

@Cepheid-UK Cepheid-UK Jul 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am also renaming the icon portraits to start at 1, instead of 0 as before. Which I realise may cause issues elsewhere, but that will have to be fixed too 😄

@Cepheid-UK Cepheid-UK merged commit 0f54e92 into master Jul 12, 2022
@Cepheid-UK Cepheid-UK deleted the W3C-93/new-race-win-icons branch July 12, 2022 20:21
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

Successfully merging this pull request may close these issues.

2 participants