Bump to mod version
This commit is contained in:
@@ -9,8 +9,8 @@ local OverridenMethodsArchive = require("TOC/OverridenMethodsArchive")
|
||||
---@class ProsthesisHandler
|
||||
local ProsthesisHandler = {}
|
||||
|
||||
local bodyLocArmProst = StaticData.MOD_BODYLOCS_BASE_IND_STR.TOC_ArmProst
|
||||
local bodyLocLegProst = StaticData.MOD_BODYLOCS_BASE_IND_STR.TOC_LegProst
|
||||
local bodylocArmProstBaseline = "TOC_ArmProst"
|
||||
--local bodyLocLegProst = "TOC_LegProst"
|
||||
|
||||
---Check if the following item is a prosthesis or not
|
||||
---@param item InventoryItem?
|
||||
@@ -23,7 +23,7 @@ function ProsthesisHandler.CheckIfProst(item)
|
||||
|
||||
return false
|
||||
end
|
||||
return item:getBodyLocation():contains(bodyLocArmProst)
|
||||
return item:getBodyLocation():contains(bodylocArmProstBaseline)
|
||||
end
|
||||
|
||||
---Get the grouping for the prosthesis
|
||||
@@ -33,13 +33,10 @@ function ProsthesisHandler.GetGroup(item)
|
||||
local fullType = item:getFullType()
|
||||
local side = CommonMethods.GetSide(fullType)
|
||||
|
||||
|
||||
local bodyLocation = item:getBodyLocation()
|
||||
local position
|
||||
if bodyLocation == bodyLocArmProst then
|
||||
if bodyLocation:contains(bodylocArmProstBaseline) then
|
||||
position = "Top_"
|
||||
elseif bodyLocation == bodyLocLegProst then
|
||||
position = "Bottom_"
|
||||
else
|
||||
TOC_DEBUG.print("Something is wrong, no position in this item")
|
||||
position = nil
|
||||
|
||||
@@ -6,7 +6,7 @@ require("TOC/Events")
|
||||
|
||||
---@class Main
|
||||
local Main = {
|
||||
_version = "2.1.6"
|
||||
_version = "2.1.7"
|
||||
}
|
||||
|
||||
function Main.Start()
|
||||
|
||||
@@ -73,7 +73,6 @@ end
|
||||
|
||||
BodyLocationsAPI.New("TOC_Arm_L")
|
||||
BodyLocationsAPI.New("TOC_Arm_R")
|
||||
BodyLocationsAPI.New("TOC_Arm_LR")
|
||||
BodyLocationsAPI.New("TOC_ArmProst_L")
|
||||
BodyLocationsAPI.New("TOC_ArmProst_R")
|
||||
BodyLocationsAPI.New("TOC_ArmAccessory_L")
|
||||
|
||||
@@ -49,11 +49,14 @@ StaticData.PARTS_STR = {
|
||||
"UpperArm"
|
||||
}
|
||||
|
||||
|
||||
-- TODO make it a bit more elegant
|
||||
StaticData.MOD_BODYLOCS_BASE_IND_STR = {
|
||||
TOC_ArmProst = "TOC_ArmProst",
|
||||
TOC_LegProst = "TOC_LegProst",
|
||||
TOC_Arm = "TOC_Arm",
|
||||
TOC_ArmProst_L = "TOC_ArmProst_L",
|
||||
TOC_ArmProst_R = "TOC_ArmProst_R",
|
||||
TOC_Arm_L = "TOC_Arm_L",
|
||||
TOC_Arm_R = "TOC_Arm_R",
|
||||
|
||||
--TOC_LegProst = "TOC_LegProst",
|
||||
}
|
||||
|
||||
-- No "MAX" here.
|
||||
@@ -149,6 +152,7 @@ StaticData.AMP_GROUPS_BASE_IND_STR = {
|
||||
Bottom = "Bottom"
|
||||
}
|
||||
|
||||
-- FIX This should be aligned with the body locs, no reason anymore to keep it separated
|
||||
StaticData.AMP_GROUPS_IND_STR = {}
|
||||
StaticData.AMP_GROUPS_STR = {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user