Basic Fix for traits

This commit is contained in:
Pao
2023-01-30 18:07:39 +01:00
parent da64bfc509
commit 18ceeb0cb5
2 changed files with 22 additions and 0 deletions

View File

@@ -4,6 +4,14 @@ function TocResetEverything()
local player_inventory = player:getInventory()
local mod_data = player:getModData()
mod_data.TOC = nil
-- Removes traits just to be sure
local toc_traits = player:getTraits()
toc_traits:remove("Amputee_Hand")
toc_traits:remove("Amputee_LowerArm")
toc_traits:remove("Amputee_UpperArm")
TheOnlyCure.InitTheOnlyCure(_, player)
-- Destroy the amputation or prosthesis item