Skip to content
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.

Add Prestige #69

Open
wants to merge 56 commits into
base: develop
Choose a base branch
from
Open

Conversation

RedSparr0w
Copy link
Member

@RedSparr0w RedSparr0w commented Aug 29, 2019

Continuing from this issue:

pokeclicker/pokeclicker#238

Because prestige is tied in with multiple regions, it is required to implement before release.

A list of all prestige upgrades can be found here

The basic idea is that you buy upgrades in the shape of a Pokéball. You can start on either edge, and you can buy any upgrade that is next to one you've already unlocked.

All functions are documented on the branch feature/prestige.

Changes to GameConstants

  • AMOUNT_OF_PRESTIGE_UPGRADES = 37
  • PrestigeType enumerator Easy, Medium, Hard

Changes to player class

  • Add an array for tracking easy, medium and hard prestiges done. prestigesCompleted[<difficulty>]
  • Add an array for tracking easy, medium and hard prestige points unspent. prestigePoints[<difficulty>]
  • Add a boolean list of length AMOUNT_OF_PRESTIGE_UPGRADES to keep track of upgrades bought. prestigeUpgradesBought
  • Make sure these variables save
  • Add store variables for money, quest points and dungeon tokens so that the player can get them when he is eligible to prestige again.

Prestige class

  • function canReachUpgrade
  • function buyUpgrade
  • function startPrestige
  • function awardPrestigePoints
  • function isUpgradeBought
  • function initialize

PrestigeBonuses to calculate

I am not entirely sure what the best way to do this is @BaineGames @Aegyo @dennism1997
As all prestige upgrades are unique, I figured we need a method for each type. So that would be a function like getFarmFertilizerBonus, that checks a hardcoded id to see if it's bought, and applies the bonus when it is. I've considered an enumerator or a class for each type, but that seems impracitcal as they are all unique. Please discuss :)

  • function getBonus
  • TODO all perks
  • Differentiate locked/purchasable/purchased bonuses better
  • Make prestige objects observable
  • Make prestige objects save
  • Spend prestige points
  • Tidy up layout
  • Update descriptions
  • Add tooltip
  • Show cost
  • Track the dungeons cleared since after you prestiged (for route requirements)

image

  • Need to add 9 more prestige bonuses
  • Keep track of players Items, Money, QP, Dungeon Tokens that they have before prestiging
    • These items will be given back to the player when they reach the point of being able to prestige again
  • Apply the bonus values where needed
  • Figure out where/when player is able to prestige
    • PLayer is able to prestige once they beat the Elite 4 Champion
  • Add modal explaining everything about prestiging
  • Add button to reset prestige
  • Figure out how many points the player should receive for the prestige
    • You get more points based on which region you have completed (Beaten the champion)
      • Kanto (1)
      • Johto (3)
      • Hoenn (7?)
  • Implement the Easy, Medium and Hard modes for prestige.

Ishadijcks and others added 30 commits February 27, 2018 14:59
Mockup UI, colors are still ugly tho
update prestige branch to latest development version
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants