Reset progression button
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Release Creation / build (release) Successful in 1m31s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Release Creation / build (release) Successful in 1m31s
				
			This commit is contained in:
		| @@ -87,6 +87,11 @@ export class LethalFantasyCombat extends Combat { | ||||
|     return this; | ||||
|   } | ||||
|  | ||||
|   resetProgression(cId) { | ||||
|     let c = this.combatants.get(cId); | ||||
|     c.update({ 'system.progressionCount': 0 }); | ||||
|   } | ||||
|  | ||||
|   async nextTurn() { | ||||
|     console.log("NEXT TURN"); | ||||
|  | ||||
|   | ||||
| @@ -13,6 +13,11 @@ export default class LethalFantasyUtils { | ||||
|     return compendiumData.filter(filter) | ||||
|   } | ||||
|  | ||||
|   /* -------------------------------------------- */ | ||||
|   static pushCombatOptions(html, options) { | ||||
|     options.push({ name: "Reset Progression", condition: true, icon: '<i class="fas fa-rotate-right"></i>', callback: target => { game.combat.resetProgression(target.data('combatant-id')); } }) | ||||
|   } | ||||
|  | ||||
|   static handleSocketEvent(msg = {}) { | ||||
|     console.log(`handleSocketEvent !`, msg) | ||||
|     let actor | ||||
|   | ||||
		Reference in New Issue
	
	Block a user