mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-28 13:09:42 +00:00
FEAT: Expose starter spells
This commit is contained in:
parent
f456978cc3
commit
cb2a8c74dd
2 changed files with 3 additions and 0 deletions
|
@ -306,6 +306,8 @@ namespace MWLua
|
|||
spellT["cost"] = sol::readonly_property([](const ESM::Spell& rec) -> int { return rec.mData.mCost; });
|
||||
spellT["alwaysSucceedFlag"] = sol::readonly_property(
|
||||
[](const ESM::Spell& rec) -> bool { return !!(rec.mData.mFlags & ESM::Spell::F_Always); });
|
||||
spellT["starterSpellFlag"] = sol::readonly_property(
|
||||
[](const ESM::Spell& rec) -> bool { return !!(rec.mData.mFlags & ESM::Spell::F_PCStart); });
|
||||
spellT["autocalcFlag"] = sol::readonly_property(
|
||||
[](const ESM::Spell& rec) -> bool { return !!(rec.mData.mFlags & ESM::Spell::F_Autocalc); });
|
||||
spellT["effects"] = sol::readonly_property(
|
||||
|
|
|
@ -679,6 +679,7 @@
|
|||
-- @field #number cost
|
||||
-- @field #list<#MagicEffectWithParams> effects The effects (@{#MagicEffectWithParams}) of the spell
|
||||
-- @field #boolean alwaysSucceedFlag If set, the spell should ignore skill checks and always succeed.
|
||||
-- @field #boolean starterSpellFlag If set, the spell can be selected as a player's starting spell.
|
||||
-- @field #boolean autocalcFlag If set, the casting cost should be computed based on the effect list rather than read from the cost field
|
||||
|
||||
---
|
||||
|
|
Loading…
Reference in a new issue