Skip to content

Instantly share code, notes, and snippets.

View KuryKat's full-sized avatar
😄
Yahallo!

KuryKat KuryKat

😄
Yahallo!
View GitHub Profile
@KuryKat
KuryKat / calculate_profit.py
Last active May 1, 2024 10:27
Silly Python Script to calculate profit between Jars and Dehydrators in Stardew Valley :P
def calculate_profit(fruit_counts, base_prices, artisan_skill=False):
preserves_jar_profit = 0
dehydrator_profit = 0
for fruit, count in fruit_counts.items():
# Calculate profit for preserves jar
preserves_jar_profit += (2 * base_prices[fruit] + 50) * count
# Calculate profit for dehydrator
dehydrator_profit += (7.5 * base_prices[fruit] + 25) * (count // 5)