Skip to content

Fix dynamic tech branches rotating the vanilla tech tree #85

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

Open
wants to merge 5 commits into
base: dev1.2
Choose a base branch
from

Conversation

HighFlyer-222
Copy link
Member

idk how but i did a little refactoring and the tech tree is back to its normal angle

@HighFlyer-222 HighFlyer-222 changed the base branch from main to dev1.2 May 5, 2025 18:15
Copy link
Member

@IExploitableMan IExploitableMan left a comment

Choose a reason for hiding this comment

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

Overall it looks good

float childAngle = 0f;
if (parentItem != null)
childAngle = angle + baseAngle * (data.techUnlocks.Count - 1) / 2f;
foreach (TechData techData in data.techUnlocks)
Copy link
Member

Choose a reason for hiding this comment

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

Better use var in foreach

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