Does anyone know the exact Upwell Structure Reinforcement Timer Logic?
Example uses medium war HQ
This is how I understand it, and correct me if I’m wrong:
When the Structure is Reinforced:
When the structure is reinforced, the system first identifies the chosen hour that was pre-selected by the defender.
Chosen Hour is Pre-selected by the Defender:
The defender selects a fixed chosen hour for the structure ahead of time (for example, 5:00 AM). This hour is tied to the structure and does not change.
Add Random Jitter to the Chosen Hour (±3 Hours):
To introduce unpredictability, the system applies a jitter of ±3 hours to the chosen hour. This results in a candidate exit time that can occur up to 3 hours before or after the chosen hour.
Example: If the chosen hour is 5:00 AM, the candidate exit time could fall anywhere between 2:00 AM and 8:00 AM.
Final Exit Time Decision:
-
If the candidate exit time is after a waiting period of 24 hours ± 1.5 hours (between 22.5 and 25.5 hours):
The exit occurs at this first instance of the jittered chosen hour. -
If the candidate exit time is before the waiting period:
The system delays the exit to the next occurrence of the jittered chosen hour (24 hours later). This guarantees that the structure exits only after the minimum waiting period has passed.
Example Calculation (Step-by-Step):
-
Reinforced Time:
The structure is reinforced on March 1 at 4:00 AM. -
Chosen Hour (Pre-selected by Defender):
The defender set the chosen hour as 5:00 AM. -
Apply Jitter to the Chosen Hour (±3 Hours):
The system randomly selects a jitter of +2 hours.- Candidate Exit Time = 5:00 AM + 2 hours = 7:00 AM on March 1.
-
Determine the Waiting Period (24 Hours ± 1.5 Hours):
The system randomly selects a base waiting period of 24 + 1 hour = 25 hours.- Minimum Exit Time = 4:00 AM + 25 hours = 5:00 AM on March 2.
-
Compare Candidate Exit Time to Waiting Period:
- The candidate exit time (7:00 AM on March 1) is before the waiting period ends at 5:00 AM on March 2.
-
Final Exit Time Decision:
- Since the candidate exit time is before the waiting period, the system schedules the exit for the next occurrence of the jittered chosen hour.
- Final Exit Time = 7:00 AM on March 2.
Let me know if that matches your understanding or if I missed something!