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

Method update

code/main/Player.ts:425–435  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

423 }
424
425 public update(): void{
426 for(var savingName in this.game.getSelectedEqItems()){
427 this.game.getSelectedEqItems()[savingName].update(this, this.getQuest());
428 }
429
430 for(var savingName in this.game.getGridItems()){
431 if(Saving.loadBool(savingName)) this.game.getGridItems()[savingName].update(this, this.getQuest());
432 }
433
434 super.update();
435 }
436
437 // Public setters : they must be public, because sometimes we have to set these things (at loading for example)
438 public setHp(hp: number): void{

Callers

nothing calls this directly

Calls 3

getSelectedEqItemsMethod · 0.80
getQuestMethod · 0.80
getGridItemsMethod · 0.80

Tested by

no test coverage detected