forked from public/foundryvtt-wh4-lang-fr-fr
		
	Add all systems effects scripts + translations
This commit is contained in:
		
							
								
								
									
										18
									
								
								reference_scripts/imKVsCy8rya2gkwO.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								reference_scripts/imKVsCy8rya2gkwO.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| // Any Characteristic penalties due to failed Consume Alcohol Tests | ||||
| // or the state of being Stinking Drunk are eliminated.  | ||||
| await this.actor.removeSystemEffect("consumealcohol1") | ||||
| await this.actor.removeSystemEffect("consumealcohol2") | ||||
| await this.actor.removeSystemEffect("consumealcohol3") | ||||
| await this.actor.removeSystemEffect("stinkingdrunk1") | ||||
|  | ||||
| // The drinker is thereafter Fatigued  | ||||
| // for a number of hours equal to 10 minus their Toughness Bonus —  | ||||
| // nothing but time and rest can eliminate this penalty. | ||||
| await this.actor.addCondition("fatigued") | ||||
| const duration = 10 - parseInt(this.actor.system.characteristics.t.bonus) | ||||
| this.effect.updateSource({"duration.rounds" : duration}); | ||||
| this.script.scriptMessage(`<p><strong>${this.actor.prototypeToken.name}</strong> has lost all alcohol related penalties and gains the Fatigued Condition for ${duration} hours.</p>`,  | ||||
| { | ||||
|   whisper: ChatMessage.getWhisperRecipients("GM"),  | ||||
|   blind: true  | ||||
| })     | ||||
		Reference in New Issue
	
	Block a user