1 | var ident = ds_map_find_value(async_load, "id"); |
2 | if (ident == 103) |
3 | { |
4 | if (ds_map_find_value(async_load, "succeeded") == 1) |
5 | { |
6 | global.trophies = []; |
7 | for (var i = 0; i < 30; i++) |
8 | { |
9 | var trophy_id = "trophy_data_unlocked_" + string(i); |
10 | var is_unlocked = ds_map_find_value(async_load, trophy_id) == 1; |
11 | if (is_unlocked) |
12 | global.trophies[array_length(global.trophies)] = i; |
13 | } |
14 | if (array_length(global.trophies) >= 30) |
15 | disable_trophies(); |
16 | } |
17 | } |