Skip to content

Commit

Permalink
Convert lock wait time to faster game speed
Browse files Browse the repository at this point in the history
  • Loading branch information
Salzkorn committed Nov 23, 2024
1 parent fdb2c71 commit c17764b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worlds/sc2/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
TRADE_DATASTORAGE_SLOT = "slot_" # + Slot
TRADE_DATASTORAGE_LOCK = "_lock"
TRADE_LOCK_TIME = 5000 # Time in ms that the DataStorage may be considered safe to edit
TRADE_LOCK_WAIT_LIMIT = 540000 # Time in ms that the client may spend trying to get a lock (540000 = 9 minutes)
TRADE_LOCK_WAIT_LIMIT = 540000 / 1.4 # Time in ms that the client may spend trying to get a lock (540000 = 9 minutes, 1.4 is 'faster' game speed's time scale)

# Games
STARCRAFT2 = "Starcraft 2"
Expand Down

0 comments on commit c17764b

Please sign in to comment.