1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 01:20:37 +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

@ -7648,6 +7648,8 @@ bool movepcto(int d, int subdir, bool checkonly) {
mirror::act(origd, mirror::SPINMULTI | mirror::ATTACK); mirror::act(origd, mirror::SPINMULTI | mirror::ATTACK);
int tk = tkills();
if(goodTortoise) { if(goodTortoise) {
items[itBabyTortoise] += 4; items[itBabyTortoise] += 4;
updateHi(itBabyTortoise, items[itBabyTortoise]); updateHi(itBabyTortoise, items[itBabyTortoise]);
@ -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; lastmovetype = lmAttack; lastmove = c2;
swordAttackStatic(); swordAttackStatic();
} }