MCPcopy
hub / github.com/linbailo/zyqinglong / waterting_droplet_extra

Method waterting_droplet_extra

得物森林.py:264–278  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

262
263 # 浇水充满气泡水滴
264 def waterting_droplet_extra(self):
265 while True:
266 url = 'https://app.dewu.com/hacking-tree/v1/droplet-extra/info'
267 response = self.session.get(url, headers=self.headers)
268 response_dict = response.json()
269 # myprint(response_dict)
270 count = response_dict.get('data').get('dailyExtra').get('times')
271 if not count:
272 myprint(
273 f"气泡水滴已充满,明日可领取{response_dict.get('data').get('dailyExtra').get('totalDroplet')}g")
274 return
275 for _ in range(count):
276 if not self.waterting(): # 无法浇水时退出
277 return
278 time.sleep(0.5)
279
280 # 领取木桶水滴,200秒满一次,每天领取3次
281 def receive_bucket_droplet(self):

Callers 1

mainMethod · 0.95

Calls 3

watertingMethod · 0.95
myprintFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected