3333				</span >
3434			</div >
3535		</div >
36- 		<div  class =" top__main" 
37- 			<Actor  :actor =" active_actor" :_active =" _active" :out-of-turn =" out_of_turn" 
38- 			<Log  />
39- 		</div >
4036	</div >
4137</template >
4238
4339<script >
4440import  { mapActions , mapGetters  } from  " vuex" 
4541import  Menu  from  " ./Menu.vue" 
46- import  Actor  from  " ../actor" 
47- import  Log  from  " ./log" 
4842import  EncounterProgress  from  " ./EncounterProgress.vue" 
4943import  { remindersMixin  } from  " src/mixins/reminders" 
5044import  { dice  } from  " src/mixins/dice" 
5145
52- 
5346export  default  {
5447	name:  " CombatTop"  
5548	components:  { 
5649		Menu, 
57- 		Actor, 
58- 		Log, 
5950		EncounterProgress, 
6051	}, 
6152	props:  { 
@@ -82,12 +73,6 @@ export default {
8273	}, 
8374	computed:  { 
8475		... mapGetters ([" encounter" " actor" " broadcast" " turn" " test" " demo"  
85- 		active_actor () { 
86- 			return  this .actor  ||  this .current ; 
87- 		}, 
88- 		out_of_turn () { 
89- 			return  this .actor  &&  this .actor .key  !==  this .current .key ; 
90- 		}, 
9176		timer () { 
9277			return  this .settings  ?  this .settings .timer  :  0 ; 
9378		}, 
@@ -98,7 +83,6 @@ export default {
9883	watch:  { 
9984		// Watch turn to trigger reminders when an entity starts their turn 
10085		turn (newVal , oldVal ) { 
101- 			console .log (' New turn'  
10286			this .checkReminders (this .current , " startTurn"  
10387
10488			// Check if the turn went up or down	considering round changes 
@@ -126,7 +110,15 @@ export default {
126110							if  ((ability .limit  &&  ability .limit_type  ===  " turn" ||  ability .recharge ) { 
127111								let  remove =  true ; 
128112								//  For recharge, roll to see if the ability is regained 
129- 								console .log (" ability" ability .recharge , this .current , this .current .limited_uses , category, index); 
113+ 								console .log ( 
114+ 									" ability"  
115+ 									ability, 
116+ 									ability .recharge , 
117+ 									this .current , 
118+ 									this .current .limited_uses , 
119+ 									category, 
120+ 									index 
121+ 								); 
130122								if  ( 
131123									ability .recharge  &&  
132124									ability .recharge  !==  " rest" &&  
@@ -202,23 +194,5 @@ export default {
202194			justify-content flex-end ; 
203195		} 
204196	} 
205- 	& __main  { 
206- 		display flex ; 
207- 		justify-content flex-start ; 
208- 		align-items stretch ; 
209- 		gap 5px  ; 
210- 
211- 		.combat-log  { 
212- 			background-color $neutral-6-transparent ; 
213- 			border-radius $border-radius-small ; 
214- 			padding 10px  ; 
215- 		} 
216- 		.actor  { 
217- 			flex-grow 1 ; 
218- 		} 
219- 		.combat-log  { 
220- 			max-width 300px  ; 
221- 		} 
222- 	} 
223197} 
224198style >
0 commit comments