mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 07:10:44 -05:00
Added `RaidTimeUtil` which provides the following public methods: * `GetRemainingRaidSeconds()`: Get the seconds remaining in the raid * `GetRaidTimeRemainingFraction()`: Get the fraction of time remaining in the raid (relative to the original escape time for the map) * `GetElapsedRaidSeconds()`: Get the elapsed seconds in the raid (relative to the original escape time for the map) * `GetSecondsSinceSpawning()`: Get the elapsed seconds since spawning into the raid This will allow modders to do things based on raid time, even after changes have been made for Scav raids. The new class required several properties to be added to the existing `RaidChangesUtil` because apparently I can never stop messing with that class... Co-authored-by: dwesterwick <dwesterwick@yahoo.com> Reviewed-on: SPT-AKI/Modules#40 Co-authored-by: DanW <danw@noreply.dev.sp-tarkov.com> Co-committed-by: DanW <danw@noreply.dev.sp-tarkov.com>