void hide_in_mud_spell(int cmd, variant *res)
{
    switch (cmd)
    {
    case SPELL_NAME:
        var_set_string(res, "Hide in Mud");
        break;
    case SPELL_DESC:
        var_set_string(res, "Gain the ability to pass into walls temporarily, as well as extra resistance to acid.");
        break;
    case SPELL_CAST:
        set_kabenuke(randint1(p_ptr->lev/2) + p_ptr->lev/2, FALSE);
        set_oppose_acid(p_ptr->lev, FALSE);
        var_set_bool(res, TRUE);
        break;
    default:
        default_spell(cmd, res);
        break;
    }
}
Example #2
0
void _wild_passwall_off(void) {
    if (p_ptr->kabenuke)
        set_kabenuke(0, TRUE);
    if (!IS_PASSWALL())
        msg_print("You are no longer ethereal.");
}