Update colony_integrator.md (updating description)#118
Update colony_integrator.md (updating description)#118adriansmart69-debug wants to merge 2 commits intoIntelligenceModding:0.7from
Conversation
Making the description clearer for the "progress" and "status" variable for getResearch(). Signed-off-by: BudgiusTarquin <adriansmart69@gmail.com>
❌ Deploy Preview for advancedperipherals failed. Why did it fail? →
|
Signed-off-by: BudgiusTarquin <adriansmart69@gmail.com>
| | 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 | |
There was a problem hiding this comment.
A value between 0 & 72/144/288/576/1152/2304
Is there any reference? If so I believe it is better to link it
There was a problem hiding this comment.
Iirc I straight up stole that from the source code
And yes, a link would be better, but I am not sure what the reference was
There was a problem hiding this comment.
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.
Making the description clearer for the "progress" and "status" variable for getResearch().