Cleaned Compatibility and added a changelog
This commit is contained in:
9
changelog.txt
Normal file
9
changelog.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
0.9.5
|
||||
- No more Right Click menu. You'll have to use the TOC Menu from the Medical Check, except for Cheats
|
||||
- Fixes to how amputations are handled
|
||||
before and after
|
||||
- Compatibility fixes with older versions
|
||||
- Various fixes to Traits
|
||||
- New heavily WIP models for metal and wooden hooks
|
||||
- Readded sounds during amputations
|
||||
- Fixed banages not getting applied after an amputation when they were in the player's inventory
|
||||
@@ -1,18 +1,4 @@
|
||||
function TocCheckCompatibilityWithOlderVersions(mod_data)
|
||||
-- Gets the old status and turns it into the new.
|
||||
|
||||
if mod_data.TOC.Limbs == nil then
|
||||
print("TOC: Limbs is nil, setting new mod_data")
|
||||
TocMapOldDataToNew(mod_data)
|
||||
end
|
||||
|
||||
if mod_data.TOC.Limbs.Right_Hand.is_cut == nil then
|
||||
print("TOC: Something was wrongly initiliazed before. Resetting parameters")
|
||||
TocResetEverything()
|
||||
else
|
||||
print("TOC: Found compatible data, correcting models in case of errors")
|
||||
|
||||
-- TODO check if models are correctly applied
|
||||
local function TocReapplyAmputationClothingItem(mod_data)
|
||||
local player = getPlayer()
|
||||
local player_inv = player:getInventory()
|
||||
|
||||
@@ -33,6 +19,24 @@ function TocCheckCompatibilityWithOlderVersions(mod_data)
|
||||
TocResetClothingItemBodyLocation(player, side, limb)
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TocCheckCompatibilityWithOlderVersions(mod_data)
|
||||
-- Gets the old status and turns it into the new.
|
||||
|
||||
if mod_data.TOC.Limbs == nil then
|
||||
print("TOC: Limbs is nil, setting new mod_data")
|
||||
TocMapOldDataToNew(mod_data)
|
||||
end
|
||||
|
||||
if mod_data.TOC.Limbs.Right_Hand.is_cut == nil then
|
||||
print("TOC: Something was wrongly initiliazed before. Resetting parameters")
|
||||
TocResetEverything()
|
||||
else
|
||||
print("TOC: Found compatible data, correcting models in case of errors")
|
||||
TocReapplyAmputationClothingItem(mod_data)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user