File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,9 @@ func (e *Engine) processTick() {
19
19
if e .countStageTime () {
20
20
addDur (e .currentState .StageTimeElapsed , delta )
21
21
addDur (e .currentState .StageTimeLeft , - delta )
22
+ }
22
23
24
+ if e .countCurrentActionTime () {
23
25
addDur (e .currentState .CurrentActionTimeRemaining , - delta )
24
26
minimumTimeRemaining := - time .Minute * 30
25
27
if goDur (e .currentState .CurrentActionTimeRemaining ) < minimumTimeRemaining {
@@ -56,6 +58,10 @@ func (e *Engine) countStageTime() bool {
56
58
return e .currentState .Stage .IsPausedStage () || e .currentState .Command .IsRunning ()
57
59
}
58
60
61
+ func (e * Engine ) countCurrentActionTime () bool {
62
+ return e .countStageTime () || * e .currentState .Command .Type == state .Command_BALL_PLACEMENT
63
+ }
64
+
59
65
func (e * Engine ) countCardTime () bool {
60
66
return e .currentState .Command .IsRunning ()
61
67
}
You can’t perform that action at this time.
0 commit comments