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