mirror of
https://github.com/Shu-Ying/main_plugin_farm.git
synced 2026-11-05 04:00:03 +08:00
add # 新增偷菜功能
This commit is contained in:
@@ -56,7 +56,8 @@ def detail_rows(renderer, identity, snapshot, now, page):
|
||||
continue
|
||||
ripe = plot.mature_at is not None and plot.mature_at <= now
|
||||
pests = plot.maturity_pests if ripe else plot.pest_count
|
||||
amount = boosted(plant.harvest, plot.yield_bonus)*(100-5*pests)//100
|
||||
amount = max(0, boosted(plant.harvest, plot.yield_bonus)
|
||||
*(100-5*pests)//100-plot.stolen_count)
|
||||
info = metadata['plants'].get(plant.name)
|
||||
total = len(set(info['phase'].split(','))) if info else None
|
||||
stage = ('成熟' if ripe else
|
||||
|
||||
Reference in New Issue
Block a user