Update achievements_requirement_type.md

This commit is contained in:
Josh Freeman
2018-05-29 10:04:42 +01:00
committed by GitHub
parent d3ff9d97ba
commit 4fb4910e49
+26 -61
View File
@@ -1,64 +1,29 @@
Achievements link to a "pre-requisite type" that defines it as completeed. The list of Types are: Achievements link to a "pre-requisite type" that defines it as completed. The list of Types are:
``` ```
0 legacy 0: complete specific Legacy thing
1 kill stuff 1: do n things
2 achievement 2: complete n other achievements
3 class 3: achieve n levels as class
4 materia 4: affix n materia to the same piece of gear
5 various adventure activities, must complete all the requirements in data_0-7 5: complete all n of these requirement_2 - 9 things
6 pre quest // all quests must be complete 6: complete a specific quest
7 hunting log 7: complete all specific hunting log entries
8 discover 8: discover every location within...
9 pre quest // any 1 quest must be complete 9: complete any of these requirement_2 - 9 quests (?)
10 companion 10: level your companion chocobo to rank n
11 grand company 11: achieve PVP rank n with a specific Grand Company
12 pvp 12: participate in n matches in The Fold
13 pvp 13: triumph in n matches in The Fold
14 trial 14: complete a specific Trial
15 beast tribe 15: achieve rank n with a specific Beast Tribe
16 ??? 16: there is no type 16
17 frontline 17: participate in n Frontline matches
18 frontline 18: guide a specific Grand Company to n Frontline victories
19 frontline 19: triumph in n Frontline matches
20 aether attune 20: attune to all aether currents in a specific area
21: obtain n minions
22: there is no type 22
23: complete all Verminion challenges
24: obtain a variety of anima weapon
``` ```
Up to date mapping by: Tequila Mockingbird
```js
switch (achievement.type) {
case 4: // affix n materia to the same piece of gear
case 5: // complete all n of these requirement_2 - 9 things
case 10: // level your companion chocobo to rank n
case 12: // participate in n matches in The Fold
case 13: // triumph in n matches in The Fold
case 17: // participate in n Frontline matches
case 19: // triumph in n Frontline matches
return achievement.requirement_1;
case 1: // do n things
case 3: // achieve n levels as class
case 11: // achieve PVP rank n with a specific Grand Company
case 15: // achieve rank n with a specific Beast Tribe
case 18: // guide a specific Grand Company to n Frontline victories
case 21: // obtain n minions
return achievement.requirement_2;
case 0: // complete specific Legacy thing (some stil relevant)
case 6: // complete a specific quest
case 7: // complete all specific hunting log entries
case 8: // discover every location within...
case 9: // complete any of these requirement_2 - 9 quests (?)
case 14: // complete a specific Trial
case 20: // attune to all aether currents in a specific area
case 23: // complete all Verminion challenges
case 24: // obtain a variety of anima weapon
return 1;
case 2: // complete n other achievements
return 0; // the other achievements have their own weights and this is automatic
case 16: // there is no type 16
case 22: // there is no type 22
default:
return null;
}
```