Skip to content

Commit

Permalink
Fix Pay For Seeds calculation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thorinair committed Mar 30, 2024
1 parent 8e7537b commit 7f670e1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion changes.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@

<div class="changes">
<h1>Change Log</h1>
<h2>v1.6.3 <div class="date">(2024-03-30)</div></h2>
<ul>
<li>Fixed an issue where Pay For Seeds would keep calculating seed costs for replants even when Process & Replant was enabled.</li>
</ul>
<h2>v1.6.2 <div class="date">(2024-03-30)</div></h2>
<ul>
<li>Implemented a Process & Replant option. Enabling this option reuses half of the harvested seeds for replanting on crops which don't have a regrow time. Also forces an even number of crops.</li>
Expand Down Expand Up @@ -47,7 +51,7 @@ <h2>v1.6.0 <div class="date">(2024-03-29)</div></h2>
</div>

<div class="footer">
<p><a href="http://stardewvalley.net/" target="_blank">Stardew Valley v1.6.3</a> &copy; <a href="https://twitter.com/ConcernedApe" target="_blank">ConcernedApe</a> | Website designed by <a href="https://twitter.com/thorinair_music" target="_blank">Thorinair</a> | <a href="https://github.com/Thorinair/Stardew-Profits" target="_blank">Stardew Profits v1.6.2</a></p>
<p><a href="http://stardewvalley.net/" target="_blank">Stardew Valley v1.6.3</a> &copy; <a href="https://twitter.com/ConcernedApe" target="_blank">ConcernedApe</a> | Website designed by <a href="https://twitter.com/thorinair_music" target="_blank">Thorinair</a> | <a href="https://github.com/Thorinair/Stardew-Profits" target="_blank">Stardew Profits v1.6.3</a></p>
</div>

<script src="js/time.js"> </script>
Expand Down
2 changes: 1 addition & 1 deletion help.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ <h1>Contact</h1>
</div>

<div class="footer">
<p><a href="http://stardewvalley.net/" target="_blank">Stardew Valley v1.6.3</a> &copy; <a href="https://twitter.com/ConcernedApe" target="_blank">ConcernedApe</a> | Website designed by <a href="https://twitter.com/thorinair_music" target="_blank">Thorinair</a> | <a href="https://github.com/Thorinair/Stardew-Profits" target="_blank">Stardew Profits v1.6.2</a></p>
<p><a href="http://stardewvalley.net/" target="_blank">Stardew Valley v1.6.3</a> &copy; <a href="https://twitter.com/ConcernedApe" target="_blank">ConcernedApe</a> | Website designed by <a href="https://twitter.com/thorinair_music" target="_blank">Thorinair</a> | <a href="https://github.com/Thorinair/Stardew-Profits" target="_blank">Stardew Profits v1.6.3</a></p>
</div>

<script src="js/time.js"> </script>
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@
</div>

<div class="footer">
<p><a href="http://stardewvalley.net/" target="_blank">Stardew Valley v1.6.3</a> &copy; <a href="https://twitter.com/ConcernedApe" target="_blank">ConcernedApe</a> | Website designed by <a href="https://twitter.com/thorinair_music" target="_blank">Thorinair</a> | <a href="https://github.com/Thorinair/Stardew-Profits" target="_blank">Stardew Profits v1.6.2</a></p>
<p><a href="http://stardewvalley.net/" target="_blank">Stardew Valley v1.6.3</a> &copy; <a href="https://twitter.com/ConcernedApe" target="_blank">ConcernedApe</a> | Website designed by <a href="https://twitter.com/thorinair_music" target="_blank">Thorinair</a> | <a href="https://github.com/Thorinair/Stardew-Profits" target="_blank">Stardew Profits v1.6.3</a></p>
</div>

<script src="js/time.js"> </script>
Expand Down
2 changes: 1 addition & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ function seedLoss(crop) {

var loss = -minSeedCost(crop);

if (crop.growth.regrow == 0 && harvests > 0)
if (crop.growth.regrow == 0 && harvests > 0 && !options.replant)
loss = loss * harvests;

return loss * planted(crop);
Expand Down

0 comments on commit 7f670e1

Please sign in to comment.