1
0
Fork 0
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:
Evil Eye 2025-10-06 19:21:29 +02:00
parent 189eff7a49
commit c6c515f770

View file

@ -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 = {