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