Ejemplo n.º 1
0
    float ActionSpell::getCombatRange (bool& isRanged) const
    {
        const ESM::Spell* spell = MWBase::Environment::get().getWorld()->getStore().get<ESM::Spell>().find(mSpellId);
        int types = getRangeTypes(spell->mEffects);

        isRanged = (types & Target);
        return suggestCombatRange(types);
    }
Ejemplo n.º 2
0
 void ActionEnchantedItem::getCombatRange(float& rangeAttack, float& rangeFollow)
 {
     const ESM::Enchantment* enchantment = MWBase::Environment::get().getWorld()->getStore().get<ESM::Enchantment>().find(mItem->getClass().getEnchantment(*mItem));
     int types = getRangeTypes(enchantment->mEffects);
     suggestCombatRange(types, rangeAttack, rangeFollow);
 }
Ejemplo n.º 3
0
 void ActionSpell::getCombatRange(float& rangeAttack, float& rangeFollow)
 {
     const ESM::Spell* spell = MWBase::Environment::get().getWorld()->getStore().get<ESM::Spell>().find(mSpellId);
     int types = getRangeTypes(spell->mEffects);
     suggestCombatRange(types, rangeAttack, rangeFollow);
 }
Ejemplo n.º 4
0
 float ActionEnchantedItem::getCombatRange(bool& isRanged) const
 {
     const ESM::Enchantment* enchantment = MWBase::Environment::get().getWorld()->getStore().get<ESM::Enchantment>().find(mItem->getClass().getEnchantment(*mItem));
     int types = getRangeTypes(enchantment->mEffects);
     return suggestCombatRange(types);
 }