This commit is contained in:
aozhiwei 2021-09-18 09:49:27 +00:00
parent 4e07bbeae4
commit 9c57b56a3b
2 changed files with 11 additions and 0 deletions

View File

@ -876,6 +876,10 @@ void Player::_CMExecCommand(f8::MsgHdr& hdr, const cs::CMExecCommand& msg)
#if DEBUG
App::Instance()->debug_params[1] = a8::XValue(cmds[1]);
#endif
} else if (cmd == "set_born_frameno_offset" && cmds.size() >= 2) {
#if DEBUG
App::Instance()->debug_params[118] = a8::XValue(cmds[1]);
#endif
} else if (cmd == "wudi") {
int buff_uniid = TryAddBuff(this, 1005);
if (buff_uniid != 0) {

View File

@ -59,6 +59,13 @@ void RoomObstacle::Initialize()
room->mine_objects[GetUniId()] = GetWeakPtrRef();
}
born_frameno = room->GetFrameNo();
#ifdef DEBUG
{
if (App::Instance()->debug_params.find(118) != App::Instance()->debug_params.end()) {
born_frameno += App::Instance()->debug_params[118] * 2;
}
}
#endif
}
void RoomObstacle::RecalcSelfCollider()