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

Change #8325: Make engine reliability independent of introduction date #8470

Conversation

SamuXarick
Copy link
Contributor

@SamuXarick SamuXarick commented Dec 30, 2020

Motivation / Problem

#8325
Engines that are introduced in the same date also have the same reliability. While it is more desirable for engines to be introduced simultaneously for NewGRF vehicle sets, it seems it isn't as desirable for the reliability, especially for players that use breakdowns.

Description

The problem is solved by not using the same random seed that is used for engine introduction to also generate reliability.

Limitations

Checklist for review

Some things are not automated, and forgotten often. This list is a reminder for the reviewers.

  • The bug fix is important enough to be backported? (label: 'backport requested')
  • This PR affects the save game format? (label 'savegame upgrade')
  • This PR affects the GS/AI API? (label 'needs review: Script API')
    • ai_changelog.hpp, gs_changelog.hpp need updating.
    • The compatibility wrappers (compat_*.nut) need updating.
  • This PR affects the NewGRF API? (label 'needs review: NewGRF')

Copy link
Member

@michicc michicc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Samu: you have 6 train engines available in 1860, let's test this
Samu: yep, all your 1860 engines got the same reliability: 98%
Samu: with the PR, they get: 89%, 83%, 96%, 81%, 86% and 84%
Samu: and they're still introduced at the same time
andythenorth: Samu results seem valid

@andythenorth andythenorth added bug Something isn't working candidate: yes This Pull Request is a candidate for being merged size: trivial This Pull Request is trivial backport requested This PR should be backport to current release (RC / stable) labels Dec 31, 2020
@michicc michicc merged commit 9f42358 into OpenTTD:master Dec 31, 2020
@SamuXarick SamuXarick deleted the engine-reliability-independent-of-introduction-date branch December 31, 2020 17:15
@LordAro LordAro removed the backport requested This PR should be backport to current release (RC / stable) label Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working candidate: yes This Pull Request is a candidate for being merged size: trivial This Pull Request is trivial
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants