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

Add cost difference from previous vessel(s) while editing a vessel #2502

Closed
wants to merge 1 commit into from

Conversation

Clayell
Copy link
Contributor

@Clayell Clayell commented Feb 6, 2025

If this actually works, it will show how much more the new edited vessel will cost, compared to the previous unedited vessel(s).
Fixes #2072
(this is kinda dumb tbh)

@siimav
Copy link
Contributor

siimav commented Feb 6, 2025

What is this? Vessel merge feature is no longer used.

@Clayell
Copy link
Contributor Author

Clayell commented Feb 6, 2025

Oh yea, you're right, I totally forgot. I tried taking this from:

foreach (VesselProject v in SpaceCenterManagement.Instance.MergedVessels)
{
usedShipsCost += v.GetTotalCost();
v.RemoveFromBuildList(out _);
}
Is that code redundant now? How would I get the cost of the vessel before edits? (assuming that editedVessel.effectiveCost is the cost of the vessel after edits)

@Clayell Clayell closed this Feb 17, 2025
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.

Suggestion: Show additional cost of edits made to a vessel that is already being built
2 participants