Daft Mugi on 25/8/2024 at 19:23
The documentation I found about
PickCfg was not entirely correct, so I went down the rabbit hole of figuring it out. Here's what I found.
About PickCfg
PickCfg has 3 tumblers, each with
LockBits,
Pins, and
TimePct. Between 1 to 3 tumblers can be used.
*
LockBits: Specifies which lockpick to use. In DromEd, the value is binary: 0 none, 1 square, 10 triangle, 11 either. In the generated report, the value is decimal: 0 none, 1 square, 2 triangle, 3 either.
*
Pins: Specifies the number of pins a tumbler has. Each pin makes a click sound when it has been picked.
*
TimePct: The percent of the base time you want to add to each Pin's base time. Base time is 2 seconds. In other words, each Pin takes at least 2 seconds.
Code:
BaseTime = 2 seconds
PinTime = BaseTime + ((BaseTime x TimePct) / 100)
TumblerTime = Pins x PinTime
PickTime = TumblerTime1 + TumblerTime2 + TumblerTime3
PickTime is the total time to pick a lock, which includes 3 tumblers.
TumblerTime Examples
Code:
TumblerTime = Pins x 2 + ((2 x TimePct) / 100)
% = percent, s = seconds
Pins TimePct (%) Calculation TumblerTime (s)
---- ----------- -------------------------- ---------------
1 0 1 x (2 + (2 x 0 / 100)) 2
1 50 1 x (2 + (2 x 50 / 100)) 3
3 0 3 x (2 + (2 x 0 / 100)) 6
3 300 3 x (2 + (2 x 300 / 100)) 24
5 300 5 x (2 + (2 x 300 / 100)) 40
10 0 10 x (2 + (2 x 0 / 100)) 20
10 100 10 x (2 + (2 x 100 / 100)) 40
As you can see, including
TimePct makes things a bit complex. It's simpler to just add more Pins.
If you really want to include
TimePct, the following table can simplify things.
TimePct Table
Code:
s = seconds
TimePct PinTime (s)
------- -----------
0 2
50 3
100 4
150 5
200 6
250 7
300 8
350 9
400 10
TumblerTime Examples Using
TimePct Table
Code:
TumblerTime = Pins x PinTime
% = percent, s = seconds
Pins TimePct (%) Calculation TumblerTime (s)
---- ----------- ----------- ---------------
1 0 1 x 2 2
1 50 1 x 3 3
3 0 3 x 2 6
3 300 3 x 8 24
5 300 5 x 8 40
10 0 10 x 2 20
10 100 10 x 4 40