1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01:00

Allow getting star if more trinkets than level trinkets

Previously, you would only get the trinket completion star if you got
the exact same amount of trinkets as there are custom entity trinkets in
the level file. But if you got more (say, if the level spawned extra
"bonus trinkets"), you wouldn't be able to get the star.

This is true of the custom crewmate case as well, but I've decided to
not change that case, because there are still downsides to the resulting
behavior and it's better to just leave it alone because it's rare for it
to happen anyways.
This commit is contained in:
Misa 2021-06-13 17:16:45 -07:00 committed by Ethan Lee
parent 448a99ca23
commit 71dfbc1860

View file

@ -1956,7 +1956,7 @@ void Game::updatestate(void)
if(ed.numcrewmates()-crewmates()==0)
{
//Finished level
if(ed.numtrinkets()-trinkets()==0)
if (trinkets() >= ed.numtrinkets())
{
//and got all the trinkets!
updatecustomlevelstats(customlevelfilename, 3);