wing8169 / genshin-impact-tracker

Genshin Impact Tracker is a non-commercial personal project for tracking and studying the respawn time of the resources on the map.
MIT License
3 stars 0 forks source link

[Suggestion] Resin purchase/wait time calculation #3

Open MRDGH2821 opened 3 years ago

MRDGH2821 commented 3 years ago

I have another suggestion regarding resin for the Experience calculator.

Resins are refillable by 3 methods -

  1. By Waiting
  2. By using Fragile resin
  3. By using Primo gems

Total limit - 120 resins.

By Waiting

1 Resin every 8 minutes. Regenerating all 120 Resin would take around 16 hours (960 minutes) to complete. For 20 Resins 160 minutes.

By using Fragile resin

1 Fragile resin gives 60 Original resin

By using Primo gems

1 Refill gives 60 Original resin Maximum 6 refills can be done

Refill Cost
First refill 50 Primogems
Second refill 100 Primogems
Third refill 100 Primogems
Fourth refill 150 Primogems
Fifth refill 200 Primogems
Sixth refill 200 Primogems

Approach 1 - Simple but accuracy differs.

Example 1

Suppose I require 380 resins to level up a character. And I have 20 resins in hand.

So, I need 360 more.

The output would be -

You require net total 360 resins. By waiting for 48 hours you get additional 360 resin. By using 6 Fractured Resins you get additional 360 resin. By spending 800 primogems you get additional 360 resin.

Example 2

Suppose I now require 450 resins to level up a character. And I have 30 resin in hand.

So, I need 420 more.

The Output would be -

You require net total 420 resins. By waiting for 56 hours you get additional 360 resin. By using 7 Fractured Resins you get additional 420 resin. By spending 800 primogems today (to get 360 resins) & 50 primogems next day (to get 420-360 resins), you get 420 resins.

Approach 2 - The more complicated route but more precise too

Keeps primogems & fragile resin in check

Example 3

Suppose I need 1000 resins. ~I have 40 in hand for Day 1~ Let's remove initial thingy. Stuff becomes complicated πŸ˜…

How many hours to wait to naturally replenish resins in 1 day? 120 resin = 16 hours 30 resins = 4 hours 20 resins = 2.67 hours

16

Spend Primogems for resin refills?

βœ…

How many primogem refills? (Max 6)

6

Spend Fragile Resin?

❌

Days Initial Resin/Overnight Replinished resin Natural replishment cost Primogems cost Fragile Resin cost Resins obtained today Resin left to acquire
Day 1 0 16 hours (120 resins) 800 (360 resins, 6 refills) N/A 480 520
Day 2 120 16 hours (120 resins) 600 (300 resins, 5 refills) N/A 540 - 20

Negative "Resins left to acquire" means we got excess resins

Example 4

Suppose I need 360 resins.

How many hours to wait to naturally replenish resins in 1 day? 120 resin = 16 hours 30 resins = 4 hours 20 resins = 2.67 hours

4

Spend Primogems for resin refills?

❌

How many primogem refills? (Max 6)

0

Spend Fragile Resin?

❌

Days Initial Resin/Overnight Replinished resin Natural replishment cost Primogems cost Fragile Resin cost Resins obtained today Resin left to acquire
Day 1 0 4 hours (30 resins) N/A N/A 30 330
Day 2 120 4 hours (30 resins) N/A N/A 150 180
Day 3 120 4 hours (30 resins) N/A N/A 150 30
Day 4 120 N/A N/A N/A N/A -90

All this stuff might take a day or 2 to implement πŸ˜…πŸ˜…πŸ˜…

Let's take another example - Consider you spend 8 hours a day to code this. And you managed to implement it in total 48 hours. Which means it took you 6 days. You play Genshin Impact before starting to code. And after 6 hours of coding, you again play Genshin Impact. So, in these settings -

How many hours to wait to naturally replenish resins in 1 day? 120 resin = 16 hours 30 resins = 4 hours 20 resins = 2.67 hours

8

Spend Primogems for resin refills?

❌

How many primogem refills? (Max 6)

0

Spend Fragile Resin?

❌

Days Initial Resin/Overnight Replinished resin Natural replishment cost Resins obtained today Resin obtained cumulative
Day 1 0 8 hours (60 resins) 30 90
Day 2 120 8 hours (60 resins) 150 180
Day 3 120 8 hours (60 resins) 150 330
Day 4 120 8 hours (60 resins) 150 480
Day 5 120 8 hours (60 resins) 150 630
Day 6 120 8 hours (60 resins) 150 780

You get to spend 780 resins !!!!!

wing8169 commented 3 years ago

the 780 resins are equivalent to me playing Genshin Impact without coding lol xD

But thanks, this seems like an interesting problem to solve, however I don't have much time especially in the weekdays (have some software projects and university work to handle), will check out during weekends haha