1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-20 11:54:48 +00:00

text bubbles on ivy kills

This commit is contained in:
Zeno Rogue 2019-12-25 22:03:17 +01:00
parent e8ec32d078
commit 6f409f3de7

View File

@ -395,6 +395,10 @@ EX void killMutantIvy(cell *c, eMonster who) {
if(c->land == laClearing) clearing::imput(c);
}
EX bignum ivy_total() {
return kills[moMutant] + kills[moFriendlyIvy] + clearing::imputed;
}
EX void killMonster(cell *c, eMonster who, flagtype deathflags IS(0)) {
eMonster m = c->monst;
DEBBI(DF_TURN, ("killmonster ", dnameof(m)));
@ -464,7 +468,11 @@ EX void killMonster(cell *c, eMonster who, flagtype deathflags IS(0)) {
if(isMutantIvy(m) || m == moFriendlyIvy) {
pcount = 0;
if(isMutantIvy(m)) clearing::direct++;
bignum s = ivy_total() - 1;
killMutantIvy(c, who);
s = ivy_total();
if(s > bignum(1))
drawBubble(c, 0xFFFF00, s.get_str(100), .5);
}
if(m == moPrincess) {