Deep dwarf guardian spirit shutoff


Questions, Explanations, Howtos

Blades Runner

Posts: 536

Joined: Friday, 1st April 2016, 18:15

Post Wednesday, 13th July 2016, 18:07

Deep dwarf guardian spirit shutoff

I'm modding Crawl slightly, and one of the changes is that deep dwarves can regenerate (except in battle). I figured that a simple change of 3 to 2 in their innate mutations should do everything needed, but I'm finding a lot of references to deep dwarves in magic regeneration shutoffs when guardian spirit is active. Obviously, I want to fix that, but I can't find the actual piece of code that turns off mp regen when deep dwarves have guardian spirit. Where is it?
twelwe wrote:It's like Blink, but you end up drowning.

For this message the author jwoodward48ss has received thanks:
crate

Tartarus Sorceror

Posts: 1739

Joined: Tuesday, 13th March 2012, 02:48

Post Saturday, 8th October 2016, 15:02

Re: Deep dwarf guardian spirit shutoff

player.cc:

  Code:
bool player_regenerates_mp()
{
    // Don't let DD use guardian spirit for free HP, since their
    // damage shaving is enough. (due, dpeg)
    if (you.spirit_shield() && you.species == SP_DEEP_DWARF)
        return false;
    // Pakellas blocks MP regeneration.
    if (have_passive(passive_t::no_mp_regen) || player_under_penance(GOD_PAKELLAS))
        return false;
    return true;
}

Return to Coding

Who is online

Users browsing this forum: No registered users and 7 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.