From 71dfbc186073d5e61c366cc84de4663d45b37d3b Mon Sep 17 00:00:00 2001 From: Misa Date: Sun, 13 Jun 2021 17:16:45 -0700 Subject: [PATCH] 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. --- desktop_version/src/Game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop_version/src/Game.cpp b/desktop_version/src/Game.cpp index eab2e396..0264f3d4 100644 --- a/desktop_version/src/Game.cpp +++ b/desktop_version/src/Game.cpp @@ -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);