diff options
author | Charles Otto <ottochar@gmail.com> | 2009-10-30 20:21:25 -0400 |
---|---|---|
committer | Charles Otto <ottochar@gmail.com> | 2009-10-30 20:31:31 -0400 |
commit | 38e8db8e3cac259d645dfe8ad9589165273a0171 (patch) | |
tree | cdf3a7a2893f4beff2247d8385bcfab2e1efa494 | |
parent | 2fb3e671aa1bae33c4270a11b9d86c1f7348da16 (diff) | |
download | crawl-ref-38e8db8e3cac259d645dfe8ad9589165273a0171.tar.gz crawl-ref-38e8db8e3cac259d645dfe8ad9589165273a0171.zip |
Add a screen flash when slime creatures merge.
It's LIGHTGREEN.
-rw-r--r-- | crawl-ref/source/mstuff2.cc | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/crawl-ref/source/mstuff2.cc b/crawl-ref/source/mstuff2.cc index 41d7e1d634..266892c18b 100644 --- a/crawl-ref/source/mstuff2.cc +++ b/crawl-ref/source/mstuff2.cc @@ -2711,7 +2711,6 @@ static bool _merge_slimes(monsters * initial_slime, monsters * merge_to) // Merging costs the combined slime some energy. monsterentry* entry = get_monster_data(merge_to->type); - merge_to->speed_increment -= entry->energy_usage.move; // This is dumb. With that said, the idea is that if 2 slimes merge @@ -2746,6 +2745,19 @@ static bool _merge_slimes(monsters * initial_slime, monsters * merge_to) mprf("A slime creatures suddenly becomes %s.", merge_to->name(DESC_NOCAP_A).c_str()); } + + you.flash_colour = LIGHTGREEN; + viewwindow(true, false); + + int flash_delay = 150; + // Scale delay to match change in arena_delay. + if (crawl_state.arena) + { + flash_delay *= Options.arena_delay; + flash_delay /= 600; + } + + delay(flash_delay); } // have to 'kill' the slime doing the merging |