Skip to content

Commit

Permalink
Fix: Types not being applied (#109)
Browse files Browse the repository at this point in the history
shared.lua was missing a few types,
client.lua had "StaggerArea" class which wasn't applied to anything
  • Loading branch information
FjamZoo authored Jan 3, 2025
1 parent 3b79725 commit 860a97f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ return {
---@field armored boolean
---@field major number
---@field minor number

---@type table<BodyPartKey, StaggerArea>
staggerAreas = {
SPINE = { armored = true, major = 60, minor = 30 },
UPPER_BODY = { armored = false, major = 60, minor = 30 },
Expand Down
8 changes: 8 additions & 0 deletions config/shared.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
return {
---@alias WoundLevelIndex number

---@class WoundLevel
---@field movementRate number
---@field label string

---@type table<WoundLevelIndex, WoundLevel>
woundLevels = {
{
movementRate = 0.98,
Expand All @@ -18,6 +25,7 @@ return {
},
},

---@type table<number, string>
bleedingStates = { -- Translate bleeding alerts
locale('states.little_bleed'),
locale('states.bleed'),
Expand Down

0 comments on commit 860a97f

Please sign in to comment.