111
This commit is contained in:
@@ -87,6 +87,51 @@ class GameManager extends Base_C_Object {
|
||||
print("请注意如果你不处于DP-S开发环境,请关闭此功能,以免对性能造成影响");
|
||||
Sq_AutoReload(Path);
|
||||
}
|
||||
|
||||
//开启时装镶嵌
|
||||
function FixAvatarUseJewel() {
|
||||
//时装镶嵌修复
|
||||
_AvatarUseJewel_Object <- AvatarUseJewel();
|
||||
}
|
||||
|
||||
//修复下线卡城镇
|
||||
function FixSaveTown() {
|
||||
Cb_Set_Charac_Info_Detail_Enter_Func._FixSaveTown_ <- function(arg) {
|
||||
local curArea = NativePointer(arg[3]).add(34).readS8();
|
||||
if (curArea == 12 || curArea == 13) {
|
||||
NativePointer(arg[3]).add(34).writeS8(11);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//修复绝望金币异常
|
||||
function FixDespairGold() {
|
||||
getroottable()._FixDespairGold_Data_ <- {};
|
||||
Cb_UseAncientDungeonItems_Enter_Func._FixDespairGold_ <- function(arg) {
|
||||
local DgnObj = Dungeon(arg[1]);
|
||||
local DgnIndex = DgnObj.GetId();
|
||||
if ((DgnIndex >= 11008) && (DgnIndex <= 11107)) {
|
||||
getroottable()._FixDespairGold_Data_[arg[1]] <- NativePointer(arg[1]).add(2044).readS8();
|
||||
NativePointer(arg[1]).add(2044).writeS8(0);
|
||||
}
|
||||
}
|
||||
Cb_UseAncientDungeonItems_Leave_Func._FixDespairGold_ <- function(arg) {
|
||||
local DgnObj = Dungeon(arg[1]);
|
||||
local DgnIndex = DgnObj.GetId();
|
||||
if ((DgnIndex >= 11008) && (DgnIndex <= 11107)) {
|
||||
//绝望之塔 不再扣除金币
|
||||
NativePointer(arg[1]).add(2044).writeS8(getroottable()._FixDespairGold_Data_[arg[1]]);
|
||||
getroottable()._FixDespairGold_Data_.rawdelete(arg[1]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//修复绝望之塔通关后可以用门票继续进入
|
||||
function FixDespairDungeon() {
|
||||
Cb_User_GetLastClearTime_Leave_Func._FixDespairDungeon_ <- function(arg) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
//热重载
|
||||
function _Reload_List_Write_(Path) {
|
||||
|
||||
Reference in New Issue
Block a user