ucsb-cs156-m23 / proj-happycows-m23-10am-4

https://ucsb-cs156-m23.github.io/proj-happycows-m23-10am-4/
0 stars 1 forks source link

Cow selling price is proportional to cow health #72

Closed iain801 closed 1 year ago

iain801 commented 1 year ago

Overview

In this PR, we alter selling logic in the backend controller for the user commons. We make it so that, when a cow is sold, the user's wealth is increased by the cow price times the cow health as a percentage.

Validation (Optional)

  1. Download this branch.
  2. Run the project.
  3. Buy and sell some cows a below 100% health

Tests

Linked Issues

Closes #70