CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
ProdigyPNP

CoCalc is a real-time collaborative commercial alternative to JupyterHub and Overleaf that provides Jupyter Notebooks, LaTeX documents, and SageMath.

GitHub Repository: ProdigyPNP/ProdigyMathGameHacking
Path: blob/master/docs/classes/_player_d_.player.md
Views: 720

ProdigyMathGameHackingTypingsGlobals"player.d"Player

Class: Player

Hierarchy

  • Player

Index

Constructors

Properties

Methods

Constructors

constructor

+ new Player(prop0: unknown): Player

Parameters:

NameType
prop0unknown

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: 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:

NameType
assetunknown

Returns: void


addBattle

addBattle(): void

Returns: void


addBountyScore

addBountyScore(bountyScore: number): void

Parameters:

NameType
bountyScorenumber

Returns: void


addLoss

addLoss(): void

Returns: void


addSpell

addSpell(spell: number): void

Parameters:

NameType
spellnumber

Returns: void


addStars

addStars(stars: number, prop1: boolean, prop2: boolean): boolean

Parameters:

NameType
starsnumber
prop1boolean
prop2boolean

Returns: boolean


addWin

addWin(): void

Returns: void


anyPetsAboveLevel

anyPetsAboveLevel(level: number): boolean

Parameters:

NameType
levelnumber

Returns: boolean


canCatch

canCatch(): boolean

Returns: boolean


canSpin

canSpin(): boolean

Returns: boolean


castSpell

castSpell(prop0: boolean): void

Parameters:

NameType
prop0boolean

Returns: void


changeCurrentHearts

changeCurrentHearts(prop0: number, prop1: number): void

Parameters:

NameType
prop0number
prop1number

Returns: void


changeCurrentHeartsPercent

changeCurrentHeartsPercent(percent: number): void

Parameters:

NameType
percentnumber

Returns: void


changeEnergy

changeEnergy(energy: number): void

Parameters:

NameType
energynumber

Returns: void


changeGold

changeGold(gold: number, prop1: boolean): void

Parameters:

NameType
goldnumber
prop1boolean

Returns: void


checkVersion

checkVersion(): void

Returns: void


completeDaily

completeDaily(daily: keyof PlayerData, completed: boolean): void

Parameters:

NameType
dailykeyof PlayerData
completedboolean

Returns: void


completeTower

completeTower(tower: number): void

Parameters:

NameType
towernumber

Returns: void


createDataClone

createDataClone(): Player

Returns: Player


createRandom

createRandom(): void

Returns: void


diffAttackSlots

diffAttackSlots(level: number): void

Parameters:

NameType
levelnumber

Returns: void


equip

equip(id: number, type: ItemType): boolean

Parameters:

NameType
idnumber
typeItemType

Returns: boolean


evolve

evolve(unused0: never, unused1: never): never

Parameters:

NameType
unused0never
unused1never

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:

NameType
levelnumber

Returns: unknown[]


getLosses

getLosses(): number

Returns: number


getMaxHearts

getMaxHearts(level: number): number

Parameters:

NameType
levelnumber

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:

NameType
prop0unknown
prop1unknown[]
prop2unknown
prop3unknown

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:

NameType
damagenumber

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:

NameType
prop0unknown
prop1unknown

Returns: unknown


getWins

getWins(): number

Returns: number


hasCompletedTowerTownTutorial

hasCompletedTowerTownTutorial(): boolean

Returns: boolean


hasCompletedTutorial

hasCompletedTutorial(): boolean

Returns: boolean


hasHouseItem

hasHouseItem(item: Item): boolean

Parameters:

NameType
itemItem

Returns: boolean


hasMaxQuantityOfItem

hasMaxQuantityOfItem(type: unknown, item: unknown): boolean

Parameters:

NameType
typeunknown
itemunknown

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:

NameType
heartsnumber

Returns: void


healTeamMember

healTeamMember(hearts: number, prop1: unknown, prop2: unknown): void

Parameters:

NameType
heartsnumber
prop1unknown
prop2unknown

Returns: void


init

init(prop0: unknown): unknown

Parameters:

NameType
prop0unknown

Returns: unknown


initFromProtobuf

initFromProtobuf(prop0: unknown): void

Parameters:

NameType
prop0unknown

Returns: void


isBlockedByDarkTowerMemberGate

isBlockedByDarkTowerMemberGate(): boolean

Returns: boolean


isItemOwned

isItemOwned(item: Item): boolean

Parameters:

NameType
itemItem

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:

NameType
prop0unknown

Returns: void


setAllowsHouseVisitors

setAllowsHouseVisitors(allow: boolean): void

Parameters:

NameType
allowboolean

Returns: void


setBGMVolume

setBGMVolume(volume: number): void

Parameters:

NameType
volumenumber

Returns: void


setColiseum

setColiseum(coliseum: number): void

Parameters:

NameType
coliseumnumber

Returns: void


setData

setData(data: PlayerData): void

Parameters:

NameType
dataPlayerData

Returns: void


setDefault

setDefault(gender: "male" | "female"): void

Parameters:

NameType
gender"male" | "female"

Returns: void


setEnergy

setEnergy(energy: number): void

Parameters:

NameType
energynumber

Returns: void


setMemberDebug

setMemberDebug(): void

Returns: void


setMembership

setMembership(player: Player, member: boolean): void

Parameters:

NameType
playerPlayer
memberboolean

Returns: void


setParentEmail

setParentEmail(email: string): void

Parameters:

NameType
emailstring

Returns: void


setPlayerClass

setPlayerClass(playerClass: unknown): void

Parameters:

NameType
playerClassunknown

Returns: void


setSFXVolume

setSFXVolume(volume: number): void

Parameters:

NameType
volumenumber

Returns: void


setSpinDate

setSpinDate(date: Date): void

Parameters:

NameType
dateDate

Returns: void


setVoiceVolume

setVoiceVolume(volume: number): void

Parameters:

NameType
volumenumber

Returns: void


setZone

setZone(zone: unknown): void

Parameters:

NameType
zoneunknown

Returns: void


spinWheel

spinWheel(wheel: 1 | 2): void

Parameters:

NameType
wheel1 | 2

Returns: void


swapSpells

swapSpells(prop0: unknown, prop1: unknown): unknown

Parameters:

NameType
prop0unknown
prop1unknown

Returns: unknown


transformPlayer

transformPlayer(prop0: unknown, prop1: unknown, prop2: number): void

Parameters:

NameType
prop0unknown
prop1unknown
prop2number

Returns: void


unequip

unequip(type: ItemType): boolean

Parameters:

NameType
typeItemType

Returns: boolean


updateMembershipVideoAdData

updateMembershipVideoAdData(): void

Returns: void


updateModifier

updateModifier(type: "potion" | "barrier", modifier: number): void

Parameters:

NameType
type"potion" | "barrier"
modifiernumber

Returns: void


validateLevel

validateLevel(): void

Returns: void


Static enemiesPerLevel

enemiesPerLevel(level: number): number

Parameters:

NameType
levelnumber

Returns: number


Static getAoeEvolutions

getAoeEvolutions(): number[]

Returns: number[]


Static getAttacksFromCurve

getAttacksFromCurve(prop0: unknown[], prop1: number, prop2: number): unknown[]

Parameters:

NameType
prop0unknown[]
prop1number
prop2number

Returns: unknown[]


Static getAttacksOfType

getAttacksOfType(prop0: unknown, prop1: unknown): unknown[]

Parameters:

NameType
prop0unknown
prop1unknown

Returns: unknown[]


Static getEvolutionsFromCurve

getEvolutionsFromCurve(prop0: unknown[], prop1: number, prop2: number): unknown[]

Parameters:

NameType
prop0unknown[]
prop1number
prop2number

Returns: unknown[]


Static getHeartsFromCurve

getHeartsFromCurve(prop0: unknown[], prop1: number, prop2: number): number

Parameters:

NameType
prop0unknown[]
prop1number
prop2number

Returns: number


Static getLevelPercent

getLevelPercent(stars: number): number

Parameters:

NameType
starsnumber

Returns: number


Static getSingleShotEvolutions

getSingleShotEvolutions(): number[]

Returns: number[]


Static levelFromStars

levelFromStars(stars: number): number

Parameters:

NameType
starsnumber

Returns: number


Static starsToLevel

starsToLevel(stars: number): number

Parameters:

NameType
starsnumber

Returns: number