mirror of
https://github.com/OpenMW/openmw.git
synced 2025-11-29 14:34:29 +00:00
Make ATTACK_SOURCE_TYPES read only
This commit is contained in:
parent
189eff7a49
commit
c6c515f770
1 changed files with 3 additions and 2 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
local I = require('openmw.interfaces')
|
local I = require('openmw.interfaces')
|
||||||
|
local util = require('openmw.util')
|
||||||
local auxUtil = require('openmw_aux.util')
|
local auxUtil = require('openmw_aux.util')
|
||||||
|
|
||||||
local onHitHandlers = {}
|
local onHitHandlers = {}
|
||||||
|
|
@ -130,12 +131,12 @@ return {
|
||||||
|
|
||||||
--- @{#AttackSourceType}
|
--- @{#AttackSourceType}
|
||||||
-- @field [parent=#Combat] #AttackSourceType ATTACK_SOURCE_TYPES Available attack source types
|
-- @field [parent=#Combat] #AttackSourceType ATTACK_SOURCE_TYPES Available attack source types
|
||||||
ATTACK_SOURCE_TYPES = {
|
ATTACK_SOURCE_TYPES = util.makeStrictReadOnly({
|
||||||
Magic = 'magic',
|
Magic = 'magic',
|
||||||
Melee = 'melee',
|
Melee = 'melee',
|
||||||
Ranged = 'ranged',
|
Ranged = 'ranged',
|
||||||
Unspecified = 'unspecified',
|
Unspecified = 'unspecified',
|
||||||
},
|
}),
|
||||||
},
|
},
|
||||||
|
|
||||||
eventHandlers = {
|
eventHandlers = {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue