obsolete scriptstate removal

This commit is contained in:
Chr1Z93 2023-04-12 18:41:03 +02:00
parent 69120fffec
commit 06d56375c2
4 changed files with 6 additions and 11 deletions

View File

@ -28,7 +28,7 @@
"IgnoreFoW": false,
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState": "{\"distance\":\"12\",\"pitch\":\"74\"}",
"LuaScriptState": "",
"LuaScript_path": "OptionPanelSource.830bd0/jaqenZannsNavigationOverlay.a8affa/CameraPlacementHelper.cecc3e.ttslua",
"MeasureMovement": false,
"Name": "Custom_Assetbundle",

View File

@ -33,7 +33,7 @@
"IgnoreFoW": false,
"LayoutGroupSortIndex": 0,
"Locked": false,
"LuaScriptState_path": "OptionPanelSource.830bd0/jaqenZannsNavigationOverlay.a8affa/jaqenZannsNavigationOverlayTile.9f2481.luascriptstate",
"LuaScriptState": "",
"LuaScript_path": "OptionPanelSource.830bd0/jaqenZannsNavigationOverlay.a8affa/jaqenZannsNavigationOverlayTile.9f2481.ttslua",
"MeasureMovement": false,
"Name": "Custom_Tile",

View File

@ -207,10 +207,8 @@ function onLoad(saved_data)
cameraParams = loaded_data.cameras
fullVisibility = loaded_data.fullVis
playVisibility = loaded_data.playVis
local allclaims = loaded_data.claims
for i = 1, 4 do
playermatData[i].claims = allclaims[i]
playermatData[i].claims = loaded_data.claims[i]
end
resetOverlay()
@ -698,7 +696,7 @@ function loadCamera(player, _, idValue)
local minZ = playermatData[newMatIndex].minZ
local maxZ = playermatData[newMatIndex].maxZ
for i, v in pairs(matObjects) do
for _, v in pairs(matObjects) do
local obj = v.hit_object
if obj.type == 'Card' or obj.type == 'Infinite' then
local bounds = obj.getBounds()
@ -809,10 +807,8 @@ function getPlayerCount()
playerColors[i] = color
end
local playerList = getSeatedPlayers()
for i, v in ipairs(playerList) do
for ii, vv in ipairs(playerColors) do
for _, v in ipairs(getSeatedPlayers()) do
for _, vv in ipairs(playerColors) do
if v == vv then
playerCount = playerCount + 1
end