fix: 存读档的新旧版兼容问题

This commit is contained in:
unanmed 2024-11-17 22:39:39 +08:00
parent d99278c036
commit c267622f8f

View File

@ -339,6 +339,8 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = {
delete data.hero.flags[key]; delete data.hero.flags[key];
} }
} }
} else {
NightSpecial.loadNight(data.night);
} }
if (!data.skill) { if (!data.skill) {
@ -365,6 +367,8 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = {
} }
HeroSkill.setAutoSkill(!!flags.autoSkill); HeroSkill.setAutoSkill(!!flags.autoSkill);
delete flags.autoSkill; delete flags.autoSkill;
} else {
HeroSkill.loadSkill(data.skill);
} }
// 切换到对应的楼层 // 切换到对应的楼层