CoCalc is a real-time collaborative commercial alternative to JupyterHub and Overleaf that provides Jupyter Notebooks, LaTeX documents, and SageMath.
CoCalc is a real-time collaborative commercial alternative to JupyterHub and Overleaf that provides Jupyter Notebooks, LaTeX documents, and SageMath.
Path: blob/master/docs/classes/_player_d_.player.md
Views: 720
ProdigyMathGameHackingTypings › Globals › "player.d" › Player
Class: Player
Hierarchy
Player
Index
Constructors
Properties
Methods
Constructors
constructor
+ new Player(prop0
: unknown): Player
Parameters:
Name | Type |
---|---|
prop0 | unknown |
Returns: Player
Properties
MAX_HEARTS
• MAX_HEARTS: number
_isFocusModeEnabled
• _isFocusModeEnabled: false
_remoteLogger
• _remoteLogger: TODO
_saveEnabled
• _saveEnabled: true
achievements
• achievements: TODO
appearance
• appearance: TODO
appearanceChanged
• appearanceChanged: boolean
backpack
• backpack: TODO
broadcastId
• broadcastId: number
catchAttempt
• catchAttempt: number
chatID
• chatID: number
classIDs
• classIDs: number[]
Optional
coOpTeam
• coOpTeam? : unknown
Optional
currentVideoSkillId
• currentVideoSkillId? : unknown
curriculumTreeID
• curriculumTreeID: number
daily
• daily: TODO
dailyQuestions
• dailyQuestions: TODO
Optional
danceID
• danceID? : unknown
data
• data: PlayerData
earlyBirdLastChance
• earlyBirdLastChance: boolean
Optional
emoteID
• emoteID? : unknown
encounters
• encounters: TODO
equipment
• equipment: TODO
game
• game: Game
grade
• grade: number
hasUsedTicket
• hasUsedTicket: boolean
house
• house: TODO
immortal
• immortal: boolean
inPVP
• inPVP: boolean
isClassCodeAttached
• isClassCodeAttached: boolean
isFocusModeEnabled
• isFocusModeEnabled: boolean
isOpponent
• isOpponent: boolean
it
• it: boolean
Membership
justLeveled
• justLeveled: boolean
kennel
• kennel: TODO
lastVisited
• lastVisited: string
A date ISOString
locationSelectionType
• locationSelectionType: string
Optional
memberEndDate
• memberEndDate? : unknown
memberPrompt
• memberPrompt: boolean
Optional
memberShareDate
• memberShareDate? : unknown
Optional
memberStartDate
• memberStartDate? : string
A date ISOString
modifiers
• modifiers: object
Type declaration:
damage: number
ignoreElement: number
maxHearts: number
miss: number
potion? : unknown
name
• name: PlayerName
onHPChange
• onHPChange: TODO
overrideClassSelect
• overrideClassSelect: boolean
owners
• owners: object[]
parentEmail
• parentEmail: string
parentalLink
• parentalLink: boolean
password
• password: string
playerParents
• playerParents: unknown[]
playerTeachers
• playerTeachers: object[]
pvpHP
• pvpHP: number
quests
• quests: TODO
registerDate
• registerDate: Date
saveEnabled
• saveEnabled: boolean
Optional
source
• source? : unknown
spellStreak
• spellStreak: number
starsEarned
• starsEarned: number
starsReward
• starsReward: number
starsRewardBase
• starsRewardBase: number
starsToProcess
• starsToProcess: number
state
• state: TODO
Optional
team
• team? : unknown
Optional
transformID
• transformID? : unknown
tutorialCompletedThisSession
• tutorialCompletedThisSession: boolean
type
• type: string
updated
• updated: boolean
userID
• userID: number
username
• username: string
world
• world: object
Type declaration:
count: number
full: number
id: number
meta: unknown
name: string
Static
ACCOUNT_RESET_ZONE_KEEPERS
▪ ACCOUNT_RESET_ZONE_KEEPERS: Zones[]
Static
HP_BONUS
▪ HP_BONUS: object
Type declaration:
A: number
A+: number
A-: number
B: number
B+: number
B-: number
C: number
C+: number
C-: number
Static
LEVEL_CURVE
▪ LEVEL_CURVE: object[]
Methods
addAsset
▸ addAsset(asset
: unknown): void
Parameters:
Name | Type |
---|---|
asset | unknown |
Returns: void
addBattle
▸ addBattle(): void
Returns: void
addBountyScore
▸ addBountyScore(bountyScore
: number): void
Parameters:
Name | Type |
---|---|
bountyScore | number |
Returns: void
addLoss
▸ addLoss(): void
Returns: void
addSpell
▸ addSpell(spell
: number): void
Parameters:
Name | Type |
---|---|
spell | number |
Returns: void
addStars
▸ addStars(stars
: number, prop1
: boolean, prop2
: boolean): boolean
Parameters:
Name | Type |
---|---|
stars | number |
prop1 | boolean |
prop2 | boolean |
Returns: boolean
addWin
▸ addWin(): void
Returns: void
anyPetsAboveLevel
▸ anyPetsAboveLevel(level
: number): boolean
Parameters:
Name | Type |
---|---|
level | number |
Returns: boolean
canCatch
▸ canCatch(): boolean
Returns: boolean
canSpin
▸ canSpin(): boolean
Returns: boolean
castSpell
▸ castSpell(prop0
: boolean): void
Parameters:
Name | Type |
---|---|
prop0 | boolean |
Returns: void
changeCurrentHearts
▸ changeCurrentHearts(prop0
: number, prop1
: number): void
Parameters:
Name | Type |
---|---|
prop0 | number |
prop1 | number |
Returns: void
changeCurrentHeartsPercent
▸ changeCurrentHeartsPercent(percent
: number): void
Parameters:
Name | Type |
---|---|
percent | number |
Returns: void
changeEnergy
▸ changeEnergy(energy
: number): void
Parameters:
Name | Type |
---|---|
energy | number |
Returns: void
changeGold
▸ changeGold(gold
: number, prop1
: boolean): void
Parameters:
Name | Type |
---|---|
gold | number |
prop1 | boolean |
Returns: void
checkVersion
▸ checkVersion(): void
Returns: void
completeDaily
▸ completeDaily(daily
: keyof PlayerData, completed
: boolean): void
Parameters:
Name | Type |
---|---|
daily | keyof PlayerData |
completed | boolean |
Returns: void
completeTower
▸ completeTower(tower
: number): void
Parameters:
Name | Type |
---|---|
tower | number |
Returns: void
createDataClone
▸ createDataClone(): Player
Returns: Player
createRandom
▸ createRandom(): void
Returns: void
diffAttackSlots
▸ diffAttackSlots(level
: number): void
Parameters:
Name | Type |
---|---|
level | number |
Returns: void
equip
▸ equip(id
: number, type
: ItemType): boolean
Parameters:
Name | Type |
---|---|
id | number |
type | ItemType |
Returns: boolean
evolve
▸ evolve(unused0
: never, unused1
: never): never
Parameters:
Name | Type |
---|---|
unused0 | never |
unused1 | never |
Returns: never
forceSaveCharacter
▸ forceSaveCharacter(): void
Returns: void
getAllAttacks
▸ getAllAttacks(): number[]
Returns: number[]
getAllowsHouseVisitors
▸ getAllowsHouseVisitors(): boolean
Returns: boolean
getArenaPoints
▸ getArenaPoints(): number
Returns: number
getAttacks
▸ getAttacks(): number[]
Returns: number[]
getAvailableEvolutions
▸ getAvailableEvolutions(): unknown[]
Returns: unknown[]
getBaseMaxHearts
▸ getBaseMaxHearts(): number
Returns: number
getBattles
▸ getBattles(): number
Returns: number
getBountyScore
▸ getBountyScore(): number
Returns: number
getColiseum
▸ getColiseum(): number
Returns: number
getCurrentBamSpells
▸ getCurrentBamSpells(): number[]
Returns: number[]
getCurrentHearts
▸ getCurrentHearts(): number
Returns: number
getDailyQuestions
▸ getDailyQuestions(): Player["dailyQuestions"]
Returns: Player["dailyQuestions"]
getDamageBonus
▸ getDamageBonus(): ReturnType‹Player["equipment"]["getDamageBonuses"]›
Returns: ReturnType‹Player["equipment"]["getDamageBonuses"]›
getDataAndClear
▸ getDataAndClear(): Partial‹Player›
Returns: Partial‹Player›
getElement
▸ getElement(): "wizard"
Returns: "wizard"
getEnergy
▸ getEnergy(): number
Returns: number
getEquipmentSpell
▸ getEquipmentSpell(): object
Returns: object
ID: number
locked: boolean
type: unknown
getFirstName
▸ getFirstName(): string
Returns: string
getGold
▸ getGold(): number
Returns: number
getHeartBonus
▸ getHeartBonus(): number
Returns: number
getID
▸ getID(): Player["userID"]
Returns: Player["userID"]
getLatestClassIDLegacy
▸ getLatestClassIDLegacy(): number
Returns: number
getLevel
▸ getLevel(): number
Returns: number
getLevelingCurve
▸ getLevelingCurve(level
: number): unknown[]
Parameters:
Name | Type |
---|---|
level | number |
Returns: unknown[]
getLosses
▸ getLosses(): number
Returns: number
getMaxHearts
▸ getMaxHearts(level
: number): number
Parameters:
Name | Type |
---|---|
level | number |
Returns: number
getMaxTimeForCurrentMorphMarbleEffect
▸ getMaxTimeForCurrentMorphMarbleEffect(): number
Returns: number
getName
▸ getName(): string
Returns: string
getNameWithoutNickname
▸ getNameWithoutNickname(): string
Returns: string
getNativeSpell
▸ getNativeSpell(prop0
: unknown, prop1
: unknown[], prop2
: unknown, prop3
: unknown): unknown
Parameters:
Name | Type |
---|---|
prop0 | unknown |
prop1 | unknown[] |
prop2 | unknown |
prop3 | unknown |
Returns: unknown
getNumAttacks
▸ getNumAttacks(): number
Returns: number
getNumRelics
▸ getNumRelics(): number
Returns: number
getPercentToLevel
▸ getPercentToLevel(): number
Returns: number
getPlayerClass
▸ getPlayerClass(): string
Returns: string
getPlayerData
▸ getPlayerData(): PlayerData
Returns: PlayerData
getRegisterDate
▸ getRegisterDate(): Date | null
Returns: Date | null
getSettings
▸ getSettings(): PlayerData["settings"]
Returns: PlayerData["settings"]
getSpellAssets
▸ getSpellAssets(): unknown[]
Returns: unknown[]
getSpellStreak
▸ getSpellStreak(): Player["spellStreak"]
Returns: Player["spellStreak"]
getStarReward
▸ getStarReward(): number
Returns: number
getStarRewardByDamage
▸ getStarRewardByDamage(damage
: number): number
Parameters:
Name | Type |
---|---|
damage | number |
Returns: number
getStars
▸ getStars(): number | null
Returns: number | null
getStarsToLevel
▸ getStarsToLevel(): number
Returns: number
getStatHealth
▸ getStatHealth(): number
Returns: number
getStatPower
▸ getStatPower(): number
Returns: number
getTeamScore
▸ getTeamScore(): number
Returns: number
getTowerProgress
▸ getTowerProgress(): number
Returns: number
getUpdatedData
▸ getUpdatedData(prop0
: unknown, prop1
: unknown): unknown
Parameters:
Name | Type |
---|---|
prop0 | unknown |
prop1 | unknown |
Returns: unknown
getWins
▸ getWins(): number
Returns: number
hasCompletedTowerTownTutorial
▸ hasCompletedTowerTownTutorial(): boolean
Returns: boolean
hasCompletedTutorial
▸ hasCompletedTutorial(): boolean
Returns: boolean
hasHouseItem
▸ hasHouseItem(item
: Item): boolean
Parameters:
Name | Type |
---|---|
item | Item |
Returns: boolean
hasMaxQuantityOfItem
▸ hasMaxQuantityOfItem(type
: unknown, item
: unknown): boolean
Parameters:
Name | Type |
---|---|
type | unknown |
item | unknown |
Returns: boolean
hasMembership
▸ hasMembership(): Player["it"]
Returns: Player["it"]
hasValidatedParentEmail
▸ hasValidatedParentEmail(): boolean
Returns: boolean
hasValidatedTeacherEmail
▸ hasValidatedTeacherEmail(): boolean
Returns: boolean
heal
▸ heal(): void
Returns: void
healTeam
▸ healTeam(hearts
: number): void
Parameters:
Name | Type |
---|---|
hearts | number |
Returns: void
healTeamMember
▸ healTeamMember(hearts
: number, prop1
: unknown, prop2
: unknown): void
Parameters:
Name | Type |
---|---|
hearts | number |
prop1 | unknown |
prop2 | unknown |
Returns: void
init
▸ init(prop0
: unknown): unknown
Parameters:
Name | Type |
---|---|
prop0 | unknown |
Returns: unknown
initFromProtobuf
▸ initFromProtobuf(prop0
: unknown): void
Parameters:
Name | Type |
---|---|
prop0 | unknown |
Returns: void
isBlockedByDarkTowerMemberGate
▸ isBlockedByDarkTowerMemberGate(): boolean
Returns: boolean
isItemOwned
▸ isItemOwned(item
: Item): boolean
Parameters:
Name | Type |
---|---|
item | Item |
Returns: boolean
isKnockedOut
▸ isKnockedOut(): boolean
Returns: boolean
isPlayerTransformed
▸ isPlayerTransformed(): boolean
Returns: boolean
onTutorialComplete
▸ onTutorialComplete(): void
Returns: void
processDeserter
▸ processDeserter(): void
Returns: void
processStars
▸ processStars(): void
Returns: void
processTrialMembership
▸ processTrialMembership(): void
Returns: void
resetAccount
▸ resetAccount(): void
Returns: void
resetModifiers
▸ resetModifiers(): void
Returns: void
rewardMembershipPrizes
▸ rewardMembershipPrizes(prop0
: unknown): void
Parameters:
Name | Type |
---|---|
prop0 | unknown |
Returns: void
setAllowsHouseVisitors
▸ setAllowsHouseVisitors(allow
: boolean): void
Parameters:
Name | Type |
---|---|
allow | boolean |
Returns: void
setBGMVolume
▸ setBGMVolume(volume
: number): void
Parameters:
Name | Type |
---|---|
volume | number |
Returns: void
setColiseum
▸ setColiseum(coliseum
: number): void
Parameters:
Name | Type |
---|---|
coliseum | number |
Returns: void
setData
▸ setData(data
: PlayerData): void
Parameters:
Name | Type |
---|---|
data | PlayerData |
Returns: void
setDefault
▸ setDefault(gender
: "male" | "female"): void
Parameters:
Name | Type |
---|---|
gender | "male" | "female" |
Returns: void
setEnergy
▸ setEnergy(energy
: number): void
Parameters:
Name | Type |
---|---|
energy | number |
Returns: void
setMemberDebug
▸ setMemberDebug(): void
Returns: void
setMembership
▸ setMembership(player
: Player, member
: boolean): void
Parameters:
Name | Type |
---|---|
player | Player |
member | boolean |
Returns: void
setParentEmail
▸ setParentEmail(email
: string): void
Parameters:
Name | Type |
---|---|
email | string |
Returns: void
setPlayerClass
▸ setPlayerClass(playerClass
: unknown): void
Parameters:
Name | Type |
---|---|
playerClass | unknown |
Returns: void
setSFXVolume
▸ setSFXVolume(volume
: number): void
Parameters:
Name | Type |
---|---|
volume | number |
Returns: void
setSpinDate
▸ setSpinDate(date
: Date): void
Parameters:
Name | Type |
---|---|
date | Date |
Returns: void
setVoiceVolume
▸ setVoiceVolume(volume
: number): void
Parameters:
Name | Type |
---|---|
volume | number |
Returns: void
setZone
▸ setZone(zone
: unknown): void
Parameters:
Name | Type |
---|---|
zone | unknown |
Returns: void
spinWheel
▸ spinWheel(wheel
: 1 | 2): void
Parameters:
Name | Type |
---|---|
wheel | 1 | 2 |
Returns: void
swapSpells
▸ swapSpells(prop0
: unknown, prop1
: unknown): unknown
Parameters:
Name | Type |
---|---|
prop0 | unknown |
prop1 | unknown |
Returns: unknown
transformPlayer
▸ transformPlayer(prop0
: unknown, prop1
: unknown, prop2
: number): void
Parameters:
Name | Type |
---|---|
prop0 | unknown |
prop1 | unknown |
prop2 | number |
Returns: void
unequip
▸ unequip(type
: ItemType): boolean
Parameters:
Name | Type |
---|---|
type | ItemType |
Returns: boolean
updateMembershipVideoAdData
▸ updateMembershipVideoAdData(): void
Returns: void
updateModifier
▸ updateModifier(type
: "potion" | "barrier", modifier
: number): void
Parameters:
Name | Type |
---|---|
type | "potion" | "barrier" |
modifier | number |
Returns: void
validateLevel
▸ validateLevel(): void
Returns: void
Static
enemiesPerLevel
▸ enemiesPerLevel(level
: number): number
Parameters:
Name | Type |
---|---|
level | number |
Returns: number
Static
getAoeEvolutions
▸ getAoeEvolutions(): number[]
Returns: number[]
Static
getAttacksFromCurve
▸ getAttacksFromCurve(prop0
: unknown[], prop1
: number, prop2
: number): unknown[]
Parameters:
Name | Type |
---|---|
prop0 | unknown[] |
prop1 | number |
prop2 | number |
Returns: unknown[]
Static
getAttacksOfType
▸ getAttacksOfType(prop0
: unknown, prop1
: unknown): unknown[]
Parameters:
Name | Type |
---|---|
prop0 | unknown |
prop1 | unknown |
Returns: unknown[]
Static
getEvolutionsFromCurve
▸ getEvolutionsFromCurve(prop0
: unknown[], prop1
: number, prop2
: number): unknown[]
Parameters:
Name | Type |
---|---|
prop0 | unknown[] |
prop1 | number |
prop2 | number |
Returns: unknown[]
Static
getHeartsFromCurve
▸ getHeartsFromCurve(prop0
: unknown[], prop1
: number, prop2
: number): number
Parameters:
Name | Type |
---|---|
prop0 | unknown[] |
prop1 | number |
prop2 | number |
Returns: number
Static
getLevelPercent
▸ getLevelPercent(stars
: number): number
Parameters:
Name | Type |
---|---|
stars | number |
Returns: number
Static
getSingleShotEvolutions
▸ getSingleShotEvolutions(): number[]
Returns: number[]
Static
levelFromStars
▸ levelFromStars(stars
: number): number
Parameters:
Name | Type |
---|---|
stars | number |
Returns: number
Static
starsToLevel
▸ starsToLevel(stars
: number): number
Parameters:
Name | Type |
---|---|
stars | number |
Returns: number