@@ -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 ;
@@ -935,7 +936,7 @@ procedure Eepers is
935
936
when Command_Plant => null ;
936
937
end case ;
937
938
end record ;
938
- Command_Capacity: constant Natural := 5 ;
939
+ Command_Capacity: constant Natural := 3 ;
939
940
type Command_Array is array (0 ..Command_Capacity-1 ) of Command;
940
941
type Command_Queue_Record is record
941
942
Items: Command_Array;
@@ -1493,6 +1494,16 @@ begin
1493
1494
Command_Enqueue(Command_Queue, (Kind => Command_Plant));
1494
1495
end if ;
1495
1496
end if ;
1497
+ if Is_Key_Down(KEY_LEFT_SHIFT) then
1498
+ TURN_DURATION_SECS := BASE_TURN_DURATION_SECS * 0.8 ;
1499
+ else
1500
+ if Command_Queue.Size /= 0 then
1501
+ TURN_DURATION_SECS := BASE_TURN_DURATION_SECS * (1.0 / Float(Command_Queue.Size));
1502
+ else
1503
+ TURN_DURATION_SECS := BASE_TURN_DURATION_SECS;
1504
+ end if ;
1505
+ end if ;
1506
+
1496
1507
Any_Key_Pressed := False;
1497
1508
while not Any_Key_Pressed and then Get_Key_Pressed /= KEY_NULL loop
1498
1509
Any_Key_Pressed := True;
0 commit comments