mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-29 19:40:35 +00:00
fixed collection achievements
This commit is contained in:
parent
577cdef203
commit
a1053d7eea
@ -194,12 +194,14 @@ void achievement_gain(const char* s, char flags IS(0)) {
|
||||
|
||||
// gain the achievement for collecting a number of 'it'.
|
||||
EX void achievement_collection(eItem it) {
|
||||
achievement_collection2(it, items[it]);
|
||||
}
|
||||
|
||||
EX void achievement_collection2(eItem it, int q) {
|
||||
if(cheater) return;
|
||||
if(randomPatternsMode) return;
|
||||
LATE( achievement_collection(it); )
|
||||
LATE( achievement_collection2(it, q); )
|
||||
|
||||
int q = items[it];
|
||||
|
||||
if(it == itTreat && q == 50 && (geometry == gSphere || geometry == gElliptic) && BITRUNCATED)
|
||||
achievement_gain("HALLOWEEN1", rg::special_geometry);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user