-
Notifications
You must be signed in to change notification settings - Fork 46
Update colony_integrator.md (updating description) #118
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
base: 0.7
Are you sure you want to change the base?
Changes from all commits
2dafaa5
dbfd6b0
a27171b
18ffe34
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -144,10 +144,10 @@ Returns a table of all possible colony research as a tree where the root table c | |
| | ------------------------ | ------------------------------------------ | | ||
| | id: `string` | The research id | | ||
| | name: `string` | The name of the research | | ||
| | status: `number` | The current research status | | ||
| | status: `string` | The current research status: `NOT_STARTED`, `IN_PROGRESS`, `FINISHED` | | ||
| | researchEffects: `table` | A list of effects provided by the research | | ||
| | children: `table?` | A list of any child research | | ||
| | progress: `number` | Research progress | | ||
| | children: `table?` | A list of any child research | | ||
| | progress: `number` | A value between 0 & 72/144/288/576/1152/2304 for level 1-6 researches respectively. Ticks up when the research is in progress | | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Is there any reference? If so I believe it is better to link it
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Iirc I straight up stole that from the source code
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I had to test it out personally. Minecolonies has a very weird bit of code working out the time a research takes. The first level of research takes half an hour, it then doubles everytime. However in game it doesn't tell you exactly how long each research takes. Only to the nearest 15 minutes. I had a devil of a job working out what the progess value actually stood for, which is why i thought the AP code was broken. Remember this is the backend of the code so thats why the numbers are so ugly. I think I found the formula in the code, I can't remember where though.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The base research time is Which comes to 72 (According to the comment) The base time of a research is then calculated based of Where base time is depending on the research tree - can be looked up in the data folde rof th emod under Depth is the For example for the fertilizer research in the tech tree that has the research level 5 @adriansmart69-debug would you be able to document it a bit with the math I provided? |
||
| | requirements: `table` | List of requirements for the research | | ||
| | cost: `table` | The cost of the research (list of tables) | | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.