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

Show seal hours for barrel recipes in handbook #55

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Craluminum2413
Copy link

@Craluminum2413 Craluminum2413 commented Mar 14, 2024

  • Added seal hours info text for barrel recipes

Demonstration:
image

- Added seal hours info text for barrel recipes
@Craluminum2413 Craluminum2413 marked this pull request as ready for review September 25, 2024 16:43
@@ -1289,6 +1291,11 @@ protected List<RichTextComponentBase> BuildBarrelRecipesText(ICoreClientAPI capi
ocmp.ShowStackSize = true;
barrelRecipesTexts.Add(ocmp);

string sealHoursText = (sealHours > 24.0) ? " " + Lang.Get("{0} days", Math.Round(sealHours / (double)capi.World.Calendar.HoursPerDay, 1)) : Lang.Get("{0} hours", Math.Round(sealHours));

Choose a reason for hiding this comment

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

24.0 should be capi.World.Calendar.HoursPerDay as well so it properly adjusts if the setting is changed.

Copy link
Author

Choose a reason for hiding this comment

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

capi.World.Calendar.HoursPerDay

Done

@Craluminum2413 Craluminum2413 changed the title (Handbook) Extra information Show seal hours for barrel recipes in handbook Dec 19, 2024
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

Successfully merging this pull request may close these issues.

2 participants