MCPcopy Create free account
hub / github.com/candybox2/candybox2.github.io / loadCharacter

Method loadCharacter

code/main/Player.ts:229–238  ·  view source on GitHub ↗
(quest: Quest)

Source from the content-addressed store, hash-verified

227 }
228
229 public loadCharacter(quest: Quest): void{
230 // Set the quest
231 this.setQuest(quest);
232
233 // Add the quest entity weapon
234 this.addQuestEntityWeapon(this.getQuestEntityWeapon(this.getQuest()));
235
236 // Set the team
237 this.setTeam(QuestEntityTeam.PLAYER);
238 }
239
240 public loadMediumCharacter(quest: Quest, firstTime: boolean = true): void{
241 // Set the type

Callers 4

loadCandyBoxCharacterMethod · 0.95
loadMediumCharacterMethod · 0.95

Calls 5

getQuestEntityWeaponMethod · 0.95
setQuestMethod · 0.80
addQuestEntityWeaponMethod · 0.80
getQuestMethod · 0.80
setTeamMethod · 0.80

Tested by

no test coverage detected