1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 01:00:25 +00:00

five-kill achievement now also counts the 'basic' kill

This commit is contained in:
Zeno Rogue 2018-06-28 10:40:02 +02:00
parent dd9723dc00
commit 2d6f7d4ed0

View File

@ -7647,6 +7647,8 @@ bool movepcto(int d, int subdir, bool checkonly) {
} */
mirror::act(origd, mirror::SPINMULTI | mirror::ATTACK);
int tk = tkills();
if(goodTortoise) {
items[itBabyTortoise] += 4;
@ -7676,7 +7678,7 @@ bool movepcto(int d, int subdir, bool checkonly) {
}
}
sideAttack(cwt.c, d, moPlayer, 0);
sideAttack(cwt.c, d, moPlayer, tkills() - tk);
lastmovetype = lmAttack; lastmove = c2;
swordAttackStatic();
}