-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CN UPDATE] Client:2.3.21 Data:24-07-31-04-23-55-e2099f
- Loading branch information
MuelsyseBot_v1
committed
Aug 1, 2024
1 parent
b9f6dc9
commit e29ca9a
Showing
206 changed files
with
298,378 additions
and
155,093 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
GlobalConfig = | ||
{ | ||
CUR_FUNC_VER = "V052", | ||
CUR_FUNC_VER = "V053", | ||
} | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
|
||
local NameCardEditHotfixer = Class("NameCardEditHotfixer", HotfixBase) | ||
local AVGVideoPanelHotfixer = Class("AVGVideoPanelHotfixer", HotfixBase) | ||
|
||
local function _CheckUnlock(self) | ||
local guideController = CS.Torappu.UI.UIGuideController | ||
local lockTarget = CS.Torappu.UI.UILockTarget.NAME_CARD_SKIN_CHANGE | ||
local isUnlocked = guideController.CheckIfUnlocked(lockTarget) | ||
if not isUnlocked then | ||
guideController.ToastOnLockedItemClicked(lockTarget) | ||
return | ||
end | ||
|
||
self:OnConfirmBtnClick() | ||
end | ||
|
||
local function FixAwake(self) | ||
self:Awake() | ||
local canvas = self:GetComponentInParent(typeof(CS.UnityEngine.Canvas)) | ||
if canvas ~= nil then | ||
canvas.sortingOrder = 103 | ||
end | ||
end | ||
|
||
function NameCardEditHotfixer:OnInit() | ||
xlua.private_accessible(CS.Torappu.UI.Friend.NameCardSkinChangeState) | ||
self:Fix_ex(CS.Torappu.UI.Friend.NameCardSkinChangeState, "OnConfirmBtnClick", function(self) | ||
local ok, errorInfo = xpcall(_CheckUnlock, debug.traceback, self) | ||
if not ok then | ||
LogError("[NameCardEditHotfixer] fix OnConfirmBtnClick error:" .. errorInfo) | ||
end | ||
end) | ||
|
||
xlua.private_accessible(CS.Torappu.AVG.AVGVideoPanel) | ||
self:Fix_ex(CS.Torappu.AVG.AVGVideoPanel, "Awake", function(self) | ||
local ok, errorInfo = xpcall(FixAwake, debug.traceback, self) | ||
if not ok then | ||
LogError("[AVGVideoPanelHotfixer] fix ExecuteVideo error:" .. errorInfo) | ||
end | ||
end) | ||
end | ||
|
||
function NameCardEditHotfixer:OnDispose() | ||
end | ||
|
||
return NameCardEditHotfixer | ||
|
56 changes: 56 additions & 0 deletions
56
zh_CN/gamedata/[uc]lua/hotfixes/RemovableSharedRandomTileGlobalBuffHotfixer.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
|
||
local RemovableSharedRandomTileGlobalBuffHotfixer = Class("RemovableSharedRandomTileGlobalBuffHotfixer", HotfixBase) | ||
|
||
local function _TryRemoveBindingTiles(self, tiles) | ||
if tiles == nil then | ||
return false | ||
end | ||
local hasNew = false | ||
local tilesCount = tiles.Count | ||
local luaCreateCnt = CS.Torappu.Battle.RemovableSharedRandomTileGlobalBuff.createCnt | ||
local luaS_targetTiles = CS.Torappu.Battle.RemovableSharedRandomTileGlobalBuff.s_targetTiles | ||
local luaEffectHolder = CS.Torappu.Battle.RemovableSharedRandomTileGlobalBuff.effectHolder | ||
for i = 0, tilesCount - 1 do | ||
local tile = tiles[i] | ||
if tile ~= nil then | ||
if self:FilterTile(tile) then | ||
flag, cnt = luaCreateCnt:TryGetValue(tile.gridPosition) | ||
if flag and cnt > 0 then | ||
luaCreateCnt[tile.gridPosition] = cnt - 1 | ||
if cnt - 1 <= 0 then | ||
luaS_targetTiles:Remove(tile.gridPosition) | ||
self.targetTiles:Remove(tile.gridPosition) | ||
local character = tile:GetCharacter() | ||
if character ~= nil then | ||
self:TryRemoveBuff(character, false) | ||
end | ||
if not string.isNullOrEmpty(self.tileEffect) then | ||
hasEffect, curTileEffect = luaEffectHolder:TryGetValue(tile) | ||
if hasEffect and curTileEffect ~= nil then | ||
curTileEffect:FinishMe(true) | ||
luaEffectHolder:Remove(tile) | ||
end | ||
end | ||
hasNew = true | ||
end | ||
end | ||
end | ||
end | ||
end | ||
return hasNew | ||
end | ||
|
||
function RemovableSharedRandomTileGlobalBuffHotfixer:OnInit() | ||
xlua.private_accessible(CS.Torappu.Battle.RemovableSharedRandomTileGlobalBuff) | ||
self:Fix_ex(CS.Torappu.Battle.RemovableSharedRandomTileGlobalBuff, "TryRemoveBindingTiles", function(self, tiles) | ||
local ok, errorInfo = xpcall(_TryRemoveBindingTiles, debug.traceback, self, tiles) | ||
if not ok then | ||
LogError("[RemovableSharedRandomTileGlobalBuffHotfixer] fix" .. errorInfo) | ||
end | ||
end) | ||
end | ||
|
||
function RemovableSharedRandomTileGlobalBuffHotfixer:OnDispose() | ||
end | ||
|
||
return RemovableSharedRandomTileGlobalBuffHotfixer; |
Oops, something went wrong.