Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inflation setting incorrectly affects starting loan and vehicle costs #9083

Closed
0xBEEF7AC0 opened this issue Apr 22, 2021 · 2 comments
Closed

Comments

@0xBEEF7AC0
Copy link

0xBEEF7AC0 commented Apr 22, 2021

Version of OpenTTD

1.11.1

--downloaded content--
AI : Admiral AI, trAIns
AILibrary : Queue.FibonacciHeap (version 2)

--resources-
ttdx DOS graphics
ttdx DOS audio
ttdx Windows music

Expected result

inflation : enabled
A. player should start with the maximum loan amount
B. vehicles should start at their "base" cost (year : 1950)

Actual result

inflation : enabled
A. player can start with more than maximum loan amount
B. vehicles cost multiple times more than "base" cost (year : 1950)

Scenario 1

settings:

  • currency unit : USD
  • inflation : enabled
  • interest rate : 4%
  • maximum loan : $200,000

expected :

  • maximum loan is $200,000
  • player starts with $200,000 loan

actual :

  • maximum loan is $600,000
  • player starts with $600,000 loan

Scenario 2

settings:

  • currency unit : USD
  • inflation : enabled
  • interest rate : 4%
  • maximum loan : $75,000

expected :

  • assuming max loan amount hard coded to $100,000 intervals
  • assuming max loan amount cannot be $0
  • the maximum loan should be $100000
  • the player should start with $100000

actual :

  • maximum loan is $200,000
  • player starts with a $600,000 loan (yes, above the maximum)

Scenario 3

settings:

  • currency unit : USD
  • inflation : enabled
  • interest rate : 4%
  • maximum loan : $75,000

expected :

  • MPS Regal Bus costs $14,764 at start of new game

actual :

  • MPS Regal Bus costs $48,196 at start of new game
@0xBEEF7AC0 0xBEEF7AC0 changed the title inflation and interest rate applied to maximum loan incorrectly inflation setting incorrectly affects starting loan and vehicle costs Apr 22, 2021
@James103
Copy link
Contributor

Caused by #7589

@2TallTyler
Copy link
Member

This is a duplicate of #8932, and a solution is proposed there, so I'll close this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants