1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

fixed Kraken movement on squares

This commit is contained in:
Zeno Rogue 2018-07-10 13:14:28 +02:00
parent 5cd8f695a3
commit 587b63a761

View File

@ -2639,7 +2639,7 @@ namespace kraken {
acells.push_back(make_pair(c2, c)); acells.push_back(make_pair(c2, c));
forCellIdEx(c3, i, c) { forCellIdEx(c3, i, c) {
c3->monst = moKrakenT, c3->mondir = c->spn(i), onpath(c3, 0); c3->monst = moKrakenT, c3->mondir = c->spn(i), onpath(c3, 0);
int i0 = (i+c->spn(c->mondir)-c->mondir+99) % c2->type; int i0 = (i+c->spn(c->mondir)-c->mondir+96+c->type/2) % c2->type;
c3->hitpoints = hpcount[i0]; c3->hitpoints = hpcount[i0];
acells.push_back(make_pair(c2->mov[i0], c3)); acells.push_back(make_pair(c2->mov[i0], c3));
if(c3->wall == waBoat) { if(c3->wall == waBoat) {