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

Request for info - maxCompletions internal variable? #649

Open
GrKl30 opened this issue Jan 22, 2018 · 1 comment
Open

Request for info - maxCompletions internal variable? #649

GrKl30 opened this issue Jan 22, 2018 · 1 comment

Comments

@GrKl30
Copy link

GrKl30 commented Jan 22, 2018

Sorry, This is not an issue, rather a request, I dont think Github allows requests.

I'dd like to mod CC to add a functionallity: have some contracts repeatable on a yearly basis: allow contract 'x' to be repeated Y times every year. I think CC does not currently allow this.

Would anyone be able to tell me how I could access 'maxCompletions' internal variable from another mod? Or rather, the 'maxCompleted' variable for a specific contract. I've searched into the sources, but have not found what I searched.

Newbie trying to be modder here. Thanks for any help possible

@GrKl30
Copy link
Author

GrKl30 commented Jan 22, 2018

ok, forget that specific request, found that CC is using the ActualCompletions() to find what I was looking for. Sadly, it is not stored as is, it reads all completed contracts to find that info.

If I can be a pain: any way to find from another mod the completed date on all completed CC contracts?
those seem to be the last value in the 'values' array in the save file, just not sure how to fetch that during runtime

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

No branches or pull requests

1 participant