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

convert to ProtoCrewMemeber.ExtraExperience #3

Open
zer0Kerbal opened this issue Mar 22, 2020 · 1 comment
Open

convert to ProtoCrewMemeber.ExtraExperience #3

zer0Kerbal opened this issue Mar 22, 2020 · 1 comment
Assignees
Labels
issue: code issue type type: enhancement Requested functionality, features, pages, workflows, endpoints, etc. type: feature Brand new functionality, features, pages, workflows, endpoints, etc.

Comments

@zer0Kerbal
Copy link
Owner

Allow kerbals to have/save/load arbitrary experience points.
ProtoCrewMember.ExtraExperience can be used to record Additional arbitrary experience points for a kerbal (automatically added to the kerbals experience and Level).

@zer0Kerbal zer0Kerbal self-assigned this Mar 22, 2020
@zer0Kerbal
Copy link
Owner Author

else switch (KLevel) { case 1: newKerb.flightLog.AddEntry("Training1," + FlightGlobals.GetHomeBodyName()); newKerb.ArchiveFlightLog(); newKerb.experience = 2; newKerb.experienceLevel = 1; // Hire.Log.Info("KSI :: Level set to 1."); break; case 2: newKerb.flightLog.AddEntry("Training2," + FlightGlobals.GetHomeBodyName()); newKerb.ArchiveFlightLog(); newKerb.experience = 8; newKerb.experienceLevel = 2; // Hire.Log.Info("KSI :: Level set to 2."); break; case 3: newKerb.flightLog.AddEntry("Training3," + FlightGlobals.GetHomeBodyName()); newKerb.ArchiveFlightLog(); newKerb.experience = 16; newKerb.experienceLevel = 3; // Hire.Log.Info("KSI :: Level set to 3."); break; case 4: newKerb.flightLog.AddEntry("Training4," + FlightGlobals.GetHomeBodyName()); newKerb.ArchiveFlightLog(); newKerb.experience = 32; newKerb.experienceLevel = 4; // Hire.Log.Info("KSI :: Level set to 4."); break; case 5: newKerb.flightLog.AddEntry("Training5," + FlightGlobals.GetHomeBodyName()); newKerb.ArchiveFlightLog(); newKerb.experience = 64; newKerb.experienceLevel = 5; break; } GameEvents.onKerbalAdded.Fire(newKerb); // old gameevent most likely to be used by other mods GameEvents.onKerbalAddComplete.Fire(newKerb); // new gameevent that seems relevant

@zer0Kerbal zer0Kerbal added issue: code issue type type: enhancement Requested functionality, features, pages, workflows, endpoints, etc. type: feature Brand new functionality, features, pages, workflows, endpoints, etc. labels Jan 10, 2023
@zer0Kerbal zer0Kerbal pinned this issue Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: code issue type type: enhancement Requested functionality, features, pages, workflows, endpoints, etc. type: feature Brand new functionality, features, pages, workflows, endpoints, etc.
Projects
None yet
Development

No branches or pull requests

1 participant