mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-15 05:36:44 +00:00
Merge branch 'is_starter_spell' into 'master'
Expose starter spells See merge request OpenMW/openmw!4352
This commit is contained in:
commit
1e94f53146
5 changed files with 6 additions and 1 deletions
|
@ -156,6 +156,7 @@ Programmers
|
||||||
Mateusz Malisz (malice)
|
Mateusz Malisz (malice)
|
||||||
Max Henzerling (SaintMercury)
|
Max Henzerling (SaintMercury)
|
||||||
megaton
|
megaton
|
||||||
|
Mehdi Yousfi-Monod (mym)
|
||||||
Michael Hogan (Xethik)
|
Michael Hogan (Xethik)
|
||||||
Michael Mc Donnell
|
Michael Mc Donnell
|
||||||
Michael Papageorgiou (werdanith)
|
Michael Papageorgiou (werdanith)
|
||||||
|
|
|
@ -262,6 +262,7 @@
|
||||||
Feature #8067: Support Game Mode on macOS
|
Feature #8067: Support Game Mode on macOS
|
||||||
Feature #8078: OpenMW-CS Terrain Equalize Tool
|
Feature #8078: OpenMW-CS Terrain Equalize Tool
|
||||||
Feature #8087: Creature movement flags are not exposed
|
Feature #8087: Creature movement flags are not exposed
|
||||||
|
Feature #8145: Starter spell flag is not exposed
|
||||||
Task #5896: Do not use deprecated MyGUI properties
|
Task #5896: Do not use deprecated MyGUI properties
|
||||||
Task #6085: Replace boost::filesystem with std::filesystem
|
Task #6085: Replace boost::filesystem with std::filesystem
|
||||||
Task #6149: Dehardcode Lua API_REVISION
|
Task #6149: Dehardcode Lua API_REVISION
|
||||||
|
|
|
@ -82,7 +82,7 @@ message(STATUS "Configuring OpenMW...")
|
||||||
set(OPENMW_VERSION_MAJOR 0)
|
set(OPENMW_VERSION_MAJOR 0)
|
||||||
set(OPENMW_VERSION_MINOR 49)
|
set(OPENMW_VERSION_MINOR 49)
|
||||||
set(OPENMW_VERSION_RELEASE 0)
|
set(OPENMW_VERSION_RELEASE 0)
|
||||||
set(OPENMW_LUA_API_REVISION 67)
|
set(OPENMW_LUA_API_REVISION 68)
|
||||||
set(OPENMW_POSTPROCESSING_API_REVISION 1)
|
set(OPENMW_POSTPROCESSING_API_REVISION 1)
|
||||||
|
|
||||||
set(OPENMW_VERSION_COMMITHASH "")
|
set(OPENMW_VERSION_COMMITHASH "")
|
||||||
|
|
|
@ -309,6 +309,8 @@ namespace MWLua
|
||||||
spellT["cost"] = sol::readonly_property([](const ESM::Spell& rec) -> int { return rec.mData.mCost; });
|
spellT["cost"] = sol::readonly_property([](const ESM::Spell& rec) -> int { return rec.mData.mCost; });
|
||||||
spellT["alwaysSucceedFlag"] = sol::readonly_property(
|
spellT["alwaysSucceedFlag"] = sol::readonly_property(
|
||||||
[](const ESM::Spell& rec) -> bool { return !!(rec.mData.mFlags & ESM::Spell::F_Always); });
|
[](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(
|
spellT["autocalcFlag"] = sol::readonly_property(
|
||||||
[](const ESM::Spell& rec) -> bool { return !!(rec.mData.mFlags & ESM::Spell::F_Autocalc); });
|
[](const ESM::Spell& rec) -> bool { return !!(rec.mData.mFlags & ESM::Spell::F_Autocalc); });
|
||||||
spellT["effects"] = sol::readonly_property(
|
spellT["effects"] = sol::readonly_property(
|
||||||
|
|
|
@ -679,6 +679,7 @@
|
||||||
-- @field #number cost
|
-- @field #number cost
|
||||||
-- @field #list<#MagicEffectWithParams> effects The effects (@{#MagicEffectWithParams}) of the spell
|
-- @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 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
|
-- @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