Samasaur1 / CityManagement

A text-based city management game
3 stars 7 forks source link

Buying gives you money #25

Closed Samasaur1 closed 5 years ago

Samasaur1 commented 6 years ago

Describe the bug If you sell food 1000 and then buy food 1000, you gain $1,000,000

To Reproduce Steps to reproduce the behavior:

  1. Type sell food 1000
  2. Type buy food 1000
  3. See error (look at your money)

Expected behavior You should not gain money when buying anything

Desktop (please complete the following information):

Additional context While this may seem not be a 'bug' per se, and just the failings of my economy implemented in aa3c05fe8fd185321b4041f0976bffec237faf5a, you are in fact gaining money when buying food. This is BAD!

Samasaur1 commented 6 years ago

Yeah, this is definitely a bug

Samasaur1 commented 5 years ago

IDENTIFIED!

My Economy implementation was so bad that the price went to -995 per food. That's clearly why you got money when buying.