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

Add custom bottle multiplier for Lifi #2542

Closed
wants to merge 1 commit into from

Conversation

af-afk
Copy link
Member

@af-afk af-afk commented Feb 5, 2024

No description provided.

@af-afk af-afk marked this pull request as draft February 5, 2024 10:31
@@ -79,6 +79,8 @@ function ErrorBoundary(error: Error) {

const ADJUSTED_BOTTLE_MULTIPLIER = 12;

const ADJUSTED_BOTTLE_MULTIPLIER = 24;
Copy link
Contributor

Choose a reason for hiding this comment

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

this is the same variable name as above

// reward lifi bottles disproporationately (24x) compared to the usual (12x)

let adjustedLootboxCount = lootboxCount;
switch (true) {
Copy link
Contributor

Choose a reason for hiding this comment

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

this has redundant logic (if application is lifi shouldMultiplyBottles is always going to be true), and should be a ternary such as

const adjustedLootboxCount = application === "lifi"
  ? lootboxCount * lifiMultiplier 
  : application !== "none" 
    ? lootboxCount * bottleMultiplier 
    : lootboxCount

@af-afk af-afk closed this Feb 16, 2024
@af-afk af-afk deleted the develop-prepare-additional-rewards-for-lifi branch August 29, 2024 04:42
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