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

Method willBeDisplayed

code/main/FifthHouse.ts:20–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18
19 // Public methods
20 public willBeDisplayed(): void{
21 // We need to update each time we're going to be displayed to avoid a "bug" in a very special case :
22 // If the player is in the fifth house and the npc is asking for someone with a weapon
23 // And then the player goes to its inventory, equip a weapon and then goes back to the fifth house
24 // Here the fifth house must be updated so that the npc know that the player now has a weapon
25 this.update();
26 }
27
28 // Private methods
29 private beginQuest(): void{

Callers

nothing calls this directly

Calls 1

updateMethod · 0.95

Tested by

no test coverage detected