mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-25 05:11:05 +00:00
Fixed the achievement "No Perk? No Problem"
The achievement should trigger at round 16 at the earliest after the description "Survive an entire Round without Perks past Round 15 or higher". The achievement triggers at the end of round 12, regardless if you bought perks or not. I added a line to check if it's after round 15 and removed the line "players.ach_tracker_npnp = 0;" which reset the count of drank perks, so it triggers correctly.
This commit is contained in:
parent
ab02936c00
commit
9a50966208
1 changed files with 5 additions and 4 deletions
|
@ -155,13 +155,14 @@ void() EndRound =
|
|||
players = find(world, classname, "player");
|
||||
|
||||
while(players != world) {
|
||||
if (players.ach_tracker_npnp == 0) {
|
||||
GiveAchievement(5, players);
|
||||
}
|
||||
if (players.ach_tracker_abst == 0) {
|
||||
GiveAchievement(8, players);
|
||||
}
|
||||
players.ach_tracker_npnp = 0;
|
||||
if (rounds >= 16) {
|
||||
if (players.ach_tracker_npnp == 0) {
|
||||
GiveAchievement(5, players);
|
||||
}
|
||||
}
|
||||
players = find(players, classname, "player");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue