[DiscordArchive] Random question for anyone that might know,
[DiscordArchive] Random question for anyone that might know,
Archived author: Peacy • Posted: 2025-01-01T17:31:24.559000+00:00
Original source
Random question for anyone that might know,
On master why do spell charges get saved in a table like this:
```
typedef std::unordered_map<uint32 /*categoryId*/, std::deque<ChargeEntry>> ChargeStorageType;
```
what is the need of the deque, all spells in a category share the same cd right?
Archived author: Peacy • Posted: 2025-01-01T17:40:52.377000+00:00
Original source
in master looks like:
```c++
Milliseconds cooldownDuration = std::chrono::duration_cast<Milliseconds>(p.second.front().RechargeEnd - now);
```
front is just taken from the deque anyway
Archived author: Peacy • Posted: 2025-01-01T17:42:53.438000+00:00
Original source
oh...I'm an ape, it holds the cd of each charge
Archived author: Peacy • Posted: 2025-01-01T17:42:57.151000+00:00
Original source
disregard
Archived author: Peacy • Posted: 2025-01-01T17:43:03.899000+00:00
Original source
https://tenor.com/view/logical-flawlessl...f-23575428
Archived author: Tea • Posted: 2025-01-01T17:43:10.504000+00:00
Original source
yes
Archived author: Tea • Posted: 2025-01-01T17:43:15.987000+00:00
Original source
(to the ape part)
Archived author: Peacy • Posted: 2025-01-01T17:43:45.201000+00:00
Original source
https://tenor.com/view/schitts-creek-dav...f-20867360