Skip to content

Commit e74f43b

Browse files
committed
3.2.0
Fix 160 -> 200
1 parent 54cd4d7 commit e74f43b

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
### Adds information about original resin to hoyolab.
44

55
<p align="right">
6-
<img align="left" src="https://shields.io/badge/version-v3.1.1-blue">
6+
<img align="left" src="https://shields.io/badge/version-v3.2.0-blue">
77
<a href="#donate"><img src="https://shields.io/badge/💲-Support_the_Project-2ea043"></a>
88
</p>
99
<p align="center">

chrome/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"manifest_version": 3,
3-
"version": "3.1.1",
3+
"version": "3.2.0",
44
"name": "Genshin Resin",
55
"description": "__MSG_extDesc__",
66
"default_locale": "en",

chrome/script.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,9 @@ async function makeRequest(div, object="resin"){
8282
if (fullRecover != 0){
8383
let calculate;
8484
if (type == "resin"){
85+
let fullRecoverTime = 60 * 8 * max
8586
calculate = (timeRemaining)=>{
86-
return Math.floor((76800 - timeRemaining) / 480)
87+
return Math.floor((fullRecoverTime - timeRemaining) / 480)
8788
}
8889
}
8990
else{

genshin-resin.user.js

+3-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)