| 110 | } |
| 111 | |
| 112 | public addExitQuestButton(callbackCollection: CallbackCollection, buttonText: string): void{ |
| 113 | this.addBackToButton(this.renderArea, |
| 114 | callbackCollection, |
| 115 | Database.getText(buttonText), |
| 116 | Database.getTranslatedText(buttonText), |
| 117 | buttonText, |
| 118 | 0, |
| 119 | ((this.renderArea.getWidth()-100) - this.getGap())/2 + (50 - Database.getText(buttonText).length/2) |
| 120 | ); |
| 121 | } |
| 122 | |
| 123 | public castPlayerAcidRain(areaPosition: Pos = null, areaSize: Pos = null, maxLeftDistanceFromPlayer: number = 50, maxRightDistanceFromPlayer: number = 50): void{ |
| 124 | // We set the position & size of the area of the acid rain |