@@ -143,7 +143,8 @@ procedure Eepers is
143
143
Put_Line(" WARNING: could not load colors from file " & File_Name & " : " & Exception_Message(E));
144
144
end ;
145
145
146
- TURN_DURATION_SECS : constant Float := 0.125 ;
146
+ BASE_TURN_DURATION_SECS : constant Float := 0.125 ;
147
+ TURN_DURATION_SECS : Float := BASE_TURN_DURATION_SECS;
147
148
GUARD_ATTACK_COOLDOWN : constant Integer := 10 ;
148
149
EEPER_EXPLOSION_DAMAGE : constant Float := 0.45 ;
149
150
GUARD_TURN_REGENERATION : constant Float := 0.01 ;
@@ -934,7 +935,7 @@ procedure Eepers is
934
935
when Command_Plant => null ;
935
936
end case ;
936
937
end record ;
937
- Command_Capacity: constant Natural := 5 ;
938
+ Command_Capacity: constant Natural := 3 ;
938
939
type Command_Array is array (0 ..Command_Capacity-1 ) of Command;
939
940
type Command_Queue_Record is record
940
941
Items: Command_Array;
@@ -1492,6 +1493,16 @@ begin
1492
1493
Command_Enqueue(Command_Queue, (Kind => Command_Plant));
1493
1494
end if ;
1494
1495
end if ;
1496
+ if Is_Key_Down(KEY_LEFT_SHIFT) then
1497
+ TURN_DURATION_SECS := BASE_TURN_DURATION_SECS * 0.8 ;
1498
+ else
1499
+ if Command_Queue.Size /= 0 then
1500
+ TURN_DURATION_SECS := BASE_TURN_DURATION_SECS * (1.0 / Float(Command_Queue.Size));
1501
+ else
1502
+ TURN_DURATION_SECS := BASE_TURN_DURATION_SECS;
1503
+ end if ;
1504
+ end if ;
1505
+
1495
1506
Any_Key_Pressed := False;
1496
1507
while not Any_Key_Pressed and then Get_Key_Pressed /= KEY_NULL loop
1497
1508
Any_Key_Pressed := True;
0 commit comments