Debug and basic stuff for prosthesis
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
local StaticData = require("TOC_StaticData")
|
||||
local CommonMethods = require("TOC_Common")
|
||||
local PlayerHandler = require("Handlers/TOC_PlayerHandler")
|
||||
|
||||
---------------------------
|
||||
|
||||
|
||||
--- Submodule to handle spawning the correct items after certain actions (ie: cutting a hand)
|
||||
---@class ItemsHandler
|
||||
local ItemsHandler = {}
|
||||
@@ -87,7 +85,6 @@ function ItemsHandler.DeleteAllOldAmputationItems(playerObj)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
---Spawns and equips the correct amputation item to the player.
|
||||
function ItemsHandler.SpawnAmputationItem(playerObj, limbName)
|
||||
print("Clothing name " .. StaticData.AMPUTATION_CLOTHING_ITEM_BASE .. limbName)
|
||||
@@ -110,6 +107,9 @@ function ISInventoryPane:refreshContainer()
|
||||
-- Search into the container and remove the reference to the amputation item
|
||||
|
||||
og_ISInventoryPane_refreshContainer(self)
|
||||
|
||||
if TOC_DEBUG.disablePaneMod then return end
|
||||
|
||||
for i=1, #self.itemslist do
|
||||
local cItem = self.itemslist[i]
|
||||
if cItem and cItem.cat == "Amputation" then
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
TOC_DEBUG = {}
|
||||
TOC_DEBUG.disablePaneMod = false
|
||||
|
||||
|
||||
function TOC_DEBUG.togglePaneMod()
|
||||
TOC_DEBUG.disablePaneMod = not TOC_DEBUG.disablePaneMod
|
||||
end
|
||||
1
media/lua/client/UI/TOC_ProsthesisBuilderUI.lua
Normal file
1
media/lua/client/UI/TOC_ProsthesisBuilderUI.lua
Normal file
@@ -0,0 +1 @@
|
||||
-- TODO Separate UI to craft prosthesis... No just use the crafting menu you mook
|
||||
@@ -14,3 +14,7 @@ end
|
||||
|
||||
AddBodyLocationBefore("TOC_ArmRight", "Shoes")
|
||||
AddBodyLocationBefore("TOC_ArmLeft", "Shoes")
|
||||
|
||||
AddBodyLocationBefore("TOC_ArmProstRight", "Shoes")
|
||||
AddBodyLocationBefore("TOC_ArmProstLeft", "Shoes")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user