mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-19 15:39:49 +00:00
Comments
This commit is contained in:
parent
e0e968a082
commit
4f8476efd4
4 changed files with 7 additions and 9 deletions
|
@ -1,5 +1,5 @@
|
|||
Interface SkillProgression
|
||||
===================
|
||||
==========================
|
||||
|
||||
.. raw:: html
|
||||
:file: generated_html/scripts_omw_skillhandlers.html
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
* - :ref:`SkillProgression <Interface SkillProgression>`
|
||||
- by local scripts
|
||||
- | Control, extend, and override skill progression of the
|
||||
- | player.
|
||||
| player.
|
||||
* - :ref:`Settings <Interface Settings>`
|
||||
- by player and global scripts
|
||||
- Save, display and track changes of setting values.
|
||||
|
|
|
@ -68,9 +68,7 @@ local function skillLevelUpHandler(skillid, source, params)
|
|||
|
||||
ambient.playSound("skillraise")
|
||||
|
||||
local message = core.getGMST('sNotifyMessage39')
|
||||
message = message:gsub("%%s", skillRecord.name)
|
||||
message = message:gsub("%%d", tostring(skillStat.base))
|
||||
local message = string.format(core.getGMST('sNotifyMessage39'),skillRecord.name,skillStat.base)
|
||||
|
||||
if source == I.SkillProgression.SKILL_INCREASE_SOURCES.Book then
|
||||
message = '#{sBookSkillMessage}\n'..message
|
||||
|
|
|
@ -212,7 +212,7 @@ return {
|
|||
skillUsedHandlers[#skillUsedHandlers + 1] = handler
|
||||
end,
|
||||
|
||||
--- Register a skill use, activating relevant handlers
|
||||
--- Trigger a skill use, activating relevant handlers
|
||||
-- @function [parent=#SkillProgression] skillUsed
|
||||
-- @param #string skillid The if of the skill that was used
|
||||
-- @param #SkillUseType useType A number from 0 to 3 (inclusive) representing the way the skill was used, with each use type having a different skill progression rate. Available use types and its effect is skill specific. See @{SkillProgression#skillUseType}
|
||||
|
@ -250,9 +250,9 @@ return {
|
|||
Athletics_SwimOneSecond = 0,
|
||||
},
|
||||
|
||||
--- Register a skill increase, activating relevant handlers
|
||||
-- @function [parent=#SkillProgression] skillUsed
|
||||
-- @param #string skillid The id of the skill to be increased.
|
||||
--- Trigger a skill level up, activating relevant handlers
|
||||
-- @function [parent=#SkillProgression] skillLevelUp
|
||||
-- @param #string skillid The id of the skill to level up.
|
||||
-- @param #SkillLevelUpSource source The source of the skill increase.
|
||||
skillLevelUp = skillLevelUp,
|
||||
|
||||
|
|
Loading…
Reference in a new issue